Modify mail/mailgraph to use rc.subr and change rrd database from ${PREFIX}/www/cgi-bin to /var/db/mailgraph. Since there is a www account in default installation, pkg-install/pkg-desinall is no long needed. Thanks Jun Kuriyama <kuriyama _at_ imgsrc _dot_ co _dot_ jp> and vanilla@ for patches.
Responsible Changed From-To: freebsd-ports-bugs->vs Take, already spotted something fishy :)
This patch will fix the problem that vs@ mentioned. diff -ruN mailgraph.old/Makefile mailgraph/Makefile --- mailgraph.old/Makefile Wed May 12 19:43:17 2004 +++ mailgraph/Makefile Wed May 12 19:42:24 2004 @@ -27,9 +27,13 @@ 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: @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/mailgraph.cgi + @${SED} 's|%%DATADIR%%|${DATADIR}|g' ${MSG_FILE} > ${PKGMESSAGE} do-install: ${MKDIR} ${PREFIX}/www/cgi-bin @@ -43,7 +47,7 @@ post-install: @${ECHO} - @${CAT} ${PKGMESSAGE} | ${SED} -e "s,%%DATADIR%%,${DATADIR}," ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} @${ECHO} .include <bsd.port.mk>
State Changed From-To: open->closed Committed, thanks!