aboutsummaryrefslogtreecommitdiff
path: root/mail/mailgraph
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-09-06 14:53:14 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-09-06 14:53:14 +0000
commit1a03bc8ef23de132ae3fcc3d177542274c27dad2 (patch)
treebad85f98989a81f9482367d487d74ef43823347a /mail/mailgraph
parentbff3114c54422430f71abe9df8c375968bf6d610 (diff)
downloadports-1a03bc8ef23de132ae3fcc3d177542274c27dad2.tar.gz
ports-1a03bc8ef23de132ae3fcc3d177542274c27dad2.zip
- Update to 1.14
- Install the new born css file into ${PREFIX}/www/mailgraph/. This is the best solution, which requires minimal efforts after installation. [1] Discussed on: freebsd-ports@ [1]
Notes
Notes: svn path=/head/; revision=198920
Diffstat (limited to 'mail/mailgraph')
-rw-r--r--mail/mailgraph/Makefile5
-rw-r--r--mail/mailgraph/distinfo6
-rw-r--r--mail/mailgraph/files/patch-mailgraph.cgi15
-rw-r--r--mail/mailgraph/pkg-plist3
4 files changed, 21 insertions, 8 deletions
diff --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile
index 7c06daa76279..7ae7831f0a8c 100644
--- a/mail/mailgraph/Makefile
+++ b/mail/mailgraph/Makefile
@@ -6,8 +6,7 @@
#
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/
@@ -45,10 +44,12 @@ post-patch:
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 \
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,6 +1,6 @@
---- 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;
@@ -11,3 +11,12 @@
my $tmp_dir = '/tmp/mailgraph'; # temporary directory where to store the images
my @graphs = (
+@@ -163,7 +163,7 @@
+ <title>Mail statistics for $host</title>
+ <meta http-equiv="Refresh" content="300" />
+ <meta http-equiv="Pragma" content="no-cache" />
+-<link rel="stylesheet" href="mailgraph.css" type="text/css" />
++<link rel="stylesheet" href="/mailgraph/mailgraph.css" type="text/css" />
+ </head>
+ <body>
+ 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