mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Add qmrtg 0.5.6, a simple tool for monitoring and graphing qmail
activity through MRTG. PR: ports/67887 Submitted by: Mij <mij @ dev.publicshout.org>
This commit is contained in:
parent
0c0041370a
commit
2ca21b1d11
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=112463
@ -341,6 +341,7 @@
|
||||
SUBDIR += qmailadmin-devel
|
||||
SUBDIR += qmailanalog
|
||||
SUBDIR += qmailmrtg7
|
||||
SUBDIR += qmrtg
|
||||
SUBDIR += qpopper
|
||||
SUBDIR += qscan
|
||||
SUBDIR += qsf
|
||||
|
50
mail/qmrtg/Makefile
Normal file
50
mail/qmrtg/Makefile
Normal file
@ -0,0 +1,50 @@
|
||||
# New ports collection makefile for: qmrtg
|
||||
# Date created: 12 Jun 2004
|
||||
# Whom: Mij
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= qmrtg
|
||||
PORTVERSION= 0.5.6
|
||||
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
|
||||
|
||||
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 \
|
||||
mrtg:${PORTSDIR}/net-mgmt/mrtg
|
||||
|
||||
MAN1= qmrtg.1
|
||||
USE_GMAKE= yes
|
||||
|
||||
# this is the local apache documentroot
|
||||
WWWROOTDIR?= ${PREFIX}/www/data
|
||||
QMRTG_DBDIR?= ${PORT_DBDIR}/../${PORTNAME}
|
||||
|
||||
post-install:
|
||||
# in_stall manpages
|
||||
@${MKDIR} ${PREFIX}/man/man1
|
||||
.for foo in ${MAN1}
|
||||
${INSTALL_MAN} ${WRKSRC}/man/${foo} ${PREFIX}/man/man1
|
||||
.endfor
|
||||
.if !defined(WITHOUT_EXAMPLES)
|
||||
# in_stall conig file examples
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
${CP} ${WRKSRC}/examples/* ${EXAMPLESDIR}/
|
||||
.endif
|
||||
.if !defined(WITHOUT_HTMLTEMPLATES)
|
||||
# in_stall html templates for mrtg graphs
|
||||
${MKDIR} ${WWWROOTDIR}/${PORTNAME}
|
||||
${CP} ${WRKSRC}/html/* ${WWWROOTDIR}/${PORTNAME}/
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
# in_stall the few (FAQ, LICENSE etc) files provided by the package
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${CP} ${WRKSRC}/doc/* ${DOCSDIR}/
|
||||
.endif
|
||||
${MKDIR} ${QMRTG_DBDIR}
|
||||
@${CAT} pkg-message
|
||||
|
||||
.include <bsd.port.mk>
|
2
mail/qmrtg/distinfo
Normal file
2
mail/qmrtg/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (qmrtg-0.5.6.tar.gz) = 545eb47280421a2b591ec66a1a7de5d5
|
||||
SIZE (qmrtg-0.5.6.tar.gz) = 20858
|
8
mail/qmrtg/files/patch-qmrtg.sh
Normal file
8
mail/qmrtg/files/patch-qmrtg.sh
Normal file
@ -0,0 +1,8 @@
|
||||
--- script/qmrtg.sh Sat May 29 20:13:35 2004
|
||||
+++ script/qmrtg.sh Sat May 29 20:13:43 2004
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/usr/local/bin/bash
|
||||
|
||||
CONFFILE=/usr/local/etc/qmrtg.conf
|
||||
QMRTG_DBPATH=/tmp/qmrtg
|
8
mail/qmrtg/files/patch-qmrtgsync.sh
Normal file
8
mail/qmrtg/files/patch-qmrtgsync.sh
Normal file
@ -0,0 +1,8 @@
|
||||
--- script/qmrtgsync.sh Sat Jun 12 02:31:41 2004
|
||||
+++ script/qmrtgsync.sh Sat Jun 12 02:32:03 2004
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/usr/local/bin/bash
|
||||
|
||||
CONFFILE=/usr/local/etc/qmrtg.conf
|
||||
QMRTG_DBPATH=/tmp/qmrtg
|
16
mail/qmrtg/pkg-descr
Normal file
16
mail/qmrtg/pkg-descr
Normal file
@ -0,0 +1,16 @@
|
||||
Qmrtg is a free tool to help monitoring the activity of a qmail mailserver.
|
||||
It's intended to be used with MRTG.
|
||||
|
||||
Qmrtg is modular. Each module carries out a different log analysis.
|
||||
A super-module lets the user easily request any analysis without to
|
||||
know anything about the modules themselves.
|
||||
Qmrtg has been originally written for qmail, but most of its modules
|
||||
work with every software logging with multilog (see 'daemontools').
|
||||
|
||||
Qmrtg is an alternative to qmailmrtg7.
|
||||
|
||||
|
||||
WWW: http://dev.publicshout.org/qmrtg/
|
||||
|
||||
- Mij
|
||||
mij@bitchx.it
|
22
mail/qmrtg/pkg-message
Normal file
22
mail/qmrtg/pkg-message
Normal file
@ -0,0 +1,22 @@
|
||||
================================================================
|
||||
QMRTG has been installed.
|
||||
|
||||
1) A "qmrtg/" directory has been added to ${PREFIX}/www/data
|
||||
If you don't care publishing qmrtg's reports, just run a polite
|
||||
$ rm -rf ${WWWROOTDIR}/qmrtg
|
||||
Also remind to remove it if you definitively uninstall qmrtg.
|
||||
|
||||
2) to enable qmrtg monitoring:
|
||||
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".
|
||||
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)"
|
||||
$ qmrtgsync.sh
|
18
mail/qmrtg/pkg-plist
Normal file
18
mail/qmrtg/pkg-plist
Normal file
@ -0,0 +1,18 @@
|
||||
bin/qmrtg-bytes
|
||||
bin/qmrtg-concurrency
|
||||
bin/qmrtg-deliveries
|
||||
bin/qmrtg-errors
|
||||
bin/qmrtg-queue
|
||||
bin/qmrtg-smtpop
|
||||
bin/qmrtg.sh
|
||||
bin/qmrtgsync.sh
|
||||
etc/qmrtg.conf.sample
|
||||
%%PORTDOCS%%%%DOCSDIR%%/FAQ.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.txt
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/mrtg.cfg
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/qmrtg.conf.sample
|
||||
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
|
||||
@exec mkdir -p /var/db/qmrtg
|
||||
@unexec rm -rf /var/db/qmrtg
|
Loading…
Reference in New Issue
Block a user