diff options
author | Volker Stolz <vs@FreeBSD.org> | 2004-05-12 11:59:07 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2004-05-12 11:59:07 +0000 |
commit | cad3d8096f76e1f2af8e3451490824d1afe07fa1 (patch) | |
tree | 9ca206135608b3c6837e35f6252feb7d4f83e308 /mail/mailgraph/Makefile | |
parent | 889587624108f7fb13912219b5bf082cc87aab94 (diff) | |
download | ports-cad3d8096f76e1f2af8e3451490824d1afe07fa1.tar.gz ports-cad3d8096f76e1f2af8e3451490824d1afe07fa1.zip |
Notes
Diffstat (limited to 'mail/mailgraph/Makefile')
-rw-r--r-- | mail/mailgraph/Makefile | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile index cffa3eb278eb..17f2415414a4 100644 --- a/mail/mailgraph/Makefile +++ b/mail/mailgraph/Makefile @@ -7,6 +7,7 @@ PORTNAME= mailgraph PORTVERSION= 1.8 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://people.ee.ethz.ch/~dws/software/mailgraph/pub/ \ http://people.ee.ethz.ch/~dws/software/mailgraph/pub/old/ @@ -19,19 +20,29 @@ RUN_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/net/rrdtool \ NO_BUILD= yes -STARTUP_SCRIPT= mailgraph.sh.sample +DATADIR= /var/db/mailgraph + +USE_REINPLACE= yes +USE_RC_SUBR= yes +RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} DATADIR=${DATADIR} +STARTUP_FILE= ${PREFIX}/etc/rc.d/mailgraph.sh + +MSG_FILE= ${PKGDIR}/pkg-message +PKGMESSAGE= ${WRKSRC}/pkg-message post-patch: - @${SED} -e "s,%%PREFIX%%,${PREFIX}," ${FILESDIR}/mailgraph.sh > ${WRKSRC}/${STARTUP_SCRIPT} + @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/mailgraph.cgi + @${SED} 's|%%DATADIR%%|${DATADIR}|g' ${MSG_FILE} > ${PKGMESSAGE} do-install: ${MKDIR} ${PREFIX}/www/cgi-bin -.for FILE in mailgraph.cgi mailgraph.pl - @${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/www/cgi-bin/ -.endfor - @${INSTALL_SCRIPT} ${WRKSRC}/${STARTUP_SCRIPT} ${PREFIX}/etc/rc.d/ - @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} - @${CHOWN} www:www ${PREFIX}/www/cgi-bin/ + ${MKDIR} ${DATADIR} + @${CHOWN} www:www ${DATADIR} + @${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl ${PREFIX}/sbin + @${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${PREFIX}/www/cgi-bin + @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${FILESDIR}/mailgraph.sh.tmpl > ${STARTUP_FILE} + @${CHMOD} 755 ${STARTUP_FILE} post-install: @${ECHO} |