summaryrefslogtreecommitdiff
path: root/net-mail/qmrtg
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/qmrtg')
-rw-r--r--net-mail/qmrtg/Manifest8
-rw-r--r--net-mail/qmrtg/files/mrtg.cfg.patch83
-rw-r--r--net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch11
-rw-r--r--net-mail/qmrtg/files/qmrtg.conf.sample.patch20
-rw-r--r--net-mail/qmrtg/metadata.xml8
-rw-r--r--net-mail/qmrtg/qmrtg-2.1-r1.ebuild52
6 files changed, 182 insertions, 0 deletions
diff --git a/net-mail/qmrtg/Manifest b/net-mail/qmrtg/Manifest
new file mode 100644
index 000000000000..edd57d5c2cd5
--- /dev/null
+++ b/net-mail/qmrtg/Manifest
@@ -0,0 +1,8 @@
+AUX mrtg.cfg.patch 3510 SHA256 becd8aa35ccdc8078a99abfdd0a94fc9def90870841ae22f55c2f80c67981689 SHA512 aefcd7fc7bdf129ba958da2ec782823825ffdc3865f4ae71344c6d19e996d7380564e7c213be14443d7301baf2c31170fbe71e5b9ccec63e82580f863bbdbb88 WHIRLPOOL 783b643bb593f9f7794bc5265e07725e91646fe826caa5c6c4ee1fc95b2a0c8aab3153109fef78f5cc4b2d0fadff312aa453078f97b574718efd56608f61e66c
+AUX qmrtg-2.1-TAI_STR_LEN.patch 215 SHA256 e5fadd4f93f82a2db6630da89230e201217fa2359c7613a8c1582b3f22103d30 SHA512 027bb8b3d7cc1a3714f482a396a5ecb17ebc401f8fa8491cc4f326c92ad64d2708165ad1462adcddd278c757daba50d4d72c9bfed99283bd308adc29e162532c WHIRLPOOL 06cb5b1209cba16c9b63ada71dec40189410d2f128aaa63edef7f9d36c4e3721f86265ece6005ef4e0ab08aaa371339c294876073696d8267311d62d73fe7b40
+AUX qmrtg.conf.sample.patch 544 SHA256 99386a5ca635e7bb83f136a68f00408c8783f48d75860d4e8be8e9f607c07d6f SHA512 c667fb5be05b2356782f2fe96d8b3eef1a3bdc6a8b74dfe6254f5718400cd6527baf6cee1badd0e96db26d2f5d2f160e1b47cbfb41baffcb8c79d959333d5cd7 WHIRLPOOL 9a3f49e484b8cf1bcb8e56dab76133de2eb1fb5be562c9384d9ff117cc685e714e7d49bbb9662fe64d95c8e17286f8c238cd1558a0a6a0e707a7557db8b7f7e1
+DIST qmrtg-2.1.tar.gz 97255 SHA256 6f8cd553f2c2ae66c7177694e96d6ee78e4892bdfd2b6227bffda184d1dcb5dd SHA512 22d7ed55d22af74a62f3974f3d55edbdd08aab2db256cb0866dae566ec7f58eb5ae6ffeaa77ba571cf06eb6cf55a62720534408cb80bf95cecdbe587024259fb WHIRLPOOL b5e10ec45f7e34747cf988c15241500c00c9ad484004ecc336eba3659cdda8922939c9233c7183fe037b0d23c9387eb5876cc2209f7c2c7b22e749da72d623db
+EBUILD qmrtg-2.1-r1.ebuild 1090 SHA256 95518ae4dbc8735bd928320237ce46919ba69023fd0db3d9198e729785c7c3bf SHA512 43e8a9bdf3fcaa497089427266da2ce4a4d5e7d6c5fb3427c007289619c0b6b77c8b4cf56baae453c411abde1bc6e6102d88d624e64894b0748bb12d72dbd6f1 WHIRLPOOL 29f4ae26306266b878cc169fba98a8c48649ce40f2a3f2d5a586795bd87af78db5238a3e334b4ce226e70a82bb21ef33e38ec76fa31ec91dfc97175c89771a9a
+MISC ChangeLog 2516 SHA256 bb6f3c557fd0b1a2547217428f1443410513c85d780dbfb95f40d2e77076d2c3 SHA512 8e17772ecf7529b054f2c76e5b947736061f3b68f7117ba4eb2e26aeee8d217d79a7bbb76a40c6676a02c1ad9bf95f4ddda3a928878fcf4e93a1fcc734858545 WHIRLPOOL 77d48879caac41bf2edf734ba854ff2be71ecbc5f517a314a9435972f1e0f4f76576566c29b88ded7b75bc6160aa085e15a16e41a3976122206bb2582ef74fac
+MISC ChangeLog-2015 1350 SHA256 822891e652ea32dc95e6fb066e50897a0e768ca435da73cb55550b80519ba9d3 SHA512 08e292e16a43c161e8fd7d7c44c2e0a2f3e2d8e6f800ed58e990c49876c482d32927f3cec531c7bc3b21e4fd0822c22b1e2c463a813d70ce58a39cfc47fb2790 WHIRLPOOL e7b7d31db13828c192ea4371e3595072a31706705bb79362d97fac68d453a12ad068aae2eea2b6bfc51e5c17184ac1aa726639101256ae517247010c93182041
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
diff --git a/net-mail/qmrtg/files/mrtg.cfg.patch b/net-mail/qmrtg/files/mrtg.cfg.patch
new file mode 100644
index 000000000000..8bde992139ae
--- /dev/null
+++ b/net-mail/qmrtg/files/mrtg.cfg.patch
@@ -0,0 +1,83 @@
+--- a/examples/mrtg.cfg
++++ b/examples/mrtg.cfg
+@@ -52,7 +52,7 @@
+ Directory[qmail.deliveries]: qmail.deliveries
+ MaxBytes[qmail.deliveries]: 10000
+ AbsMax[qmail.deliveries]: 20000
+-Target[qmail.deliveries]: `/usr/local/bin/qmrtg.sh deliveries`
++Target[qmail.deliveries]: `/usr/bin/qmrtg.sh deliveries`
+ PageTop[qmail.deliveries]: <H1>Deliveries</H1>
+ ShortLegend[qmail.deliveries]: delivs
+ YLegend[qmail.deliveries]: deliveries
+@@ -71,7 +71,7 @@
+ Directory[qmail.queue-size]: qmail.queue-size
+ MaxBytes[qmail.queue-size]: 10000
+ AbsMax[qmail.queue-size]: 100000
+-Target[qmail.queue-size]: `/usr/local/bin/qmrtg-queue /var/qmail/queue`
++Target[qmail.queue-size]: `/usr/bin/qmrtg-queue /var/qmail/queue`
+ PageTop[qmail.queue-size]: <H1>Queue size</H1>
+ ShortLegend[qmail.queue-size]: msgs
+ YLegend[qmail.queue-size]: messages
+@@ -90,7 +90,7 @@
+ Directory[qmail.deliverrors]: qmail.deliverrors
+ MaxBytes[qmail.deliverrors]: 10000
+ AbsMax[qmail.deliverrors]: 100000
+-Target[qmail.deliverrors]: `/usr/local/bin/qmrtg.sh errors`
++Target[qmail.deliverrors]: `/usr/bin/qmrtg.sh errors`
+ PageTop[qmail.deliverrors]: <H1>Delivery errors</H1>
+ ShortLegend[qmail.deliverrors]: errs
+ YLegend[qmail.deliverrors]: errors
+@@ -109,7 +109,7 @@
+ Directory[qmail.bytes]: qmail.bytes
+ MaxBytes[qmail.bytes]: 200000
+ AbsMax[qmail.bytes]: 10000000
+-Target[qmail.bytes]: `/usr/local/bin/qmrtg.sh throughput`
++Target[qmail.bytes]: `/usr/bin/qmrtg.sh throughput`
+ PageTop[qmail.bytes]: <H1>Throughput</H1>
+ ShortLegend[qmail.bytes]: B
+ YLegend[qmail.bytes]: bytes
+@@ -127,7 +127,7 @@
+ Options[qmail.smtp-concurrency]: growright,unknaszero,nopercent,gauge
+ Directory[qmail.smtp-concurrency]: qmail.smtp-concurrency
+ MaxBytes[qmail.smtp-concurrency]: 100
+-Target[qmail.smtp-concurrency]: `/usr/local/bin/qmrtg.sh smtp-concurrency`
++Target[qmail.smtp-concurrency]: `/usr/bin/qmrtg.sh smtp-concurrency`
+ PageTop[qmail.smtp-concurrency]: <H1>SMTP Concurrency</H1>
+ ShortLegend[qmail.smtp-concurrency]: conns
+ YLegend[qmail.smtp-concurrency]: connections
+@@ -146,7 +146,7 @@
+ Directory[qmail.smtphits]: qmail.smtphits
+ MaxBytes[qmail.smtphits]: 1000
+ AbsMax[qmail.smtphits]: 10000
+-Target[qmail.smtphits]: `/usr/local/bin/qmrtg.sh smtpconns`
++Target[qmail.smtphits]: `/usr/bin/qmrtg.sh smtpconns`
+ PageTop[qmail.smtphits]: <H1>SMTP Totals</H1>
+ ShortLegend[qmail.smtphits]: conns
+ YLegend[qmail.smtphits]: connections
+@@ -165,7 +165,7 @@
+ Directory[qmail.pop-concurrency]: qmail.pop-concurrency
+ MaxBytes[qmail.pop-concurrency]: 100
+ AbsMax[qmail.pop-concurrency]: 500
+-Target[qmail.pop-concurrency]: `/usr/local/bin/qmrtg.sh pop-concurrency`
++Target[qmail.pop-concurrency]: `/usr/bin/qmrtg.sh pop-concurrency`
+ PageTop[qmail.pop-concurrency]: <H1>POP3 Concurrency</H1>
+ ShortLegend[qmail.pop-concurrency]: concur
+ YLegend[qmail.pop-concurrency]: concurrency
+@@ -184,7 +184,7 @@
+ Directory[qmail.pophits]: qmail.pophits
+ MaxBytes[qmail.pophits]: 1000
+ AbsMax[qmail.pophits]: 10000
+-Target[qmail.pophits]: `/usr/local/bin/qmrtg.sh popconns`
++Target[qmail.pophits]: `/usr/bin/qmrtg.sh popconns`
+ PageTop[qmail.pophits]: <H1>POP3 Totals</H1>
+ ShortLegend[qmail.pophits]: conns
+ YLegend[qmail.pophits]: connections
+@@ -203,7 +203,7 @@
+ Directory[qmail.dnsbl]: qmail.dnsbl
+ MaxBytes[qmail.dnsbl]: 1000
+ AbsMax[qmail.dnsbl]: 10000
+-Target[qmail.dnsbl]: `/usr/local/bin/qmrtg.sh dnsbl`
++Target[qmail.dnsbl]: `/usr/bin/qmrtg.sh dnsbl`
+ PageTop[qmail.dnsbl]: <H1>POP3 Totals</H1>
+ ShortLegend[qmail.dnsbl]: conns
+ YLegend[qmail.dnsbl]: connections
diff --git a/net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch b/net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch
new file mode 100644
index 000000000000..bf8855b1f96c
--- /dev/null
+++ b/net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch
@@ -0,0 +1,11 @@
+--- a/filters/qtaif.c
++++ b/filters/qtaif.c
+@@ -28,7 +28,7 @@
+ return 3;
+ }
+ }
+- taibuf[TAI_STR_LEN] = '\0';
++ taibuf[TAI_STR_LEN -1] = '\0';
+
+ printf("%s\n", taibuf);
+
diff --git a/net-mail/qmrtg/files/qmrtg.conf.sample.patch b/net-mail/qmrtg/files/qmrtg.conf.sample.patch
new file mode 100644
index 000000000000..1df7ec79f835
--- /dev/null
+++ b/net-mail/qmrtg/files/qmrtg.conf.sample.patch
@@ -0,0 +1,20 @@
+--- a/examples/qmrtg.conf.sample
++++ b/examples/qmrtg.conf.sample
+@@ -6,7 +6,7 @@
+ # this it where qmrtg keeps its dbfiles
+ # dbfiles are a few little files used
+ # to store service informations
+-QMRTG_DBPATH="/var/db/qmrtg"
++QMRTG_DBPATH="/var/lib/qmrtg"
+
+ # use this for debugging qmrtg
+ # the greater the level, the more info you'll get
+@@ -19,7 +19,7 @@
+ DEBUG=$QMRTG_DBPATH/qmrtg.log
+
+ # root location for binary files
+-BINPLACE=/usr/local/bin
++BINPLACE=/usr/bin
+
+ # this beams "new" lines from log files
+ QFILT=$BINPLACE/qfilt
diff --git a/net-mail/qmrtg/metadata.xml b/net-mail/qmrtg/metadata.xml
new file mode 100644
index 000000000000..74c2baebb4ec
--- /dev/null
+++ b/net-mail/qmrtg/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-mail/qmrtg/qmrtg-2.1-r1.ebuild b/net-mail/qmrtg/qmrtg-2.1-r1.ebuild
new file mode 100644
index 000000000000..dad4124cce50
--- /dev/null
+++ b/net-mail/qmrtg/qmrtg-2.1-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="A tool to analyze qmail activity with the goal to graph everything through MRTG"
+HOMEPAGE="http://dev.publicshout.org/qmrtg"
+SRC_URI="${HOMEPAGE}/download/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND="net-analyzer/mrtg"
+
+src_prepare() {
+ sed -i \
+ -e 's|^CFLAGS =|CFLAGS ?=|g' \
+ analyzers/Makefile.in filters/Makefile.in || die
+
+ epatch "${FILESDIR}"/mrtg.cfg.patch
+ epatch "${FILESDIR}"/qmrtg.conf.sample.patch
+ epatch "${FILESDIR}"/${P}-TAI_STR_LEN.patch
+}
+
+DOCS=( INSTALL.txt )
+
+src_install () {
+ default
+ keepdir /var/lib/qmrtg
+ if use doc ; then
+ docinto txt
+ dodoc doc/*.txt
+ docinto html
+ dohtml -r html/*
+ fi
+
+ insinto /usr/share/qmrtg2
+ doins examples/*
+
+}
+
+pkg_postinst () {
+ elog
+ elog "You need to configure manually qmrtg in order to run it."
+ elog "The configuration templates in /usr/share/qmrtg2/ and"
+ elog "the INSTALL file in /usr/share/doc/qmrtg-2.1/"
+ elog "will be useful."
+ elog
+}