]> andersk Git - openssh.git/commitdiff
- (djm) Don't generate host keys when $(DESTDIR) is set (e.g. during RPM
authordjm <djm>
Tue, 11 Jul 2000 08:39:20 +0000 (08:39 +0000)
committerdjm <djm>
Tue, 11 Jul 2000 08:39:20 +0000 (08:39 +0000)
   builds)

ChangeLog
Makefile.in

index b36f9a48d08ba13637a0afacabe209b71b9413f8..2e41481eff96715d35bf69ed01f796696bbac4a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -50,6 +50,8 @@
      [cipher.c kex.c servconf.c]
      strtok() --> strsep(). (niels@ ok)
  - (djm) Fix problem with debug mode and MaxStartups
+ - (djm) Don't generate host keys when $(DESTDIR) is set (e.g. during RPM
+   builds)
 
 20000709
  - (djm) Only enable PAM_TTY kludge for Linux. Problem report from
index d8a3f46857bfe5e32ac49e49ab2b17c0f7ddd67e..23e2bce8fdb7c0822ff5783b903ccbef7ad74b6d 100644 (file)
@@ -150,15 +150,17 @@ install-files:
        fi
 
 host-key: ssh-keygen
-       if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \
-               echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \
-       else \
-               ./ssh-keygen -b 1024 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \
-       fi ; \
-       if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \
-               echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \
-       else \
-               ./ssh-keygen -d -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \
+       if [ -z "$(DESTDIR)" ] ; then \
+               if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \
+                       echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \
+               else \
+                       ./ssh-keygen -b 1024 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \
+               fi ; \
+               if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \
+                       echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \
+               else \
+                       ./ssh-keygen -d -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \
+               fi ; \
        fi ;
 
 host-key-force: ssh-keygen
This page took 0.07999 seconds and 5 git commands to generate.