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:
parent
b51b39faaa
commit
1360caf6fe
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34448
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue