summaryrefslogtreecommitdiff
path: root/security/ssh
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-08-23 09:57:05 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-08-23 09:57:05 +0000
commitb57e6c0761876f7e512c06cde4de72ec37b2d43d (patch)
tree6128d55f5520114867a5c19ef9ebde31622d3a6b /security/ssh
parentUpgrade to whisker 1.4 (diff)
Don't install the startup script if ssh is being run out of inetd.conf
PR: 15691 Submitted by: Roger Marquis <marquis@roble.com>
Notes
Notes: svn path=/head/; revision=31896
Diffstat (limited to 'security/ssh')
-rw-r--r--security/ssh/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/security/ssh/Makefile b/security/ssh/Makefile
index e97a892b7a65..891cdf183aa5 100644
--- a/security/ssh/Makefile
+++ b/security/ssh/Makefile
@@ -101,14 +101,16 @@ fetch-depends:
post-install:
@if [ ! -f ${PREFIX}/etc/ssh_host_key ]; then \
- ${ECHO} "Generating a secret host key..."; \
- ${PREFIX}/bin/ssh-keygen -f ${PREFIX}/etc/ssh_host_key -N ""; \
- fi
- @if [ ! -f ${PREFIX}/etc/rc.d/sshd.sh ]; then \
+ ${ECHO} "Generating a secret host key..."; \
+ ${PREFIX}/bin/ssh-keygen -f ${PREFIX}/etc/ssh_host_key -N ""; \
+ fi; \
+ if [ "`grep ssh /etc/inetd.conf|grep -v ^#ssh`" = "" ]; then \
+ if [ ! -f ${PREFIX}/etc/rc.d/sshd.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/sshd.sh startup file."; \
${SED} -e 's+!!PREFIX!!+${PREFIX}+g' ${FILESDIR}/sshd.sh \
- > ${PREFIX}/etc/rc.d/sshd.sh; \
+ > ${PREFIX}/etc/rc.d/sshd.sh; \
${CHMOD} 751 ${PREFIX}/etc/rc.d/sshd.sh; \
+ fi; \
fi
.include <bsd.port.pre.mk>