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