From 1360caf6fe1d1adf821f2df9b26364637b93915e Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 30 Oct 2000 12:57:16 +0000 Subject: Don't install etc/rc.d/sshd.sh if sshd is being started from inetd.conf. PR: 15691 Submitted by: Roger Marquis Reviewed by: maintainer --- security/ssh2/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'security/ssh2') diff --git a/security/ssh2/Makefile b/security/ssh2/Makefile index 002bf70252e9..dcec14d0a452 100644 --- a/security/ssh2/Makefile +++ b/security/ssh2/Makefile @@ -55,11 +55,13 @@ post-install: .endfor .endif # - @if [ ! -f ${PREFIX}/etc/rc.d/sshd.sh ]; then \ + @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}+' < ${FILESDIR}/sshd.sh \ > ${PREFIX}/etc/rc.d/sshd.sh; \ ${CHMOD} 751 ${PREFIX}/etc/rc.d/sshd.sh; \ + fi; \ fi .include -- cgit v1.2.3