Bug 66562 - Update Port: mail/mailgraph by maintainer
Summary: Update Port: mail/mailgraph by maintainer
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Volker Stolz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-12 11:40 UTC by Rong-En Fan
Modified: 2004-05-12 12:59 UTC (History)
0 users

See Also:


Attachments
file.diff (5.50 KB, patch)
2004-05-12 11:40 UTC, Rong-En Fan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!