aboutsummaryrefslogtreecommitdiff
path: root/mail/mailgraph
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2014-04-05 03:40:53 +0000
committerRong-En Fan <rafan@FreeBSD.org>2014-04-05 03:40:53 +0000
commitae99283bbbe263c03148d3daa21cb83c829e7422 (patch)
treec3a51929863ae0589e79afed48cb6a9a7f2f0742 /mail/mailgraph
parentff460be0a4efc4b1163455957d3bfbabc782ee00 (diff)
downloadports-ae99283bbbe263c03148d3daa21cb83c829e7422.tar.gz
ports-ae99283bbbe263c03148d3daa21cb83c829e7422.zip
Don't package runtime rrd directory location
Notes
Notes: svn path=/head/; revision=350190
Diffstat (limited to 'mail/mailgraph')
-rw-r--r--mail/mailgraph/Makefile3
-rw-r--r--mail/mailgraph/files/mailgraph.in7
-rw-r--r--mail/mailgraph/pkg-plist6
3 files changed, 8 insertions, 8 deletions
diff --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile
index ae40c6bc5e4e..15110f3b1ffd 100644
--- a/mail/mailgraph/Makefile
+++ b/mail/mailgraph/Makefile
@@ -3,7 +3,7 @@
PORTNAME= mailgraph
PORTVERSION= 1.14
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= mail
MASTER_SITES= http://mailgraph.schweikert.ch/pub/ \
http://mailgraph.schweikert.ch/pub/old/
@@ -48,7 +48,6 @@ post-patch:
do-install:
${MKDIR} ${STAGEDIR}${CGIDIR}
${MKDIR} ${STAGEDIR}${WWWROOT}/mailgraph
- ${MKDIR} ${STAGEDIR}${DATADIR}
@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl ${STAGEDIR}${PREFIX}/sbin
@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${STAGEDIR}${CGIDIR}
@${INSTALL_DATA} ${WRKSRC}/mailgraph.css ${STAGEDIR}${WWWROOT}/mailgraph
diff --git a/mail/mailgraph/files/mailgraph.in b/mail/mailgraph/files/mailgraph.in
index 64940970bd7b..8cb429e09b33 100644
--- a/mail/mailgraph/files/mailgraph.in
+++ b/mail/mailgraph/files/mailgraph.in
@@ -18,8 +18,15 @@ rcvar=mailgraph_enable
command=%%PREFIX%%/sbin/${name}.pl
command_args='> /dev/null 2>&1'
command_interpreter=/usr/bin/perl
+start_precmd=start_precmd
stop_postcmd=stop_postcmd
+start_precmd()
+{
+ mkdir -p "%%DATADIR%%"
+ chown "%%MAILGRAPH_USER%%" "%%DATADIR%%"
+}
+
stop_postcmd()
{
rm -f $pidfile
diff --git a/mail/mailgraph/pkg-plist b/mail/mailgraph/pkg-plist
index cbb4a78f22e6..f515cf96eb71 100644
--- a/mail/mailgraph/pkg-plist
+++ b/mail/mailgraph/pkg-plist
@@ -1,12 +1,6 @@
-@owner www
-@group www
-%%DATADIR%%
-@group
-@owner
%%CGIDIR%%/mailgraph.cgi
%%WWWROOT%%/mailgraph/mailgraph.css
sbin/mailgraph.pl
-@dirrmtry %%DATADIR%%
@dirrmtry %%CGIDIR%%
@dirrmtry %%WWWROOT%%/mailgraph
@dirrmtry %%WWWROOT%%