diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-16 01:50:18 +0800 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-16 01:50:18 +0800 |
commit | a1e93258038e2fc3a0bd373eccbd5a7fcd5c36e8 (patch) | |
tree | 049fdab46316a922380118101a0d25da9e24a04c /security | |
parent | 634cb784a969fe318c4ea6676b13a8849ec23005 (diff) | |
download | freebsd-ports-gnome-a1e93258038e2fc3a0bd373eccbd5a7fcd5c36e8.tar.gz freebsd-ports-gnome-a1e93258038e2fc3a0bd373eccbd5a7fcd5c36e8.tar.zst freebsd-ports-gnome-a1e93258038e2fc3a0bd373eccbd5a7fcd5c36e8.zip |
Install an sshd.sh startup file.
Diffstat (limited to 'security')
-rw-r--r-- | security/ssh/Makefile | 8 | ||||
-rw-r--r-- | security/ssh/pkg-plist | 2 | ||||
-rw-r--r-- | security/ssh2/Makefile | 8 | ||||
-rw-r--r-- | security/ssh2/pkg-plist | 2 |
4 files changed, 18 insertions, 2 deletions
diff --git a/security/ssh/Makefile b/security/ssh/Makefile index 3efa6a7ab589..bf74d708a5a0 100644 --- a/security/ssh/Makefile +++ b/security/ssh/Makefile @@ -3,7 +3,7 @@ # Date created: 30 Jul 1995 # Whom: torstenb@FreeBSD.ORG # -# $Id: Makefile,v 1.24 1996/06/08 20:50:42 ache Exp $ +# $Id: Makefile,v 1.25 1996/06/15 07:03:11 torstenb Exp $ # # Maximal ssh package requires YES values for # USE_PERL, USE_TCPWRAP @@ -89,6 +89,12 @@ post-install: @echo "If you are installing for the first time, do not forget to run:" @echo " ssh-keygen -b 1024 -f $(PREFIX)/etc/ssh_host_key -N '' " @echo "---------------------------------------------------------------" + @if [ ! -f ${PREFIX}/etc/rc.d/sshd.sh ]; then \ + echo "Installing ${PREFIX}/etc/rc.d/sshd.sh startup file."; \ + echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/sshd.sh; \ + echo "[ -x /usr/local/sbin/sshd ] && /usr/local/sbin/sshd && echo -n ' sshd'" >> ${PREFIX}/etc/rc.d/sshd.sh; \ + chmod 751 ${PREFIX}/etc/rc.d/sshd.sh; \ + fi .include <bsd.port.mk> diff --git a/security/ssh/pkg-plist b/security/ssh/pkg-plist index 60c21a3c5a52..5cf40f2c48f4 100644 --- a/security/ssh/pkg-plist +++ b/security/ssh/pkg-plist @@ -1,3 +1,5 @@ +etc/rc.d/sshd.sh +@unexec rm %D/etc/rc.d/sshd.sh bin/scp bin/slogin bin/ssh diff --git a/security/ssh2/Makefile b/security/ssh2/Makefile index 3efa6a7ab589..bf74d708a5a0 100644 --- a/security/ssh2/Makefile +++ b/security/ssh2/Makefile @@ -3,7 +3,7 @@ # Date created: 30 Jul 1995 # Whom: torstenb@FreeBSD.ORG # -# $Id: Makefile,v 1.24 1996/06/08 20:50:42 ache Exp $ +# $Id: Makefile,v 1.25 1996/06/15 07:03:11 torstenb Exp $ # # Maximal ssh package requires YES values for # USE_PERL, USE_TCPWRAP @@ -89,6 +89,12 @@ post-install: @echo "If you are installing for the first time, do not forget to run:" @echo " ssh-keygen -b 1024 -f $(PREFIX)/etc/ssh_host_key -N '' " @echo "---------------------------------------------------------------" + @if [ ! -f ${PREFIX}/etc/rc.d/sshd.sh ]; then \ + echo "Installing ${PREFIX}/etc/rc.d/sshd.sh startup file."; \ + echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/sshd.sh; \ + echo "[ -x /usr/local/sbin/sshd ] && /usr/local/sbin/sshd && echo -n ' sshd'" >> ${PREFIX}/etc/rc.d/sshd.sh; \ + chmod 751 ${PREFIX}/etc/rc.d/sshd.sh; \ + fi .include <bsd.port.mk> diff --git a/security/ssh2/pkg-plist b/security/ssh2/pkg-plist index 60c21a3c5a52..5cf40f2c48f4 100644 --- a/security/ssh2/pkg-plist +++ b/security/ssh2/pkg-plist @@ -1,3 +1,5 @@ +etc/rc.d/sshd.sh +@unexec rm %D/etc/rc.d/sshd.sh bin/scp bin/slogin bin/ssh |