diff options
author | kris <kris@FreeBSD.org> | 2000-08-23 09:57:05 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-08-23 09:57:05 +0000 |
commit | d5c1305d221ad03fbbc5a0315b642cd98e2462ed (patch) | |
tree | 99e701c42a3d0a260dd9309473c454187b7d0ea4 /security | |
parent | 6e12ccd99cb402252f713e93e223a4f478a70de4 (diff) | |
download | FreeBSD-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/Makefile | 12 |
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> |