diff --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile index 7c06daa76279..7ae7831f0a8c 100644 --- a/mail/mailgraph/Makefile +++ b/mail/mailgraph/Makefile @@ -1,64 +1,65 @@ # New ports collection makefile for: mailgraph # Date created: 30 August 2002 # Whom: Gea-Suan Lin (gslin@ccca.nctu.edu.tw) # # $FreeBSD$ # PORTNAME= mailgraph -PORTVERSION= 1.13 -PORTREVISION= 1 +PORTVERSION= 1.14 CATEGORIES= mail MASTER_SITES= http://mailgraph.schweikert.ch/pub/ \ http://mailgraph.schweikert.ch/pub/old/ MAINTAINER= rafan@FreeBSD.org COMMENT= A RRDtool frontend for Postfix statistics RUN_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/databases/rrdtool \ ${SITE_PERL}/File/Tail.pm:${PORTSDIR}/devel/p5-File-Tail NO_BUILD= yes DATADIR?= /var/db/mailgraph MAILGRAPH_USER?= ${WWWOWN} MAILGRAPH_GROUP?= ${WWWGRP} USE_RC_SUBR= ${PORTNAME} SUB_LIST+= MAILGRAPH_USER=${MAILGRAPH_USER} MAILGRAPH_GROUP=${MAILGRAPH_GROUP} DOCS= README CHANGES .if !defined(NOPORTDOCS) PORTDOCS= ${DOCS} .endif pre-everything:: @${ECHO_MSG} "" @${ECHO_MSG} "You may set following options:" @${ECHO_MSG} "" @${ECHO_MSG} "DATADIR=/var/db/mailgraph Where do you put RRD databases?" @${ECHO_MSG} "MAILGRAPH_USER=www User to run mailgraph (Default: ${WWWOWN})" @${ECHO_MSG} "" post-patch: @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/mailgraph.cgi do-install: ${MKDIR} ${PREFIX}/www/cgi-bin + ${MKDIR} ${PREFIX}/www/data/mailgraph ${MKDIR} ${DATADIR} @${CHOWN} -R ${MAILGRAPH_USER}:${MAILGRAPH_GROUP} ${DATADIR} @${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl ${PREFIX}/sbin @${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${PREFIX}/www/cgi-bin + @${INSTALL_DATA} ${WRKSRC}/mailgraph.css ${PREFIX}/www/data/mailgraph .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} for f in ${DOCS}; do \ ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \ done .endif post-install: @${ECHO_MSG} "" @${CAT} ${PKGMESSAGE} @${ECHO_MSG} "" .include diff --git a/mail/mailgraph/distinfo b/mail/mailgraph/distinfo index 63920ae6d92c..ed1a6f7ee027 100644 --- a/mail/mailgraph/distinfo +++ b/mail/mailgraph/distinfo @@ -1,3 +1,3 @@ -MD5 (mailgraph-1.13.tar.gz) = b59cc2375662f6c113c6be2ab5bfa179 -SHA256 (mailgraph-1.13.tar.gz) = f08476371b59b1e2313b388e962e6ff968432d4b66520c11e8b05ff7e968c6c8 -SIZE (mailgraph-1.13.tar.gz) = 21322 +MD5 (mailgraph-1.14.tar.gz) = 0f0ae91968ea7ae0c1d14985c560530b +SHA256 (mailgraph-1.14.tar.gz) = 50ea6ea8a33f5015926edd8b70a4d954ac27df4863514bddc5e69c948a7aac81 +SIZE (mailgraph-1.14.tar.gz) = 22014 diff --git a/mail/mailgraph/files/patch-mailgraph.cgi b/mail/mailgraph/files/patch-mailgraph.cgi index acf4a78d3c7d..dd55a0b4694c 100644 --- a/mail/mailgraph/files/patch-mailgraph.cgi +++ b/mail/mailgraph/files/patch-mailgraph.cgi @@ -1,13 +1,22 @@ ---- mailgraph.cgi.orig Sun Jul 11 23:57:06 2004 -+++ mailgraph.cgi Tue Jul 13 23:13:48 2004 -@@ -15,8 +15,8 @@ +--- mailgraph.cgi.orig Wed Aug 29 17:06:01 2007 ++++ mailgraph.cgi Thu Sep 6 22:46:09 2007 +@@ -16,8 +16,8 @@ my $points_per_sample = 3; my $ypoints = 160; my $ypoints_err = 96; -my $rrd = 'mailgraph.rrd'; # path to where the RRD database is -my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD database is +my $rrd = '%%DATADIR%%/mailgraph.rrd'; # path to where the RRD database is +my $rrd_virus = '%%DATADIR%%/mailgraph_virus.rrd'; # path to where the Virus RRD database is my $tmp_dir = '/tmp/mailgraph'; # temporary directory where to store the images my @graphs = ( +@@ -163,7 +163,7 @@ + Mail statistics for $host + + +- ++ + + + HEADER diff --git a/mail/mailgraph/pkg-plist b/mail/mailgraph/pkg-plist index 7552a8b60cd2..092dfe26b9c2 100644 --- a/mail/mailgraph/pkg-plist +++ b/mail/mailgraph/pkg-plist @@ -1,3 +1,6 @@ www/cgi-bin/mailgraph.cgi +www/data/mailgraph/mailgraph.css sbin/mailgraph.pl @dirrmtry www/cgi-bin +@dirrmtry www/data/mailgraph +@dirrmtry www/data