ports/67887: new port: net-mgmt/qmrtg - qmrtg is a qmail activity analyzer|grapher

Mij mij at bitchx.it
Sat Jun 12 22:20:40 UTC 2004


>Number:         67887
>Category:       ports
>Synopsis:       new port: net-mgmt/qmrtg - qmrtg is a qmail activity analyzer|grapher
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 12 22:20:17 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Mij
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
dev.publicshout.org
>Environment:
System: FreeBSD heroin 4.9-STABLE FreeBSD 4.9-STABLE #1: Wed Mar 17 20:05:13 CET 2004 michele at heroin:/usr/obj/usr/src/sys/heroin_49custom003 i386


>Description:
	[from pkg-descr:]
	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/


>How-To-Repeat:
>Fix:

port shar follows

--- qmrtgport.txt begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	qmrtg/
#	qmrtg/Makefile
#	qmrtg/pkg-descr
#	qmrtg/pkg-plist
#	qmrtg/distinfo
#	qmrtg/files
#	qmrtg/files/patch-qmrtg.sh
#	qmrtg/files/patch-qmrtgsync.sh
#	qmrtg/pkg-message
#
echo c - qmrtg/
mkdir -p qmrtg/ > /dev/null 2>&1
echo x - qmrtg/Makefile
sed 's/^X//' >qmrtg/Makefile << 'END-of-qmrtg/Makefile'
X# New ports collection makefile for:   qmrtg
X# Date created:        12 Jun 2004
X# Whom:                Mij
X#
X# $FreeBSD$
X#
X
XPORTNAME=	qmrtg
XPORTVERSION=	0.5.6
XCATEGORIES=	net-mgmt
XMASTER_SITES=	http://dev.publicshout.org/qmrtg/download/
X
XMAINTAINER=	mij at bitchx.it
XCOMMENT=	A simple tool for monitoring and graphing qmail activity through MRTG
X
XRUN_DEPENDS=    bash:${PORTSDIR}/shells/bash2     \
X		mrtg:${PORTSDIR}/net-mgmt/mrtg
X
XMAN1=		qmrtg.1
XUSE_GMAKE=	yes
X
X# this is the local apache documentroot
XWWWROOTDIR?=	${PREFIX}/www/data
XQMRTG_DBDIR?=	${PORT_DBDIR}/../${PORTNAME}
X
Xpost-install:
X# in_stall manpages
X	@${MKDIR} ${PREFIX}/man/man1
X.for foo in ${MAN1}
X	${INSTALL_MAN} ${WRKSRC}/man/${foo} ${PREFIX}/man/man1
X.endfor
X.if !defined(WITHOUT_EXAMPLES)
X# in_stall conig file examples
X	${MKDIR} ${EXAMPLESDIR}
X	${CP} ${WRKSRC}/examples/* ${EXAMPLESDIR}/
X.endif
X.if !defined(WITHOUT_HTMLTEMPLATES)
X# in_stall html templates for mrtg graphs
X	${MKDIR} ${WWWROOTDIR}/${PORTNAME}
X	${CP} ${WRKSRC}/html/* ${WWWROOTDIR}/${PORTNAME}/
X.endif
X.if !defined(WITHOUT_DOC)
X# in_stall the few (FAQ, LICENSE etc) files provided by the package
X	${MKDIR} ${DOCSDIR}
X	${CP} ${WRKSRC}/doc/* ${DOCSDIR}/
X.endif
X	${MKDIR} ${QMRTG_DBDIR}
X	@${CAT} pkg-message
X
X.include <bsd.port.mk>
END-of-qmrtg/Makefile
echo x - qmrtg/pkg-descr
sed 's/^X//' >qmrtg/pkg-descr << 'END-of-qmrtg/pkg-descr'
XQmrtg is a free tool to help monitoring the activity of a qmail mailserver.
XIt's intended to be used with MRTG.
X
XQmrtg is modular. Each module carries out a different log analysis. 
XA super-module lets the user easily request any analysis without to
Xknow anything about the modules themselves.
XQmrtg has been originally written for qmail, but most of its modules
Xwork with every software logging with multilog (see 'daemontools').
X
XQmrtg is an alternative to qmailmrtg7.
X
X
XWWW: http://dev.publicshout.org/qmrtg/
X
X- Mij
Xmij at bitchx.it
END-of-qmrtg/pkg-descr
echo x - qmrtg/pkg-plist
sed 's/^X//' >qmrtg/pkg-plist << 'END-of-qmrtg/pkg-plist'
Xbin/qmrtg-bytes
Xbin/qmrtg-concurrency
Xbin/qmrtg-deliveries
Xbin/qmrtg-errors
Xbin/qmrtg-queue
Xbin/qmrtg-smtpop
Xbin/qmrtg.sh
Xetc/qmrtg.conf.sample
X%%PORTDOCS%%%%DOCSDIR%%/FAQ.txt
X%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
X%%PORTDOCS%%%%DOCSDIR%%/README.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%%%EXAMPLESDIR%%/mrtg.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/qmrtg.conf.sample
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
X at exec mkdir -p /var/db/qmrtg
X at unexec rm -rf /var/db/qmrtg
END-of-qmrtg/pkg-plist
echo x - qmrtg/distinfo
sed 's/^X//' >qmrtg/distinfo << 'END-of-qmrtg/distinfo'
XMD5 (qmrtg-0.5.6.tar.gz) = 545eb47280421a2b591ec66a1a7de5d5
XSIZE (qmrtg-0.5.6.tar.gz) = 20858
END-of-qmrtg/distinfo
echo c - qmrtg/files
mkdir -p qmrtg/files > /dev/null 2>&1
echo x - qmrtg/files/patch-qmrtg.sh
sed 's/^X//' >qmrtg/files/patch-qmrtg.sh << 'END-of-qmrtg/files/patch-qmrtg.sh'
X--- script/qmrtg.sh	Sat May 29 20:13:35 2004
X+++ script/qmrtg.sh	Sat May 29 20:13:43 2004
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X 
X CONFFILE=/usr/local/etc/qmrtg.conf
X QMRTG_DBPATH=/tmp/qmrtg
END-of-qmrtg/files/patch-qmrtg.sh
echo x - qmrtg/files/patch-qmrtgsync.sh
sed 's/^X//' >qmrtg/files/patch-qmrtgsync.sh << 'END-of-qmrtg/files/patch-qmrtgsync.sh'
X--- script/qmrtgsync.sh	Sat Jun 12 02:31:41 2004
X+++ script/qmrtgsync.sh	Sat Jun 12 02:32:03 2004
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X 
X CONFFILE=/usr/local/etc/qmrtg.conf
X QMRTG_DBPATH=/tmp/qmrtg
END-of-qmrtg/files/patch-qmrtgsync.sh
echo x - qmrtg/pkg-message
sed 's/^X//' >qmrtg/pkg-message << 'END-of-qmrtg/pkg-message'
X================================================================
XQMRTG has been installed.
X
X1) A "qmrtg/" directory has been added to ${PREFIX}/www/data
XIf you don't care publishing qmrtg's reports, just run a polite
X$ rm -rf ${WWWROOTDIR}/qmrtg
XAlso remind to remove it if you definitively uninstall qmrtg.
X
X2) to enable qmrtg monitoring:
Xa) have a look at the ${PREFIX}/www/data/cfg/mrtg.cfg" file.
Xyou must at least set the 'WorkDir:' variable and qmail log paths
X(search for '/var/log/supervise/qmail' and adapt to your system)
Xb) configure qmrtg.conf. Defaults are fine generally. At least copy
X${PREFIX}/qmrtg.conf.sample to "qmrtg.conf".
Xc) make mrtg run automatically. Using cron,put that in "/etc/crontab": 
X
X*/5 * * * *   root /usr/local/bin/mrtg \
X         /usr/local/www/data/qmrtg/cfg/mrtg.cfg 1>/dev/null 2>&1
X
XNote: to skip qmrtg reporting your mx' whole history at the first call,
Xrun the following before "c)"
X$ qmrtgsync.sh
END-of-qmrtg/pkg-message
exit
--- qmrtgport.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list