- Update to 2.1

Changelog includes:
- completely new analyzers, more fast, powerful and reusable
- capability to monitor DNSBL (rbl)
- way easier extensibility
- vastly improved documentation

PR:		ports/87212
Submitted by:	maintainer
This commit is contained in:
Renato Botelho 2005-10-13 12:16:19 +00:00
parent 1f6d334130
commit 100b51c6be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145255
7 changed files with 111 additions and 84 deletions

View file

@ -6,48 +6,84 @@
# #
PORTNAME= qmrtg PORTNAME= qmrtg
PORTVERSION= 0.5.7 PORTVERSION= 2.1
PORTREVISION= 1
CATEGORIES= mail net-mgmt CATEGORIES= mail net-mgmt
MASTER_SITES= http://dev.publicshout.org/qmrtg/download/ MASTER_SITES= http://dev.publicshout.org/qmrtg/download/
MAINTAINER= mij@bitchx.it MAINTAINER= mij@bitchx.it
COMMENT= A simple tool for monitoring and graphing qmail activity through MRTG COMMENT= A simple tool for monitoring and graphing qmail activity through MRTG
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 \ RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
mrtg:${PORTSDIR}/net-mgmt/mrtg .if !defined(WITHOUT_MRTG)
RUN_DEPENDS+= mrtg:${PORTSDIR}/net-mgmt/mrtg
.endif
MAN1= qmrtg.1 USE_BZIP2= yes
USE_GMAKE= yes
# this is the local apache documentroot MAN8= qfilt.8 qmrtg-concurrency.8 qmrtg-dnsbl.8 \
WWWROOTDIR?= ${PREFIX}/www/data qmrtg-queue.8 qmrtg-regex.8 qmrtg-throughput.8 \
QMRTG_DBDIR?= /var/db/${PORTNAME} qmrtg.8 qtaif.8
MANCOMPRESSED= no
GNU_CONFIGURE= yes
# where is qmrtg' database directory
QMRTG_DBDIR:= /var/db/${PORTNAME}
# variables to be "exported" to plist
PLIST_SUB= QMRTG_DBDIR=${QMRTG_DBDIR} PLIST_SUB= QMRTG_DBDIR=${QMRTG_DBDIR}
post-install: .if !defined(PACKAGE_BUILDING) && !defined(BATCH)
# in_stall manpages # interactive --> ask user for options
@${MKDIR} ${PREFIX}/man/man1 IS_INTERACTIVE= yes
.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) .if !defined(NOPORTDOCS)
# in_stall the few (FAQ, LICENSE etc) files provided by the package # install extra doc by default
${MKDIR} ${DOCSDIR} OPTIONS= \
${CP} ${WRKSRC}/doc/* ${DOCSDIR}/ DOCS "Install LICENSE, FAQs etc (shared doc)" On \
.endif HTMLTEMPLATES "Install QMRTG HTML templates" On
${MKDIR} ${QMRTG_DBDIR} .else # defined(NOPORTDOCS)
@${CAT} pkg-message # avoid to offer to install doc
OPTIONS= \
HTMLTEMPLATES "Install QMRTG HTML templates" On
.endif # !defined(NOPORTDOCS)
.else # defined(PACKAGE_BUILDING) || defined(BATCH)
# building batch
# setting defaults
WITH_HTMLTEMPLATES= yes
.if !defined(NOPORTDOCS)
# also install doc by default
WITH_DOCS= yes
.endif # !defined(NOPORTDOCS)
.endif # !defined(PACKAGE_BUILDING)
.include <bsd.port.mk> .include <bsd.port.pre.mk>
pre-extract:
@${ECHO_MSG} " ---> Qmrtg can be installed without MRTG by defining WITHOUT_MRTG"
post-install:
# possibly installing docs
.if defined(WITH_DOCS) && !defined(NOPORTDOCS)
@${ECHO_MSG} " ---> Installing QMRTG extra docs as requested [ ${DOCSDIR} ]"
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DOCSDIR}
.endif
# possibly installing HTML templates
.if defined(WITH_HTMLTEMPLATES)
@${ECHO_MSG} " ---> Installing examples as requested [ ${EXAMPLESDIR} ]"
${MKDIR} ${DATADIR}/html
${INSTALL_DATA} ${WRKSRC}/html/* ${DATADIR}/html
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/mrtg.cfg ${EXAMPLESDIR}
.endif
# creating db directory
@${ECHO_MSG} " ---> Creating QMRTG db directory [ ${QMRTG_DBDIR} ]"
${MKDIR} ${QMRTG_DBDIR}
# installing configuration example
@${ECHO_MSG} " ---> Installing configuration example [ ${PREFIX}/etc/qmrtg.conf.dist ]"
${MKDIR} ${PREFIX}/etc
${CP} ${WRKSRC}/examples/qmrtg.conf.sample ${PREFIX}/etc/qmrtg.conf.dist
# displaying the port install msg
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View file

@ -1,2 +1,2 @@
MD5 (qmrtg-0.5.7.tar.gz) = 9b200fc036c27eee899a64409a83c538 MD5 (qmrtg-2.1.tar.bz2) = b95176b94e749eb25d00f8ff57c5e22f
SIZE (qmrtg-0.5.7.tar.gz) = 21360 SIZE (qmrtg-2.1.tar.bz2) = 68697

View file

@ -1,8 +0,0 @@
--- 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

View file

@ -1,8 +0,0 @@
--- 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

View file

@ -1,13 +1,14 @@
Qmrtg is a free tool to help monitoring the activity of a qmail mailserver. Qmrtg is a free tool to help monitoring the activity of processes.
It's intended to be used with MRTG. It's intended to be used with MRTG.
Qmrtg is modular. Each module carries out a different log analysis. Qmrtg is modular. Each module carries out a different log analysis.
A super-module lets the user easily request any analysis without to A super-module lets the user easily request any analysis without to
know anything about the modules themselves. know anything about the modules themselves.
Qmrtg has been originally written for qmail, but most of its modules Qmrtg has been originally written for monitoring qmail servers, but
work with every software logging with multilog (see 'daemontools'). its modules are general enough to parse any kind of log file passed
through multilog (see daemontools).
Qmrtg is an alternative to qmailmrtg7. Qmrtg is a modern alternative to qmailmrtg7.
WWW: http://dev.publicshout.org/qmrtg/ WWW: http://dev.publicshout.org/qmrtg/

View file

@ -1,22 +1,19 @@
================================================================ ==============================================================================
QMRTG has been installed. QMRTG has been installed.
Generation 2 is no longer compatible with older releases (< 2.0) !!!
1) A "qmrtg/" directory has been added to ${PREFIX}/www/data There's still some steps you may need to do manually:
If you don't care publishing qmrtg's reports, just run a polite 1) QMRTG SETUP. If you're coming from older versions, re-adjust the
$ rm -rf ${WWWROOTDIR}/qmrtg configuration file (start from the .dist one)
Also remind to remove it if you definitively uninstall qmrtg. 2) WWW SETUP. HTML templates are now installed as shared data
[ share/qmrtg ]. Copying them in some http-reachable dir is your
job by now. This is cleaner and less intrusive.
3) MRTG SETUP. Possibly adjust the mrtg.cfg example provided in examples.
You may need to set the path of qmail' queue if non-standard.
4) RUN. The file RUNNING.txt in the shared doc dir tells you how
2) to enable qmrtg monitoring: You can sign a usersbook at http://dev.publicshout.org/qmrtg/usersbook/ .
a) have a look at the ${PREFIX}/www/data/cfg/mrtg.cfg" file. You can get support and announcements by subscribing to
you must at least set the 'WorkDir:' variable and qmail log paths qmrtg-subscribe@lists.dev.publicshout.org
(search for '/var/log/supervise/qmail' and adapt to your system) ==============================================================================
b) configure qmrtg.conf. Defaults are fine generally. At least copy
${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 point "c)"
$ qmrtgsync.sh

View file

@ -1,18 +1,27 @@
bin/qmrtg-bytes
bin/qmrtg-concurrency
bin/qmrtg-deliveries
bin/qmrtg-errors
bin/qmrtg-queue
bin/qmrtg-smtpop
bin/qmrtg.sh bin/qmrtg.sh
bin/qmrtgsync.sh bin/qmrtgsync.sh
etc/qmrtg.conf.sample bin/qmrtgcheckconf.sh
bin/qmrtg-regex
bin/qmrtg-queue
bin/qmrtg-throughput
bin/qmrtg-dnsbl
bin/qmrtg-concurrency
bin/qfilt
bin/qtaif
etc/qmrtg.conf.dist
%%EXAMPLESDIR%%/mrtg.cfg
@dirrm %%EXAMPLESDIR%%
%%DATADIR%%/html/details.html
%%DATADIR%%/html/help.html
%%DATADIR%%/html/mail.html
%%DATADIR%%/html/style.css
@dirrm %%DATADIR%%/html
@dirrm %%DATADIR%%
%%PORTDOCS%%%%DOCSDIR%%/CONFIGURE.txt
%%PORTDOCS%%%%DOCSDIR%%/FAQ.txt %%PORTDOCS%%%%DOCSDIR%%/FAQ.txt
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt %%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
%%PORTDOCS%%%%DOCSDIR%%/README.txt %%PORTDOCS%%%%DOCSDIR%%/README.txt
%%PORTDOCS%%%%DOCSDIR%%/RUNNING.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%%%EXAMPLESDIR%%/mrtg.cfg
%%PORTDOCS%%%%EXAMPLESDIR%%/qmrtg.conf.sample
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
@exec mkdir -p %%QMRTG_DBDIR%% @exec mkdir -p %%QMRTG_DBDIR%%
@unexec rm -rf %%QMRTG_DBDIR%% 2>&1 >/dev/null || true @unexec rmdir %%QMRTG_DBDIR%% 2>/dev/null || true