svn commit: r350190 - in head/mail/mailgraph: . files

Rong-En Fan rafan at FreeBSD.org
Sat Apr 5 03:40:54 UTC 2014


Author: rafan
Date: Sat Apr  5 03:40:53 2014
New Revision: 350190
URL: http://svnweb.freebsd.org/changeset/ports/350190
QAT: https://qat.redports.org/buildarchive/r350190/

Log:
  Don't package runtime rrd directory location

Modified:
  head/mail/mailgraph/Makefile
  head/mail/mailgraph/files/mailgraph.in
  head/mail/mailgraph/pkg-plist

Modified: head/mail/mailgraph/Makefile
==============================================================================
--- head/mail/mailgraph/Makefile	Sat Apr  5 01:58:10 2014	(r350189)
+++ head/mail/mailgraph/Makefile	Sat Apr  5 03:40:53 2014	(r350190)
@@ -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

Modified: head/mail/mailgraph/files/mailgraph.in
==============================================================================
--- head/mail/mailgraph/files/mailgraph.in	Sat Apr  5 01:58:10 2014	(r350189)
+++ head/mail/mailgraph/files/mailgraph.in	Sat Apr  5 03:40:53 2014	(r350190)
@@ -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

Modified: head/mail/mailgraph/pkg-plist
==============================================================================
--- head/mail/mailgraph/pkg-plist	Sat Apr  5 01:58:10 2014	(r350189)
+++ head/mail/mailgraph/pkg-plist	Sat Apr  5 03:40:53 2014	(r350190)
@@ -1,12 +1,6 @@
- at owner www
- at group www
-%%DATADIR%%
- at group
- at owner
 %%CGIDIR%%/mailgraph.cgi
 %%WWWROOT%%/mailgraph/mailgraph.css
 sbin/mailgraph.pl
- at dirrmtry %%DATADIR%%
 @dirrmtry %%CGIDIR%%
 @dirrmtry %%WWWROOT%%/mailgraph
 @dirrmtry %%WWWROOT%%


More information about the svn-ports-all mailing list