Fix %%PREFIX%% in ${PREFIX}/etc/rc.d/ircd.sh startup script.
This commit is contained in:
parent
798cac5ca4
commit
ad13d1353e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33998
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue