784a571455
PR: 31759 Submitted by: maintainer
73 lines
2.6 KiB
Makefile
73 lines
2.6 KiB
Makefile
# New ports collection makefile for: dhisd
|
|
# Date created: Sun Feb 25 21:13:59 CET 2001
|
|
# Whom: Bas Kruit <baskruit@bsltwr.dhis.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dhisd
|
|
PORTVERSION= 5.1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://bsltwr.dhis.org/ftp/pub/dhis/ \
|
|
ftp://ftp.dhis.org/pub/dhis/
|
|
|
|
MAINTAINER= baskruit@bsltwr.dhis.org
|
|
|
|
DOCFILES= CONTRIBUTORS COPYRIGHT INSTALL MODULES README
|
|
|
|
post-patch:
|
|
cd ${WRKSRC} && ${PERL} -i -p -e "s^__PREFIX__^${PREFIX}^g" \
|
|
Makefile dhisd.h ${DOCFILES}
|
|
|
|
do-install:
|
|
|
|
post-install:
|
|
${ECHO} "===> Installing ${PREFIX}/bin/dhisd."
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dhisd ${PREFIX}/bin
|
|
@${ECHO} "bin/dhisd" >> ${TMPPLIST}
|
|
${ECHO} "===> Installing ${PREFIX}/bin/genkeys."
|
|
${INSTALL_PROGRAM} ${WRKSRC}/genkeys ${PREFIX}/bin
|
|
@${ECHO} "bin/genkeys" >> ${TMPPLIST}
|
|
${ECHO} "===> 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} "etc/dhis/dhis.db.sample" >> ${TMPPLIST}
|
|
@${INSTALL_DATA} ${WRKSRC}/services.db.sample ${PREFIX}/etc/dhis/services.db.sample
|
|
@${ECHO} "etc/dhis/services.db.sample" >> ${TMPPLIST}
|
|
@${CHMOD} 600 ${PREFIX}/etc/dhis/*
|
|
@${ECHO} "@dirrm etc/dhis" >> ${TMPPLIST}
|
|
.if !exists(${PREFIX}/etc/rc.d/dhisd.sh)
|
|
${ECHO} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."
|
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dhisd.sh ${PREFIX}/etc/rc.d/dhisd.sh
|
|
@${ECHO} "etc/rc.d/dhisd.sh" >> ${TMPPLIST}
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
${ECHO} "===> Installing documentation in ${DOCSDIR}"
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${CHMOD} 755 ${DOCSDIR}
|
|
.for DOCFILE in ${DOCFILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${DOCFILE} ${DOCSDIR}
|
|
@${ECHO} "share/doc/${PORTNAME}/${DOCFILE}" >> ${TMPPLIST}
|
|
.endfor
|
|
${INSTALL_DATA} ${FILESDIR}/INSTALL.bsd ${DOCSDIR}
|
|
@${ECHO} "share/doc/${PORTNAME}/INSTALL.bsd" >> ${TMPPLIST}
|
|
@${ECHO} "@dirrm share/doc/${PORTNAME}" >> ${TMPPLIST}
|
|
.endif
|
|
@${ECHO} "--------------------------------------------------------------------------"
|
|
@${ECHO} "Before dhisd can run, you will need configure BIND."
|
|
@${ECHO} ""
|
|
@${ECHO} "For more information, see the following site:"
|
|
@${ECHO} "http://www.dhis.org/dhis/r5/"
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO} ""
|
|
@${ECHO} "or the files in ${DOCSDIR}"
|
|
@${ECHO} "Read INSTALL and INSTALL.bsd at least for the setup information of dhisd."
|
|
.endif
|
|
@${ECHO} ""
|
|
@${ECHO} "For information on this port, check the following site:"
|
|
@${ECHO} "http://bsltwr.dhis.org/dhis/"
|
|
@${ECHO} "--------------------------------------------------------------------------"
|
|
|
|
.include <bsd.port.mk>
|