Bug 66562

Summary: Update Port: mail/mailgraph by maintainer
Product: Ports & Packages Reporter: Rong-En Fan <rafan>
Component: Individual Port(s)Assignee: Volker Stolz <vs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Rong-En Fan 2004-05-12 11:40:12 UTC
	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.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-05-12 12:11:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vs

Take, already spotted something fishy :)
Comment 2 Rong-En Fan 2004-05-12 12:48:48 UTC
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>
Comment 3 Volker Stolz freebsd_committer freebsd_triage 2004-05-12 12:59:09 UTC
State Changed
From-To: open->closed

Committed, thanks!