OpenSSH on RH SPARC

Damien Miller djm at mindrot.org
Sun Jul 9 21:28:28 EST 2000


On Fri, 7 Jul 2000, Gregory Leblanc wrote:

> Building the RPM, as I'm trying to keep all my software everywhere
> under RPM control.  Thanks,

Try this patch:

Index: Makefile.in
===================================================================
RCS file: /var/cvs/openssh/Makefile.in,v
retrieving revision 1.89
diff -u -r1.89 Makefile.in
--- Makefile.in	2000/06/27 22:24:49	1.89
+++ Makefile.in	2000/07/09 11:27:46
@@ -150,20 +150,20 @@
 	fi
 
 host-key: ssh-keygen
-	if [ -f "$(sysconfdir)/ssh_host_key" ] ; then \
-		echo "$(sysconfdir)/ssh_host_key already exists, skipping." ; \
+	if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \
+		echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \
 	else \
-		./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N "" ; \
+		./ssh-keygen -b 1024 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \
 	fi ; \
-	if [ -f $(sysconfdir)/ssh_host_dsa_key ] ; then \
-		echo "$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \
+	if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \
+		echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \
 	else \
-		./ssh-keygen -d -f $(sysconfdir)/ssh_host_dsa_key -N "" ; \
+		./ssh-keygen -d -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \
 	fi ;
 
 host-key-force: ssh-keygen
-	./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N ""
-	./ssh-keygen -d -f $(sysconfdir)/ssh_host_dsa_key -N ""
+	./ssh-keygen -b 1024 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N ""
+	./ssh-keygen -d -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N ""
 
 uninstallall:	uninstall
 	-rm -f $(DESTDIR)$(sysconfdir)/ssh_config

-- 
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)








More information about the openssh-unix-dev mailing list