View | Details | Raw Unified | Return to bug 74649
Collapse All | Expand All

(-)qmrtg/Makefile (-3 / +4 lines)
Lines 7-20 Link Here
7
7
8
PORTNAME=	qmrtg
8
PORTNAME=	qmrtg
9
PORTVERSION=	0.5.7
9
PORTVERSION=	0.5.7
10
PORTREVISION=	1
10
CATEGORIES=	mail net-mgmt
11
CATEGORIES=	mail net-mgmt
11
MASTER_SITES=	http://dev.publicshout.org/qmrtg/download/
12
MASTER_SITES=	http://dev.publicshout.org/qmrtg/download/
12
13
13
MAINTAINER=	mij@bitchx.it
14
MAINTAINER=	mij@bitchx.it
14
COMMENT=	A simple tool for monitoring and graphing qmail activity through MRTG
15
COMMENT=	A simple tool for monitoring and graphing qmail activity through MRTG
15
16
16
BROKEN=		"Creates the /nonexistent directory"
17
18
RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash2     \
17
RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash2     \
19
		mrtg:${PORTSDIR}/net-mgmt/mrtg
18
		mrtg:${PORTSDIR}/net-mgmt/mrtg
20
19
Lines 23-29 Link Here
23
22
24
# this is the local apache documentroot
23
# this is the local apache documentroot
25
WWWROOTDIR?=	${PREFIX}/www/data
24
WWWROOTDIR?=	${PREFIX}/www/data
26
QMRTG_DBDIR?=	${PORT_DBDIR}/../${PORTNAME}
25
QMRTG_DBDIR?=	/var/db/${PORTNAME}
26
27
PLIST_SUB=	QMRTG_DBDIR=${QMRTG_DBDIR}
27
28
28
post-install:
29
post-install:
29
# in_stall manpages
30
# in_stall manpages
(-)qmrtg/pkg-message (-2 / +2 lines)
Lines 11-22 Link Here
11
you must at least set the 'WorkDir:' variable and qmail log paths
11
you must at least set the 'WorkDir:' variable and qmail log paths
12
(search for '/var/log/supervise/qmail' and adapt to your system)
12
(search for '/var/log/supervise/qmail' and adapt to your system)
13
b) configure qmrtg.conf. Defaults are fine generally. At least copy
13
b) configure qmrtg.conf. Defaults are fine generally. At least copy
14
${PREFIX}/qmrtg.conf.sample to "qmrtg.conf".
14
${PREFIX}/etc/qmrtg.conf.sample to "qmrtg.conf".
15
c) make mrtg run automatically. Using cron, put that in "/etc/crontab": 
15
c) make mrtg run automatically. Using cron, put that in "/etc/crontab": 
16
16
17
*/5 * * * *   root /usr/local/bin/mrtg \
17
*/5 * * * *   root /usr/local/bin/mrtg \
18
         /usr/local/www/data/qmrtg/cfg/mrtg.cfg 1>/dev/null 2>&1
18
         /usr/local/www/data/qmrtg/cfg/mrtg.cfg 1>/dev/null 2>&1
19
19
20
Note: to skip qmrtg reporting your mx' whole history at the first call,
20
Note: to skip qmrtg reporting your mx' whole history at the first call,
21
run the following before "c)"
21
run the following before point "c)"
22
$ qmrtgsync.sh
22
$ qmrtgsync.sh
(-)qmrtg/pkg-plist (-2 / +2 lines)
Lines 14-18 Link Here
14
%%PORTDOCS%%%%EXAMPLESDIR%%/mrtg.cfg
14
%%PORTDOCS%%%%EXAMPLESDIR%%/mrtg.cfg
15
%%PORTDOCS%%%%EXAMPLESDIR%%/qmrtg.conf.sample
15
%%PORTDOCS%%%%EXAMPLESDIR%%/qmrtg.conf.sample
16
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
16
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
17
@exec mkdir -p /var/db/qmrtg
17
@exec mkdir -p %%QMRTG_DBDIR%%
18
@unexec rm -rf /var/db/qmrtg
18
@unexec rm -rf %%QMRTG_DBDIR%% 2>&1 >/dev/null || true

Return to bug 74649