summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dns/dhisd/Makefile5
-rw-r--r--net/dhisd/Makefile5
2 files changed, 6 insertions, 4 deletions
diff --git a/dns/dhisd/Makefile b/dns/dhisd/Makefile
index b3c1d9ccbc6c..953896a9e182 100644
--- a/dns/dhisd/Makefile
+++ b/dns/dhisd/Makefile
@@ -18,8 +18,9 @@ LIB_DEPENDS= gmp.3:${PORTSDIR}/math/libgmp
DOCFILES= CONTRIBUTORS COPYRIGHT INSTALL MODULES README
post-patch:
+ ${CP} ${FILESDIR}/dhisd.sh ${WRKSRC}/dhisd.sh
cd ${WRKSRC} && ${PERL} -i -p -e "s^__PREFIX__^${PREFIX}^g" \
- Makefile dhisd.h ${DOCFILES}
+ Makefile dhisd.h dhisd.sh ${DOCFILES}
do-install:
@@ -41,7 +42,7 @@ post-install:
@${ECHO_CMD} "@dirrm etc/dhis" >> ${TMPPLIST}
.if !exists(${PREFIX}/etc/rc.d/dhisd.sh)
@${ECHO_MSG} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."
- @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dhisd.sh ${PREFIX}/etc/rc.d/dhisd.sh
+ @${INSTALL_SCRIPT} -m 751 ${WRKSRC}/dhisd.sh ${PREFIX}/etc/rc.d/dhisd.sh
@${ECHO_CMD} "etc/rc.d/dhisd.sh" >> ${TMPPLIST}
.endif
.if !defined(NOPORTDOCS)
diff --git a/net/dhisd/Makefile b/net/dhisd/Makefile
index b3c1d9ccbc6c..953896a9e182 100644
--- a/net/dhisd/Makefile
+++ b/net/dhisd/Makefile
@@ -18,8 +18,9 @@ LIB_DEPENDS= gmp.3:${PORTSDIR}/math/libgmp
DOCFILES= CONTRIBUTORS COPYRIGHT INSTALL MODULES README
post-patch:
+ ${CP} ${FILESDIR}/dhisd.sh ${WRKSRC}/dhisd.sh
cd ${WRKSRC} && ${PERL} -i -p -e "s^__PREFIX__^${PREFIX}^g" \
- Makefile dhisd.h ${DOCFILES}
+ Makefile dhisd.h dhisd.sh ${DOCFILES}
do-install:
@@ -41,7 +42,7 @@ post-install:
@${ECHO_CMD} "@dirrm etc/dhis" >> ${TMPPLIST}
.if !exists(${PREFIX}/etc/rc.d/dhisd.sh)
@${ECHO_MSG} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."
- @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dhisd.sh ${PREFIX}/etc/rc.d/dhisd.sh
+ @${INSTALL_SCRIPT} -m 751 ${WRKSRC}/dhisd.sh ${PREFIX}/etc/rc.d/dhisd.sh
@${ECHO_CMD} "etc/rc.d/dhisd.sh" >> ${TMPPLIST}
.endif
.if !defined(NOPORTDOCS)