aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authorshige <shige@FreeBSD.org>2000-10-19 21:36:29 +0800
committershige <shige@FreeBSD.org>2000-10-19 21:36:29 +0800
commitfa4e720d1703cdd172cf13eec3e9eb2f3b7d4849 (patch)
treedb62bbbe3ab5b78ad1e1b66a72fd941f1f4e1797 /irc
parent7a628d4513a13e335bd368e19db8313e82a0e994 (diff)
downloadfreebsd-ports-graphics-fa4e720d1703cdd172cf13eec3e9eb2f3b7d4849.tar.gz
freebsd-ports-graphics-fa4e720d1703cdd172cf13eec3e9eb2f3b7d4849.tar.zst
freebsd-ports-graphics-fa4e720d1703cdd172cf13eec3e9eb2f3b7d4849.zip
Fix %%PREFIX%% in ${PREFIX}/etc/rc.d/ircd.sh startup script.
Diffstat (limited to 'irc')
-rw-r--r--irc/irc/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/irc/irc/Makefile b/irc/irc/Makefile
index d202064175f..21b0a211de2 100644
--- a/irc/irc/Makefile
+++ b/irc/irc/Makefile
@@ -41,6 +41,10 @@ STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/ircd.sh
CONFIGURE_ARGS+= --enable-ip6
.endif
+pre-build:
+ @${RM} -f ${WRKDIR}/ircd.sh
+ @${SED} -e "s;%%PREFIX%%;${PREFIX};g" ${FILESDIR}/ircd.sh > ${WRKDIR}/ircd.sh
+
do-build:
@(cd ${WRKSRC}/${MACHINE_ARCH}-unknown-freebsd${OSREL}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
@@ -50,7 +54,7 @@ do-install:
post-install:
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
- ${INSTALL_SCRIPT} ${FILESDIR}/ircd.sh ${STARTUP_SCRIPT};\
+ ${INSTALL_SCRIPT} ${WRKDIR}/ircd.sh ${STARTUP_SCRIPT};\
fi
.include <bsd.port.post.mk>