Don't package runtime rrd directory location

This commit is contained in:
Rong-En Fan 2014-04-05 03:40:53 +00:00
parent ff460be0a4
commit ae99283bbb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350190
3 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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%%