diff options
author | rafan <rafan@FreeBSD.org> | 2014-04-05 11:40:53 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2014-04-05 11:40:53 +0800 |
commit | 74aecc289a6f9f05b6fbc7587d19c8868c25f38c (patch) | |
tree | c3a51929863ae0589e79afed48cb6a9a7f2f0742 /mail/mailgraph | |
parent | e06c71ea666d283291bcb7b0d8203baf950972e4 (diff) | |
download | freebsd-ports-gnome-74aecc289a6f9f05b6fbc7587d19c8868c25f38c.tar.gz freebsd-ports-gnome-74aecc289a6f9f05b6fbc7587d19c8868c25f38c.tar.zst freebsd-ports-gnome-74aecc289a6f9f05b6fbc7587d19c8868c25f38c.zip |
Don't package runtime rrd directory location
Diffstat (limited to 'mail/mailgraph')
-rw-r--r-- | mail/mailgraph/Makefile | 3 | ||||
-rw-r--r-- | mail/mailgraph/files/mailgraph.in | 7 | ||||
-rw-r--r-- | mail/mailgraph/pkg-plist | 6 |
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%% |