aboutsummaryrefslogtreecommitdiff
path: root/dns/dhisd
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2014-07-12 06:03:22 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2014-07-12 06:03:22 +0000
commit10b270ef5f34dd671d25c204d3ee60ce78c2918f (patch)
tree3d3a5862faecbaa88c601173ea0d99998956b334 /dns/dhisd
parent493f5c9c0b2bcfc8b58c46719e11c9823ba9ed98 (diff)
downloadports-10b270ef5f34dd671d25c204d3ee60ce78c2918f.tar.gz
ports-10b270ef5f34dd671d25c204d3ee60ce78c2918f.zip
Notes
Diffstat (limited to 'dns/dhisd')
-rw-r--r--dns/dhisd/Makefile49
1 files changed, 23 insertions, 26 deletions
diff --git a/dns/dhisd/Makefile b/dns/dhisd/Makefile
index 92becfb16735..78bf7648cd90 100644
--- a/dns/dhisd/Makefile
+++ b/dns/dhisd/Makefile
@@ -10,56 +10,53 @@ MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/
MAINTAINER= ports@FreeBSD.org
COMMENT= DHIS server for dynamic updates on the server using specific engines
+LICENSE= BSD2CLAUSE
+
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
CFLAGS+= -I${PREFIX}/include
LDFLAGS+= -L${PREFIX}/lib
-DOCFILES= CONTRIBUTORS COPYRIGHT INSTALL MODULES README
+PORTDOCS= CONTRIBUTORS COPYRIGHT INSTALL MODULES README
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
-
.include <bsd.port.options.mk>
post-patch:
${CP} ${FILESDIR}/dhisd.sh ${WRKSRC}/dhisd.sh
cd ${WRKSRC} && ${REINPLACE_CMD} -e "s^__PREFIX__^${PREFIX}^g" \
- Makefile dhisd.h dhisd.sh ${DOCFILES}
+ Makefile dhisd.h dhisd.sh ${PORTDOCS}
do-install:
post-install:
- @${ECHO_MSG} "===> Installing ${PREFIX}/sbin/dhisd."
- @${INSTALL_PROGRAM} ${WRKSRC}/dhisd ${PREFIX}/sbin
+ @${ECHO_MSG} "===> Installing ${STAGEDIR}${PREFIX}/sbin/dhisd."
+ @${INSTALL_PROGRAM} ${WRKSRC}/dhisd ${STAGEDIR}${PREFIX}/sbin
@${ECHO_CMD} "sbin/dhisd" >> ${TMPPLIST}
- @${ECHO_MSG} "===> Installing ${PREFIX}/sbin/sgenkeys."
- @${INSTALL_PROGRAM} ${WRKSRC}/genkeys ${PREFIX}/sbin
+ @${ECHO_MSG} "===> Installing ${STAGEDIR}${PREFIX}/sbin/sgenkeys."
+ @${INSTALL_PROGRAM} ${WRKSRC}/genkeys ${STAGEDIR}${PREFIX}/sbin
@${ECHO_CMD} "sbin/genkeys" >> ${TMPPLIST}
- @${ECHO_MSG} "===> Creating ${PREFIX}/etc/dhis and installing sample db files."
- @${MKDIR} ${PREFIX}/etc/dhis
- @${CHMOD} 700 ${PREFIX}/etc/dhis
- @${INSTALL_DATA} ${WRKSRC}/dhis.db.sample ${PREFIX}/etc/dhis/dhis.db.sample
+ @${ECHO_MSG} "===> Creating ${STAGEDIR}${PREFIX}/etc/dhis and installing sample db."
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/dhis
+ @${CHMOD} 700 ${STAGEDIR}${PREFIX}/etc/dhis
+ @${INSTALL_DATA} ${WRKSRC}/dhis.db.sample ${STAGEDIR}${PREFIX}/etc/dhis/dhis.db.sample
@${ECHO_CMD} "etc/dhis/dhis.db.sample" >> ${TMPPLIST}
- @${INSTALL_DATA} ${WRKSRC}/services.db.sample ${PREFIX}/etc/dhis/services.db.sample
+ @${INSTALL_DATA} ${WRKSRC}/services.db.sample ${STAGEDIR}${PREFIX}/etc/dhis/services.db.sample
@${ECHO_CMD} "etc/dhis/services.db.sample" >> ${TMPPLIST}
- @${CHMOD} 600 ${PREFIX}/etc/dhis/*
+ @${CHMOD} 600 ${STAGEDIR}${PREFIX}/etc/dhis/*
@${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 ${WRKSRC}/dhisd.sh ${PREFIX}/etc/rc.d/dhisd.sh
+.if !exists(${STAGEDIR}${PREFIX}/etc/rc.d/dhisd.sh)
+ @${ECHO_MSG} "===> Installing ${STAGEDIR}${PREFIX}/etc/rc.d/dhid.sh startup file."
+ @${INSTALL_SCRIPT} -m 751 ${WRKSRC}/dhisd.sh ${STAGEDIR}${PREFIX}/etc/rc.d/dhisd.sh
@${ECHO_CMD} "etc/rc.d/dhisd.sh" >> ${TMPPLIST}
.endif
.if ${PORT_OPTIONS:MDOCS}
- @${ECHO_MSG} "===> Installing documentation in ${DOCSDIR}"
- @${MKDIR} ${DOCSDIR}
- @${CHMOD} 755 ${DOCSDIR}
-.for DOCFILE in ${DOCFILES}
- @${INSTALL_DATA} ${WRKSRC}/${DOCFILE} ${DOCSDIR}
- @${ECHO_CMD} "share/doc/${PORTNAME}/${DOCFILE}" >> ${TMPPLIST}
-.endfor
- @${INSTALL_DATA} ${FILESDIR}/INSTALL.bsd ${DOCSDIR}
+ @${ECHO_MSG} "===> Installing documentation in ${STAGEDIR}${DOCSDIR}"
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${CHMOD} 755 ${STAGEDIR}${DOCSDIR}
+ @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+ @${INSTALL_DATA} ${FILESDIR}/INSTALL.bsd ${STAGEDIR}${DOCSDIR}
@${ECHO_CMD} "share/doc/${PORTNAME}/INSTALL.bsd" >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm share/doc/${PORTNAME}" >> ${TMPPLIST}
.endif
@@ -70,7 +67,7 @@ post-install:
@${ECHO} "http://www.dhis.org/dhis/r5/"
.if ${PORT_OPTIONS:MDOCS}
@${ECHO} ""
- @${ECHO} "or the files in ${DOCSDIR}"
+ @${ECHO} "or the documents in ${STAGEDIR}${DOCSDIR}"
@${ECHO} "Read INSTALL and INSTALL.bsd at least for the setup information of dhisd."
.endif
@${ECHO} "--------------------------------------------------------------------------"