summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2004-06-28 10:29:10 +0000
committerVolker Stolz <vs@FreeBSD.org>2004-06-28 10:29:10 +0000
commit2ca21b1d1101722babf6b24f7027f80548c3cde4 (patch)
treef8c628f1e49d32eee2e401522eaef1a652981729
parentxine-lib RTSP handling vulnerabilities (diff)
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>
Notes
Notes: svn path=/head/; revision=112463
-rw-r--r--mail/Makefile1
-rw-r--r--mail/qmrtg/Makefile50
-rw-r--r--mail/qmrtg/distinfo2
-rw-r--r--mail/qmrtg/files/patch-qmrtg.sh8
-rw-r--r--mail/qmrtg/files/patch-qmrtgsync.sh8
-rw-r--r--mail/qmrtg/pkg-descr16
-rw-r--r--mail/qmrtg/pkg-message22
-rw-r--r--mail/qmrtg/pkg-plist18
8 files changed, 125 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 77e8c2d84fab..4849c8ca8f28 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -341,6 +341,7 @@
SUBDIR += qmailadmin-devel
SUBDIR += qmailanalog
SUBDIR += qmailmrtg7
+ SUBDIR += qmrtg
SUBDIR += qpopper
SUBDIR += qscan
SUBDIR += qsf
diff --git a/mail/qmrtg/Makefile b/mail/qmrtg/Makefile
new file mode 100644
index 000000000000..55b6fb7ef295
--- /dev/null
+++ b/mail/qmrtg/Makefile
@@ -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>
diff --git a/mail/qmrtg/distinfo b/mail/qmrtg/distinfo
new file mode 100644
index 000000000000..2bb3fcb3d3ce
--- /dev/null
+++ b/mail/qmrtg/distinfo
@@ -0,0 +1,2 @@
+MD5 (qmrtg-0.5.6.tar.gz) = 545eb47280421a2b591ec66a1a7de5d5
+SIZE (qmrtg-0.5.6.tar.gz) = 20858
diff --git a/mail/qmrtg/files/patch-qmrtg.sh b/mail/qmrtg/files/patch-qmrtg.sh
new file mode 100644
index 000000000000..66ab81d56fdc
--- /dev/null
+++ b/mail/qmrtg/files/patch-qmrtg.sh
@@ -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
diff --git a/mail/qmrtg/files/patch-qmrtgsync.sh b/mail/qmrtg/files/patch-qmrtgsync.sh
new file mode 100644
index 000000000000..f788ce299b1e
--- /dev/null
+++ b/mail/qmrtg/files/patch-qmrtgsync.sh
@@ -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
diff --git a/mail/qmrtg/pkg-descr b/mail/qmrtg/pkg-descr
new file mode 100644
index 000000000000..1fcca93e1e7d
--- /dev/null
+++ b/mail/qmrtg/pkg-descr
@@ -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
diff --git a/mail/qmrtg/pkg-message b/mail/qmrtg/pkg-message
new file mode 100644
index 000000000000..9af0c2d8152a
--- /dev/null
+++ b/mail/qmrtg/pkg-message
@@ -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
diff --git a/mail/qmrtg/pkg-plist b/mail/qmrtg/pkg-plist
new file mode 100644
index 000000000000..cebdab3f6c57
--- /dev/null
+++ b/mail/qmrtg/pkg-plist
@@ -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