Don't install etc/rc.d/sshd.sh if sshd is being started from inetd.conf.

PR:		15691
Submitted by:	Roger Marquis <marquis@roble.com>
Reviewed by:	maintainer
This commit is contained in:
Steve Price 2000-10-30 12:57:16 +00:00
parent b51b39faaa
commit 1360caf6fe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34448

View file

@ -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 <bsd.port.post.mk>