aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2004-12-04 19:13:05 +0000
committerJames E. Housley <jeh@FreeBSD.org>2004-12-04 19:13:05 +0000
commit2d6fafe95cbd0ff3c9ac62e2938a6a4e4db1af65 (patch)
treeb56351b2bab2e9d9ca82461db862dbd606654834 /mail
parent9f7ad964d19d4c9a4c6c38a9cc359254e2f87824 (diff)
downloadports-2d6fafe95cbd0ff3c9ac62e2938a6a4e4db1af65.tar.gz
ports-2d6fafe95cbd0ff3c9ac62e2938a6a4e4db1af65.zip
Notes
Diffstat (limited to 'mail')
-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 9269e0bf05fe..a3d6f032a3e5 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 9af0c2d8152a..0031de23cdfa 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 cebdab3f6c57..92486931407e 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