- (djm) Don't generate host keys when $(DESTDIR) is set (e.g. during RPM

builds)
This commit is contained in:
Damien Miller 2000-07-11 18:39:20 +10:00
parent 4d97ba2257
commit 54ba469f20
2 changed files with 13 additions and 9 deletions

View File

@ -50,6 +50,8 @@
[cipher.c kex.c servconf.c] [cipher.c kex.c servconf.c]
strtok() --> strsep(). (niels@ ok) strtok() --> strsep(). (niels@ ok)
- (djm) Fix problem with debug mode and MaxStartups - (djm) Fix problem with debug mode and MaxStartups
- (djm) Don't generate host keys when $(DESTDIR) is set (e.g. during RPM
builds)
20000709 20000709
- (djm) Only enable PAM_TTY kludge for Linux. Problem report from - (djm) Only enable PAM_TTY kludge for Linux. Problem report from

View File

@ -150,15 +150,17 @@ install-files:
fi fi
host-key: ssh-keygen host-key: ssh-keygen
if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \ if [ -z "$(DESTDIR)" ] ; then \
echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \ if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \
else \ echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \
./ssh-keygen -b 1024 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \ else \
fi ; \ ./ssh-keygen -b 1024 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \
if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \ fi ; \
echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \ if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \
else \ echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \
./ssh-keygen -d -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \ else \
./ssh-keygen -d -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \
fi ; \
fi ; fi ;
host-key-force: ssh-keygen host-key-force: ssh-keygen