aboutsummaryrefslogtreecommitdiffstats
path: root/games/bnetd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/bnetd/Makefile')
-rw-r--r--games/bnetd/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/games/bnetd/Makefile b/games/bnetd/Makefile
index a73fc13a43a6..8d90c2eb3236 100644
--- a/games/bnetd/Makefile
+++ b/games/bnetd/Makefile
@@ -32,9 +32,8 @@ do-install:
post-install:
@if [ ! -f ${PREFIX}/etc/rc.d/bnetd.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/bnetd.sh startup file."; \
- ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/bnetd.sh; \
- ${ECHO} "cd ${PREFIX}; [ -x sbin/bnetd -a -f bnetd/conf/bnetd.conf ] && sbin/bnetd -c bnetd/conf/bnetd.conf > /dev/null && ${ECHO} -n ' bnetd'" >> ${PREFIX}/etc/rc.d/bnetd.sh; \
- ${CHMOD} 751 ${PREFIX}/etc/rc.d/bnetd.sh; \
+ ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/bnetd.sh \
+ ${PREFIX}/etc/rc.d/bnetd.sh; \
fi
.include <bsd.port.mk>