diff options
author | jeh <jeh@FreeBSD.org> | 2004-12-05 03:13:05 +0800 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2004-12-05 03:13:05 +0800 |
commit | fd4713e6fe990857f1ab99b096e64263c1191cb7 (patch) | |
tree | 20c8437fd01bf99c66439ff48afced0319493ca1 /mail | |
parent | 9a89929a8d73fba9c41bfab68d8c2364f61b2868 (diff) | |
download | freebsd-ports-gnome-fd4713e6fe990857f1ab99b096e64263c1191cb7.tar.gz freebsd-ports-gnome-fd4713e6fe990857f1ab99b096e64263c1191cb7.tar.zst freebsd-ports-gnome-fd4713e6fe990857f1ab99b096e64263c1191cb7.zip |
fixes mail/qmrtg (BROKEN) problem while making package
PR: 74649
Submitted by: MAINTAINER
Diffstat (limited to 'mail')
-rw-r--r-- | mail/qmrtg/Makefile | 7 | ||||
-rw-r--r-- | mail/qmrtg/pkg-message | 4 | ||||
-rw-r--r-- | mail/qmrtg/pkg-plist | 4 |
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 |