diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-mail/qmrtg | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-mail/qmrtg')
-rw-r--r-- | net-mail/qmrtg/Manifest | 1 | ||||
-rw-r--r-- | net-mail/qmrtg/files/mrtg.cfg.patch | 83 | ||||
-rw-r--r-- | net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch | 11 | ||||
-rw-r--r-- | net-mail/qmrtg/files/qmrtg.conf.sample.patch | 20 | ||||
-rw-r--r-- | net-mail/qmrtg/metadata.xml | 5 | ||||
-rw-r--r-- | net-mail/qmrtg/qmrtg-2.1-r1.ebuild | 53 |
6 files changed, 173 insertions, 0 deletions
diff --git a/net-mail/qmrtg/Manifest b/net-mail/qmrtg/Manifest new file mode 100644 index 000000000000..abf708390356 --- /dev/null +++ b/net-mail/qmrtg/Manifest @@ -0,0 +1 @@ +DIST qmrtg-2.1.tar.gz 97255 SHA256 6f8cd553f2c2ae66c7177694e96d6ee78e4892bdfd2b6227bffda184d1dcb5dd SHA512 22d7ed55d22af74a62f3974f3d55edbdd08aab2db256cb0866dae566ec7f58eb5ae6ffeaa77ba571cf06eb6cf55a62720534408cb80bf95cecdbe587024259fb WHIRLPOOL b5e10ec45f7e34747cf988c15241500c00c9ad484004ecc336eba3659cdda8922939c9233c7183fe037b0d23c9387eb5876cc2209f7c2c7b22e749da72d623db 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..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-r1.ebuild b/net-mail/qmrtg/qmrtg-2.1-r1.ebuild new file mode 100644 index 000000000000..17a1ddcdc3bc --- /dev/null +++ b/net-mail/qmrtg/qmrtg-2.1-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |