aboutsummaryrefslogtreecommitdiff
path: root/security/ssh/Makefile
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/Makefile
parent235152623942044cd94ecbe591a80d0d3a24a02f (diff)
downloadports-b57e6c0761876f7e512c06cde4de72ec37b2d43d.tar.gz
ports-b57e6c0761876f7e512c06cde4de72ec37b2d43d.zip
Notes
Diffstat (limited to 'security/ssh/Makefile')
-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>