diff options
author | Damien Miller <djm@mindrot.org> | 2000-01-26 14:37:48 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-01-26 14:37:48 +1100 |
commit | 7d7c60d6e7b8439e1d3d6ad1a6ec39688228ac09 (patch) | |
tree | b801d24390c37049a96b337e21f160adb716aee8 | |
parent | 6d84493c8b689294d076890c073cf5a3c0789b75 (diff) | |
download | openssh-git-7d7c60d6e7b8439e1d3d6ad1a6ec39688228ac09.tar.gz |
- Added 'DESTDIR' option to Makefile to ease package building. Patch fromV_1_2_2_PRE29
Jim Knoble <jmknoble@pobox.com>
- Updated RPM spec files to use DESTDIR
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | INSTALL | 4 | ||||
-rw-r--r-- | Makefile.in | 108 | ||||
-rw-r--r-- | packages/redhat/openssh.spec | 3 | ||||
-rw-r--r-- | packages/suse/openssh.spec | 2 |
5 files changed, 62 insertions, 58 deletions
@@ -8,6 +8,9 @@ - New URL for x11-ssh-askpass. - Fixpaths was missing /etc/ssh_known_hosts. Report from Jim Knoble <jmknoble@pobox.com> + - Added 'DESTDIR' option to Makefile to ease package building. Patch from + Jim Knoble <jmknoble@pobox.com> + - Updated RPM spec files to use DESTDIR 20000124 - Pick up version 1.2.2 from OpenBSD CVS (no changes, just version number @@ -27,8 +27,8 @@ libraries and headers. GNOME: http://www.gnome.org/ -Alternatly Jim Knoble <jmknoble@pobox.com> has written an excellent X11 -passphrase requester. This is maintained seperatly at: +Alternatively, Jim Knoble <jmknoble@pobox.com> 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 964b1085..6f8793fa 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 ece13c5b..d8c3cf3a 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 a2a5cd2a..a4367176 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/ |