summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2006-10-08 17:20:08 +0000
committerMarkus Ullmann <jokey@gentoo.org>2006-10-08 17:20:08 +0000
commit9193ecf7e87900244d19a48e444b6d075e116429 (patch)
tree7a0104e6e2f9dd5a7943df5527dd45c9e118cba9 /net-mail/qmrtg
parentInstall semanage.conf since this is masked on example policy-based profiles. (diff)
downloadgentoo-2-9193ecf7e87900244d19a48e444b6d075e116429.tar.gz
gentoo-2-9193ecf7e87900244d19a48e444b6d075e116429.tar.bz2
gentoo-2-9193ecf7e87900244d19a48e444b6d075e116429.zip
Initial import wrt bug #71417 thanks to Angelo Leto and Gudleik Rasch for providing the ebuild in bug #71417
(Portage version: 2.1.2_pre2-r6)
Diffstat (limited to 'net-mail/qmrtg')
-rw-r--r--net-mail/qmrtg/ChangeLog11
-rw-r--r--net-mail/qmrtg/Manifest24
-rw-r--r--net-mail/qmrtg/files/digest-qmrtg-2.13
-rw-r--r--net-mail/qmrtg/files/mrtg.cfg.patch83
-rw-r--r--net-mail/qmrtg/files/qmrtg.conf.sample.patch20
-rw-r--r--net-mail/qmrtg/metadata.xml5
-rw-r--r--net-mail/qmrtg/qmrtg-2.1.ebuild55
7 files changed, 201 insertions, 0 deletions
diff --git a/net-mail/qmrtg/ChangeLog b/net-mail/qmrtg/ChangeLog
new file mode 100644
index 000000000000..f9b790f99f11
--- /dev/null
+++ b/net-mail/qmrtg/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-mail/qmrtg
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/qmrtg/ChangeLog,v 1.1 2006/10/08 17:20:08 jokey Exp $
+
+*qmrtg-2.1 (08 Oct 2006)
+
+ 08 Oct 2006; Markus Ullmann <jokey@gentoo.org> +files/mrtg.cfg.patch,
+ +files/qmrtg.conf.sample.patch, +metadata.xml, +qmrtg-2.1.ebuild:
+ Initial import wrt bug #71417 thanks to Angelo Leto and Gudleik Rasch for
+ providing the ebuild in bug #71417
+
diff --git a/net-mail/qmrtg/Manifest b/net-mail/qmrtg/Manifest
new file mode 100644
index 000000000000..a21f807c8221
--- /dev/null
+++ b/net-mail/qmrtg/Manifest
@@ -0,0 +1,24 @@
+AUX mrtg.cfg.patch 3569 RMD160 e0736737f96d7c095b10b003f8287a681572e5cc SHA1 7ecc60d8fad2ad673a3830e3d526694106104a3d SHA256 adf0c8b78e70f045a247ee5e28dc68bdf74062dcf2660bfff4a6ff14ccf97e61
+MD5 2ff9e50dc352fda76ba4a4e37a615c1e files/mrtg.cfg.patch 3569
+RMD160 e0736737f96d7c095b10b003f8287a681572e5cc files/mrtg.cfg.patch 3569
+SHA256 adf0c8b78e70f045a247ee5e28dc68bdf74062dcf2660bfff4a6ff14ccf97e61 files/mrtg.cfg.patch 3569
+AUX qmrtg.conf.sample.patch 603 RMD160 2f8d397fef05d5c6db30988ffdf466deee3b8b66 SHA1 63da4ce472788aee1a3f32dde94f3aec8c642b96 SHA256 f3de43849b7e60743fb009b8f27aec082e543730a9dd1241e9712417d0ffc652
+MD5 e751b2b48af330ef1bf7744f9bc0f5f1 files/qmrtg.conf.sample.patch 603
+RMD160 2f8d397fef05d5c6db30988ffdf466deee3b8b66 files/qmrtg.conf.sample.patch 603
+SHA256 f3de43849b7e60743fb009b8f27aec082e543730a9dd1241e9712417d0ffc652 files/qmrtg.conf.sample.patch 603
+DIST qmrtg-2.1.tar.gz 97255 RMD160 6c9f6f9b8176b885a0277a6738715e8651740be2 SHA1 a929ddd5659d9613f6966e81852064b02dec4b18 SHA256 6f8cd553f2c2ae66c7177694e96d6ee78e4892bdfd2b6227bffda184d1dcb5dd
+EBUILD qmrtg-2.1.ebuild 1157 RMD160 60aab0cfbdd79f0841939ffaef98f307dc1304a8 SHA1 4bc6660c8e062f8bdd7d943b70bbb9dad787ec90 SHA256 2b8d5b88ef4b10aa2a3eb593ca485f59ca143ae0f9398c1fab4d9cf57302ffbc
+MD5 7b6addaac3b9883b05847f8a4a718e14 qmrtg-2.1.ebuild 1157
+RMD160 60aab0cfbdd79f0841939ffaef98f307dc1304a8 qmrtg-2.1.ebuild 1157
+SHA256 2b8d5b88ef4b10aa2a3eb593ca485f59ca143ae0f9398c1fab4d9cf57302ffbc qmrtg-2.1.ebuild 1157
+MISC ChangeLog 395 RMD160 da1bde40773741aedeb1783be3ca59dea00b28c6 SHA1 0c430cdf1935740c46f2f0c43add833f62e9341c SHA256 629a9b518237427f24f5aca4406390d93774df7108687e19a29a896ba7e1f337
+MD5 16e75da0e588efe2054ec5a1837378b4 ChangeLog 395
+RMD160 da1bde40773741aedeb1783be3ca59dea00b28c6 ChangeLog 395
+SHA256 629a9b518237427f24f5aca4406390d93774df7108687e19a29a896ba7e1f337 ChangeLog 395
+MISC metadata.xml 159 RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b SHA1 9f5df3eabd621951a959cc8e0e2e0d352cd1fe1e SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6
+MD5 f34e3c8858756da0001b12d2d3fa1af2 metadata.xml 159
+RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b metadata.xml 159
+SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6 metadata.xml 159
+MD5 a51ea7038b8bfd87250e0cffbeafc618 files/digest-qmrtg-2.1 226
+RMD160 3eda027d5eab23ffc2dd8e890b132b79873e2d4a files/digest-qmrtg-2.1 226
+SHA256 fd0b55c15211e89fbbac42e73671df1b6d1b6edc22004111f762341167eb73ab files/digest-qmrtg-2.1 226
diff --git a/net-mail/qmrtg/files/digest-qmrtg-2.1 b/net-mail/qmrtg/files/digest-qmrtg-2.1
new file mode 100644
index 000000000000..03b30449e082
--- /dev/null
+++ b/net-mail/qmrtg/files/digest-qmrtg-2.1
@@ -0,0 +1,3 @@
+MD5 56573c66985497081d8cd15f9295294b qmrtg-2.1.tar.gz 97255
+RMD160 6c9f6f9b8176b885a0277a6738715e8651740be2 qmrtg-2.1.tar.gz 97255
+SHA256 6f8cd553f2c2ae66c7177694e96d6ee78e4892bdfd2b6227bffda184d1dcb5dd qmrtg-2.1.tar.gz 97255
diff --git a/net-mail/qmrtg/files/mrtg.cfg.patch b/net-mail/qmrtg/files/mrtg.cfg.patch
new file mode 100644
index 000000000000..bc1a51293d1d
--- /dev/null
+++ b/net-mail/qmrtg/files/mrtg.cfg.patch
@@ -0,0 +1,83 @@
+--- mrtg.cfg 2006-06-18 09:23:40.000000000 +0200
++++ examples/mrtg.cfg 2006-06-18 09:54:30.653950445 +0200
+@@ -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.conf.sample.patch b/net-mail/qmrtg/files/qmrtg.conf.sample.patch
new file mode 100644
index 000000000000..28e4d0cae042
--- /dev/null
+++ b/net-mail/qmrtg/files/qmrtg.conf.sample.patch
@@ -0,0 +1,20 @@
+--- qmrtg.conf.sample 2006-06-18 09:23:40.000000000 +0200
++++ examples/qmrtg.conf.sample 2006-06-18 10:06:13.150506247 +0200
+@@ -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..03aa50bab7e3
--- /dev/null
+++ b/net-mail/qmrtg/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+</pkgmetadata>
diff --git a/net-mail/qmrtg/qmrtg-2.1.ebuild b/net-mail/qmrtg/qmrtg-2.1.ebuild
new file mode 100644
index 000000000000..b8b2f569a748
--- /dev/null
+++ b/net-mail/qmrtg/qmrtg-2.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/qmrtg/qmrtg-2.1.ebuild,v 1.1 2006/10/08 17:20:08 jokey Exp $
+
+inherit eutils
+
+DESCRIPTION="A tool to analyze qmail's activity with the goal to graph everything through MRTG."
+HOMEPAGE="http://dev.publicshout.org/qmrtg"
+SRC_URI="${HOMEPAGE}/download/${PN}-${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="virtual/libc"
+RDEPEND="net-analyzer/mrtg"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}/examples"
+ epatch "${FILESDIR}/mrtg.cfg.patch"
+ epatch "${FILESDIR}/qmrtg.conf.sample.patch"
+}
+
+src_compile () {
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ emake install DESTDIR=${D} || die "emake install failed"
+ keepdir /var/lib/qmrtg
+ dodoc INSTALL.txt
+ if use doc ; then
+ docinto txt
+ dodoc doc/*.txt
+ docinto html
+ dohtml -r html/*
+ fi
+
+ insinto /usr/share/qmrtg2
+ doins examples/*
+
+}
+
+pkg_postinst () {
+ einfo
+ einfo "You need to configure manually qmrtg in order to run it."
+ einfo "The configuration templates in /usr/share/qmrtg2/ and"
+ einfo "the file in /usr/share/doc/qmrtg-2.1/INSTALL.txt.gz"
+ einfo "will be useful."
+ einfo
+}
+