aboutsummaryrefslogtreecommitdiff
path: root/security/amavis-stats
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2005-04-20 15:12:23 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2005-04-20 15:12:23 +0000
commitdd440f1b1670aa97989f09957e79b17d1d66161e (patch)
tree198e2c2cebb5b2805ae15c8cef25d2a829fa2ebe /security/amavis-stats
parent794e1823fc99e1dcf693c65ddbecfcaa630099d5 (diff)
downloadports-dd440f1b1670aa97989f09957e79b17d1d66161e.tar.gz
ports-dd440f1b1670aa97989f09957e79b17d1d66161e.zip
Notes
Diffstat (limited to 'security/amavis-stats')
-rw-r--r--security/amavis-stats/Makefile4
-rw-r--r--security/amavis-stats/files/pkg-message.in4
2 files changed, 5 insertions, 3 deletions
diff --git a/security/amavis-stats/Makefile b/security/amavis-stats/Makefile
index b1e27e32287e..f27ce9ef7998 100644
--- a/security/amavis-stats/Makefile
+++ b/security/amavis-stats/Makefile
@@ -16,7 +16,7 @@ COMMENT= A simple AMaViS statistics generator based on rrdtool
RUN_DEPENDS= ${SITE_PERL}/mach/RRDs.pm:${PORTSDIR}/net/rrdtool
USE_PERL5_RUN= yes
-USE_PHP= yes
+USE_PHP= pcre
MAN1= amavis-stats.1
@@ -40,7 +40,7 @@ SUB_LIST+= AMAVISUSER=${AMAVISUSER} AMAVISGROUP=${AMAVISGROUP}
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
-IGNORE= "Need at least perl 5.6.1 to build"
+IGNORE= Need at least perl 5.6.1 to build
.endif
pre-install: apply-slist
diff --git a/security/amavis-stats/files/pkg-message.in b/security/amavis-stats/files/pkg-message.in
index c811b585b018..f1872470d97b 100644
--- a/security/amavis-stats/files/pkg-message.in
+++ b/security/amavis-stats/files/pkg-message.in
@@ -2,11 +2,13 @@
To view the statistics via you browser you must:
create a symlink, like:
-cd /usr/local/www/data ; ln -s amavis-stats ../amavis-stats
+cd /usr/local/www/data ; ln -s ../amavis-stats amavis-stats
or modify your Apache httpd.conf including this line:
Alias /amavis-stats %%PREFIX%%/www/amavis-stats
+You can view then the statistics in http://your-site/amavis-stats
+
To update the statistics every 5 minutes, you also
can setup cronjob for amavis-stats by putting this line to /etc/crontab
*/5 * * * * amavis %%PREFIX%%/sbin/amavis-stats /var/log/maillog 2>&1 > /dev/null