summaryrefslogtreecommitdiffstats
path: root/mail/qmrtg
diff options
context:
space:
mode:
Diffstat (limited to 'mail/qmrtg')
-rw-r--r--mail/qmrtg/Makefile7
-rw-r--r--mail/qmrtg/pkg-message4
-rw-r--r--mail/qmrtg/pkg-plist4
3 files changed, 8 insertions, 7 deletions
diff --git a/mail/qmrtg/Makefile b/mail/qmrtg/Makefile
index 9269e0b..a3d6f03 100644
--- a/mail/qmrtg/Makefile
+++ b/mail/qmrtg/Makefile
@@ -7,14 +7,13 @@
PORTNAME= qmrtg
PORTVERSION= 0.5.7
+PORTREVISION= 1
CATEGORIES= mail net-mgmt
MASTER_SITES= http://dev.publicshout.org/qmrtg/download/
MAINTAINER= mij@bitchx.it
COMMENT= A simple tool for monitoring and graphing qmail activity through MRTG
-BROKEN= "Creates the /nonexistent directory"
-
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 \
mrtg:${PORTSDIR}/net-mgmt/mrtg
@@ -23,7 +22,9 @@ USE_GMAKE= yes
# this is the local apache documentroot
WWWROOTDIR?= ${PREFIX}/www/data
-QMRTG_DBDIR?= ${PORT_DBDIR}/../${PORTNAME}
+QMRTG_DBDIR?= /var/db/${PORTNAME}
+
+PLIST_SUB= QMRTG_DBDIR=${QMRTG_DBDIR}
post-install:
# in_stall manpages
diff --git a/mail/qmrtg/pkg-message b/mail/qmrtg/pkg-message
index 9af0c2d..0031de2 100644
--- a/mail/qmrtg/pkg-message
+++ b/mail/qmrtg/pkg-message
@@ -11,12 +11,12 @@ a) have a look at the ${PREFIX}/www/data/cfg/mrtg.cfg" file.
you must at least set the 'WorkDir:' variable and qmail log paths
(search for '/var/log/supervise/qmail' and adapt to your system)
b) configure qmrtg.conf. Defaults are fine generally. At least copy
-${PREFIX}/qmrtg.conf.sample to "qmrtg.conf".
+${PREFIX}/etc/qmrtg.conf.sample to "qmrtg.conf".
c) make mrtg run automatically. Using cron, put that in "/etc/crontab":
*/5 * * * * root /usr/local/bin/mrtg \
/usr/local/www/data/qmrtg/cfg/mrtg.cfg 1>/dev/null 2>&1
Note: to skip qmrtg reporting your mx' whole history at the first call,
-run the following before "c)"
+run the following before point "c)"
$ qmrtgsync.sh
diff --git a/mail/qmrtg/pkg-plist b/mail/qmrtg/pkg-plist
index cebdab3..9248693 100644
--- a/mail/qmrtg/pkg-plist
+++ b/mail/qmrtg/pkg-plist
@@ -14,5 +14,5 @@ etc/qmrtg.conf.sample
%%PORTDOCS%%%%EXAMPLESDIR%%/mrtg.cfg
%%PORTDOCS%%%%EXAMPLESDIR%%/qmrtg.conf.sample
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
-@exec mkdir -p /var/db/qmrtg
-@unexec rm -rf /var/db/qmrtg
+@exec mkdir -p %%QMRTG_DBDIR%%
+@unexec rm -rf %%QMRTG_DBDIR%% 2>&1 >/dev/null || true
OpenPOWER on IntegriCloud