diff --git a/ChangeLog b/ChangeLog index 237533f1c..692a0ea99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,9 @@ - New URL for x11-ssh-askpass. - Fixpaths was missing /etc/ssh_known_hosts. Report from Jim Knoble + - Added 'DESTDIR' option to Makefile to ease package building. Patch from + Jim Knoble + - Updated RPM spec files to use DESTDIR 20000124 - Pick up version 1.2.2 from OpenBSD CVS (no changes, just version number diff --git a/INSTALL b/INSTALL index 90bee1905..93fc2f2fb 100644 --- a/INSTALL +++ b/INSTALL @@ -27,8 +27,8 @@ libraries and headers. GNOME: http://www.gnome.org/ -Alternatly Jim Knoble has written an excellent X11 -passphrase requester. This is maintained seperatly at: +Alternatively, Jim Knoble has written an excellent X11 +passphrase requester. This is maintained separately at: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/index.html diff --git a/Makefile.in b/Makefile.in index 964b10851..6f8793fae 100644 --- a/Makefile.in +++ b/Makefile.in @@ -10,6 +10,8 @@ piddir=@piddir@ srcdir=@srcdir@ top_srcdir=@top_srcdir@ +DESTDIR= + VPATH=@srcdir@ SSH_PROGRAM=@bindir@/ssh @@ -100,65 +102,65 @@ catman-do: done install: $(TARGETS) - $(INSTALL) -d $(bindir) - $(INSTALL) -d $(sbindir) - $(INSTALL) -d $(mandir) - $(INSTALL) -d $(mandir)/$(mansubdir)1 - $(INSTALL) -d $(mandir)/$(mansubdir)8 - $(INSTALL) -s ssh $(bindir)/ssh - $(INSTALL) -s scp $(bindir)/scp - $(INSTALL) -s ssh-add $(bindir)/ssh-add - $(INSTALL) -s ssh-agent $(bindir)/ssh-agent - $(INSTALL) -s ssh-keygen $(bindir)/ssh-keygen - $(INSTALL) -s sshd $(sbindir)/sshd - $(INSTALL) -m 644 ssh.[01].out $(mandir)/$(mansubdir)1/ssh.1 - $(INSTALL) -m 644 scp.[01].out $(mandir)/$(mansubdir)1/scp.1 - $(INSTALL) -m 644 ssh-add.[01].out $(mandir)/$(mansubdir)1/ssh-add.1 - $(INSTALL) -m 644 ssh-agent.[01].out $(mandir)/$(mansubdir)1/ssh-agent.1 - $(INSTALL) -m 644 ssh-keygen.[01].out $(mandir)/$(mansubdir)1/ssh-keygen.1 - $(INSTALL) -m 644 sshd.[08].out $(mandir)/$(mansubdir)8/sshd.8 - -rm -f $(bindir)/slogin - ln -s ssh $(bindir)/slogin - -rm -f $(mandir)/$(mansubdir)1/slogin.1 - ln -s ssh.1 $(mandir)/$(mansubdir)1/slogin.1 + $(INSTALL) -d $(DESTDIR)$(bindir) + $(INSTALL) -d $(DESTDIR)$(sbindir) + $(INSTALL) -d $(DESTDIR)$(mandir) + $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)1 + $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)8 + $(INSTALL) -s ssh $(DESTDIR)$(bindir)/ssh + $(INSTALL) -s scp $(DESTDIR)$(bindir)/scp + $(INSTALL) -s ssh-add $(DESTDIR)$(bindir)/ssh-add + $(INSTALL) -s ssh-agent $(DESTDIR)$(bindir)/ssh-agent + $(INSTALL) -s ssh-keygen $(DESTDIR)$(bindir)/ssh-keygen + $(INSTALL) -s sshd $(DESTDIR)$(sbindir)/sshd + $(INSTALL) -m 644 ssh.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 + $(INSTALL) -m 644 scp.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 + $(INSTALL) -m 644 ssh-add.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 + $(INSTALL) -m 644 ssh-agent.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 + $(INSTALL) -m 644 ssh-keygen.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 + $(INSTALL) -m 644 sshd.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 + -rm -f $(DESTDIR)$(bindir)/slogin + ln -s ssh $(DESTDIR)$(bindir)/slogin + -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 + ln -s ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 if [ ! -z "@GNOME_ASKPASS@" ] ; then \ - $(INSTALL) -d $(libexecdir) ; \ - $(INSTALL) -d $(libexecdir)/ssh ; \ - $(INSTALL) -s @GNOME_ASKPASS@ ${ASKPASS_LOCATION} ; \ + $(INSTALL) -d $(DESTDIR)$(libexecdir) ; \ + $(INSTALL) -d $(DESTDIR)$(libexecdir)/ssh ; \ + $(INSTALL) -s @GNOME_ASKPASS@ $(DESTDIR)${ASKPASS_LOCATION} ; \ fi - if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \ - $(INSTALL) -d $(sysconfdir); \ - $(INSTALL) -m 644 ssh_config.out $(sysconfdir)/ssh_config; \ - $(INSTALL) -m 644 sshd_config.out $(sysconfdir)/sshd_config; \ + if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config -a ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \ + $(INSTALL) -d $(DESTDIR)$(sysconfdir); \ + $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \ + $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \ fi uninstallall: uninstall - -rm -f $(sysconfdir)/ssh_config - -rm -f $(sysconfdir)/sshd_config - -rmdir $(sysconfdir) - -rmdir $(bindir) - -rmdir $(sbindir) - -rmdir $(mandir)/$(mansubdir)1 - -rmdir $(mandir)/$(mansubdir)8 - -rmdir $(mandir) - -rmdir $(libexecdir) + -rm -f $(DESTDIR)$(sysconfdir)/ssh_config + -rm -f $(DESTDIR)$(sysconfdir)/sshd_config + -rmdir $(DESTDIR)$(sysconfdir) + -rmdir $(DESTDIR)$(bindir) + -rmdir $(DESTDIR)$(sbindir) + -rmdir $(DESTDIR)$(mandir)/$(mansubdir)1 + -rmdir $(DESTDIR)$(mandir)/$(mansubdir)8 + -rmdir $(DESTDIR)$(mandir) + -rmdir $(DESTDIR)$(libexecdir) uninstall: - -rm -f $(bindir)/ssh - -rm -f $(bindir)/scp - -rm -f $(bindir)/ssh-add - -rm -f $(bindir)/ssh-agent - -rm -f $(bindir)/ssh-keygen - -rm -f $(sbindir)/sshd - -rm -f $(mandir)/$(mansubdir)1/ssh.1 - -rm -f $(mandir)/$(mansubdir)1/scp.1 - -rm -f $(mandir)/$(mansubdir)1/ssh-add.1 - -rm -f $(mandir)/$(mansubdir)1/ssh-agent.1 - -rm -f $(mandir)/$(mansubdir)1/ssh-keygen.1 - -rm -f $(mandir)/$(mansubdir)8/sshd.8 - -rm -f $(bindir)/slogin - -rm -f $(mandir)/$(mansubdir)1/slogin.1 - -rm -f ${ASKPASS_PROGRAM} - -rmdir $(libexecdir)/ssh ; + -rm -f $(DESTDIR)$(bindir)/ssh + -rm -f $(DESTDIR)$(bindir)/scp + -rm -f $(DESTDIR)$(bindir)/ssh-add + -rm -f $(DESTDIR)$(bindir)/ssh-agent + -rm -f $(DESTDIR)$(bindir)/ssh-keygen + -rm -f $(DESTDIR)$(sbindir)/sshd + -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 + -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 + -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 + -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 + -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 + -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 + -rm -f $(DESTDIR)$(bindir)/slogin + -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 + -rm -f $(DESTDIR)${ASKPASS_PROGRAM} + -rmdir $(DESTDIR)$(libexecdir)/ssh ; diff --git a/packages/redhat/openssh.spec b/packages/redhat/openssh.spec index ece13c5b7..d8c3cf3a6 100644 --- a/packages/redhat/openssh.spec +++ b/packages/redhat/openssh.spec @@ -160,9 +160,8 @@ cd .. %install rm -rf $RPM_BUILD_ROOT -make install prefix="$RPM_BUILD_ROOT/usr" sysconfdir="$RPM_BUILD_ROOT/etc/ssh" +make install DESTDIR=$RPM_BUILD_ROOT/ -install -d $RPM_BUILD_ROOT/etc/ssh install -d $RPM_BUILD_ROOT/etc/pam.d/ install -d $RPM_BUILD_ROOT/etc/rc.d/init.d install -m644 packages/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd diff --git a/packages/suse/openssh.spec b/packages/suse/openssh.spec index a2a5cd2a7..a43671765 100644 --- a/packages/suse/openssh.spec +++ b/packages/suse/openssh.spec @@ -150,7 +150,7 @@ make %install rm -rf $RPM_BUILD_ROOT -make install prefix="$RPM_BUILD_ROOT/usr" sysconfdir="$RPM_BUILD_ROOT/etc/ssh" +make install DESTDIR=$RPM_BUILD_ROOT/ install -d $RPM_BUILD_ROOT/etc/ssh/ install -d $RPM_BUILD_ROOT/etc/pam.d/ install -d $RPM_BUILD_ROOT/sbin/init.d/