From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- net-mail/qmrtg/Manifest | 1 + net-mail/qmrtg/files/mrtg.cfg.patch | 83 ++++++++++++++++++++++++ net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch | 11 ++++ net-mail/qmrtg/files/qmrtg.conf.sample.patch | 20 ++++++ net-mail/qmrtg/metadata.xml | 5 ++ net-mail/qmrtg/qmrtg-2.1-r1.ebuild | 53 +++++++++++++++ 6 files changed, 173 insertions(+) create mode 100644 net-mail/qmrtg/Manifest create mode 100644 net-mail/qmrtg/files/mrtg.cfg.patch create mode 100644 net-mail/qmrtg/files/qmrtg-2.1-TAI_STR_LEN.patch create mode 100644 net-mail/qmrtg/files/qmrtg.conf.sample.patch create mode 100644 net-mail/qmrtg/metadata.xml create mode 100644 net-mail/qmrtg/qmrtg-2.1-r1.ebuild (limited to 'net-mail/qmrtg') 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]:

Deliveries

+ 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]:

Queue size

+ 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]:

Delivery errors

+ 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]:

Throughput

+ 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]:

SMTP Concurrency

+ 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]:

SMTP Totals

+ 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]:

POP3 Concurrency

+ 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]:

POP3 Totals

+ 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]:

POP3 Totals

+ 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 @@ + + + +netmon + 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 +} -- cgit v1.2.3-65-gdbad