summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-08-23 09:57:05 +0000
committerkris <kris@FreeBSD.org>2000-08-23 09:57:05 +0000
commitd5c1305d221ad03fbbc5a0315b642cd98e2462ed (patch)
tree99e701c42a3d0a260dd9309473c454187b7d0ea4 /security
parent6e12ccd99cb402252f713e93e223a4f478a70de4 (diff)
downloadFreeBSD-ports-d5c1305d221ad03fbbc5a0315b642cd98e2462ed.zip
FreeBSD-ports-d5c1305d221ad03fbbc5a0315b642cd98e2462ed.tar.gz
Don't install the startup script if ssh is being run out of inetd.conf
PR: 15691 Submitted by: Roger Marquis <marquis@roble.com>
Diffstat (limited to 'security')
-rw-r--r--security/ssh/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/security/ssh/Makefile b/security/ssh/Makefile
index e97a892..891cdf1 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>
OpenPOWER on IntegriCloud