mirror of git://anongit.mindrot.org/openssh.git
- Added 'DESTDIR' option to Makefile to ease package building. Patch from
Jim Knoble <jmknoble@pobox.com> - Updated RPM spec files to use DESTDIR
This commit is contained in:
parent
6d84493c8b
commit
7d7c60d6e7
|
@ -8,6 +8,9 @@
|
||||||
- New URL for x11-ssh-askpass.
|
- New URL for x11-ssh-askpass.
|
||||||
- Fixpaths was missing /etc/ssh_known_hosts. Report from Jim Knoble
|
- Fixpaths was missing /etc/ssh_known_hosts. Report from Jim Knoble
|
||||||
<jmknoble@pobox.com>
|
<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
|
20000124
|
||||||
- Pick up version 1.2.2 from OpenBSD CVS (no changes, just version number
|
- Pick up version 1.2.2 from OpenBSD CVS (no changes, just version number
|
||||||
|
|
4
INSTALL
4
INSTALL
|
@ -27,8 +27,8 @@ libraries and headers.
|
||||||
GNOME:
|
GNOME:
|
||||||
http://www.gnome.org/
|
http://www.gnome.org/
|
||||||
|
|
||||||
Alternatly Jim Knoble <jmknoble@pobox.com> has written an excellent X11
|
Alternatively, Jim Knoble <jmknoble@pobox.com> has written an excellent X11
|
||||||
passphrase requester. This is maintained seperatly at:
|
passphrase requester. This is maintained separately at:
|
||||||
|
|
||||||
http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/index.html
|
http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/index.html
|
||||||
|
|
||||||
|
|
108
Makefile.in
108
Makefile.in
|
@ -10,6 +10,8 @@ piddir=@piddir@
|
||||||
srcdir=@srcdir@
|
srcdir=@srcdir@
|
||||||
top_srcdir=@top_srcdir@
|
top_srcdir=@top_srcdir@
|
||||||
|
|
||||||
|
DESTDIR=
|
||||||
|
|
||||||
VPATH=@srcdir@
|
VPATH=@srcdir@
|
||||||
|
|
||||||
SSH_PROGRAM=@bindir@/ssh
|
SSH_PROGRAM=@bindir@/ssh
|
||||||
|
@ -100,65 +102,65 @@ catman-do:
|
||||||
done
|
done
|
||||||
|
|
||||||
install: $(TARGETS)
|
install: $(TARGETS)
|
||||||
$(INSTALL) -d $(bindir)
|
$(INSTALL) -d $(DESTDIR)$(bindir)
|
||||||
$(INSTALL) -d $(sbindir)
|
$(INSTALL) -d $(DESTDIR)$(sbindir)
|
||||||
$(INSTALL) -d $(mandir)
|
$(INSTALL) -d $(DESTDIR)$(mandir)
|
||||||
$(INSTALL) -d $(mandir)/$(mansubdir)1
|
$(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)1
|
||||||
$(INSTALL) -d $(mandir)/$(mansubdir)8
|
$(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)8
|
||||||
$(INSTALL) -s ssh $(bindir)/ssh
|
$(INSTALL) -s ssh $(DESTDIR)$(bindir)/ssh
|
||||||
$(INSTALL) -s scp $(bindir)/scp
|
$(INSTALL) -s scp $(DESTDIR)$(bindir)/scp
|
||||||
$(INSTALL) -s ssh-add $(bindir)/ssh-add
|
$(INSTALL) -s ssh-add $(DESTDIR)$(bindir)/ssh-add
|
||||||
$(INSTALL) -s ssh-agent $(bindir)/ssh-agent
|
$(INSTALL) -s ssh-agent $(DESTDIR)$(bindir)/ssh-agent
|
||||||
$(INSTALL) -s ssh-keygen $(bindir)/ssh-keygen
|
$(INSTALL) -s ssh-keygen $(DESTDIR)$(bindir)/ssh-keygen
|
||||||
$(INSTALL) -s sshd $(sbindir)/sshd
|
$(INSTALL) -s sshd $(DESTDIR)$(sbindir)/sshd
|
||||||
$(INSTALL) -m 644 ssh.[01].out $(mandir)/$(mansubdir)1/ssh.1
|
$(INSTALL) -m 644 ssh.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
|
||||||
$(INSTALL) -m 644 scp.[01].out $(mandir)/$(mansubdir)1/scp.1
|
$(INSTALL) -m 644 scp.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
|
||||||
$(INSTALL) -m 644 ssh-add.[01].out $(mandir)/$(mansubdir)1/ssh-add.1
|
$(INSTALL) -m 644 ssh-add.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
|
||||||
$(INSTALL) -m 644 ssh-agent.[01].out $(mandir)/$(mansubdir)1/ssh-agent.1
|
$(INSTALL) -m 644 ssh-agent.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1
|
||||||
$(INSTALL) -m 644 ssh-keygen.[01].out $(mandir)/$(mansubdir)1/ssh-keygen.1
|
$(INSTALL) -m 644 ssh-keygen.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1
|
||||||
$(INSTALL) -m 644 sshd.[08].out $(mandir)/$(mansubdir)8/sshd.8
|
$(INSTALL) -m 644 sshd.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
|
||||||
-rm -f $(bindir)/slogin
|
-rm -f $(DESTDIR)$(bindir)/slogin
|
||||||
ln -s ssh $(bindir)/slogin
|
ln -s ssh $(DESTDIR)$(bindir)/slogin
|
||||||
-rm -f $(mandir)/$(mansubdir)1/slogin.1
|
-rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
|
||||||
ln -s ssh.1 $(mandir)/$(mansubdir)1/slogin.1
|
ln -s ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
|
||||||
|
|
||||||
if [ ! -z "@GNOME_ASKPASS@" ] ; then \
|
if [ ! -z "@GNOME_ASKPASS@" ] ; then \
|
||||||
$(INSTALL) -d $(libexecdir) ; \
|
$(INSTALL) -d $(DESTDIR)$(libexecdir) ; \
|
||||||
$(INSTALL) -d $(libexecdir)/ssh ; \
|
$(INSTALL) -d $(DESTDIR)$(libexecdir)/ssh ; \
|
||||||
$(INSTALL) -s @GNOME_ASKPASS@ ${ASKPASS_LOCATION} ; \
|
$(INSTALL) -s @GNOME_ASKPASS@ $(DESTDIR)${ASKPASS_LOCATION} ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \
|
if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config -a ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \
|
||||||
$(INSTALL) -d $(sysconfdir); \
|
$(INSTALL) -d $(DESTDIR)$(sysconfdir); \
|
||||||
$(INSTALL) -m 644 ssh_config.out $(sysconfdir)/ssh_config; \
|
$(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \
|
||||||
$(INSTALL) -m 644 sshd_config.out $(sysconfdir)/sshd_config; \
|
$(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
uninstallall: uninstall
|
uninstallall: uninstall
|
||||||
-rm -f $(sysconfdir)/ssh_config
|
-rm -f $(DESTDIR)$(sysconfdir)/ssh_config
|
||||||
-rm -f $(sysconfdir)/sshd_config
|
-rm -f $(DESTDIR)$(sysconfdir)/sshd_config
|
||||||
-rmdir $(sysconfdir)
|
-rmdir $(DESTDIR)$(sysconfdir)
|
||||||
-rmdir $(bindir)
|
-rmdir $(DESTDIR)$(bindir)
|
||||||
-rmdir $(sbindir)
|
-rmdir $(DESTDIR)$(sbindir)
|
||||||
-rmdir $(mandir)/$(mansubdir)1
|
-rmdir $(DESTDIR)$(mandir)/$(mansubdir)1
|
||||||
-rmdir $(mandir)/$(mansubdir)8
|
-rmdir $(DESTDIR)$(mandir)/$(mansubdir)8
|
||||||
-rmdir $(mandir)
|
-rmdir $(DESTDIR)$(mandir)
|
||||||
-rmdir $(libexecdir)
|
-rmdir $(DESTDIR)$(libexecdir)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
-rm -f $(bindir)/ssh
|
-rm -f $(DESTDIR)$(bindir)/ssh
|
||||||
-rm -f $(bindir)/scp
|
-rm -f $(DESTDIR)$(bindir)/scp
|
||||||
-rm -f $(bindir)/ssh-add
|
-rm -f $(DESTDIR)$(bindir)/ssh-add
|
||||||
-rm -f $(bindir)/ssh-agent
|
-rm -f $(DESTDIR)$(bindir)/ssh-agent
|
||||||
-rm -f $(bindir)/ssh-keygen
|
-rm -f $(DESTDIR)$(bindir)/ssh-keygen
|
||||||
-rm -f $(sbindir)/sshd
|
-rm -f $(DESTDIR)$(sbindir)/sshd
|
||||||
-rm -f $(mandir)/$(mansubdir)1/ssh.1
|
-rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
|
||||||
-rm -f $(mandir)/$(mansubdir)1/scp.1
|
-rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
|
||||||
-rm -f $(mandir)/$(mansubdir)1/ssh-add.1
|
-rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
|
||||||
-rm -f $(mandir)/$(mansubdir)1/ssh-agent.1
|
-rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1
|
||||||
-rm -f $(mandir)/$(mansubdir)1/ssh-keygen.1
|
-rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1
|
||||||
-rm -f $(mandir)/$(mansubdir)8/sshd.8
|
-rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
|
||||||
-rm -f $(bindir)/slogin
|
-rm -f $(DESTDIR)$(bindir)/slogin
|
||||||
-rm -f $(mandir)/$(mansubdir)1/slogin.1
|
-rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
|
||||||
-rm -f ${ASKPASS_PROGRAM}
|
-rm -f $(DESTDIR)${ASKPASS_PROGRAM}
|
||||||
-rmdir $(libexecdir)/ssh ;
|
-rmdir $(DESTDIR)$(libexecdir)/ssh ;
|
||||||
|
|
|
@ -160,9 +160,8 @@ cd ..
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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/pam.d/
|
||||||
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
|
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||||
install -m644 packages/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
|
install -m644 packages/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
|
||||||
|
|
|
@ -150,7 +150,7 @@ make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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/ssh/
|
||||||
install -d $RPM_BUILD_ROOT/etc/pam.d/
|
install -d $RPM_BUILD_ROOT/etc/pam.d/
|
||||||
install -d $RPM_BUILD_ROOT/sbin/init.d/
|
install -d $RPM_BUILD_ROOT/sbin/init.d/
|
||||||
|
|
Loading…
Reference in New Issue