summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-06-15 17:50:18 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-06-15 17:50:18 +0000
commitf2c4431af197e44b06c15b2773bc7e3088aa4373 (patch)
tree850d7cd72dd6e5e1e08333165cec3529c9eabe22 /security
parentInstall an apache.sh startup file in /usr/local/etc/rc.d/ (diff)
Install an sshd.sh startup file.
Notes
Notes: svn path=/head/; revision=3226
Diffstat (limited to 'security')
-rw-r--r--security/ssh/Makefile8
-rw-r--r--security/ssh/pkg-plist2
-rw-r--r--security/ssh2/Makefile8
-rw-r--r--security/ssh2/pkg-plist2
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