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-analyzer/pmacct | |
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-analyzer/pmacct')
-rw-r--r-- | net-analyzer/pmacct/Manifest | 3 | ||||
-rw-r--r-- | net-analyzer/pmacct/files/pmacct-0.12.0-gentoo.patch | 20 | ||||
-rw-r--r-- | net-analyzer/pmacct/files/pmacctd-conf.d | 7 | ||||
-rw-r--r-- | net-analyzer/pmacct/files/pmacctd-init.d | 37 | ||||
-rw-r--r-- | net-analyzer/pmacct/metadata.xml | 10 | ||||
-rw-r--r-- | net-analyzer/pmacct/pmacct-0.14.3.ebuild | 68 | ||||
-rw-r--r-- | net-analyzer/pmacct/pmacct-1.5.0.ebuild | 70 | ||||
-rw-r--r-- | net-analyzer/pmacct/pmacct-1.5.1.ebuild | 72 |
8 files changed, 287 insertions, 0 deletions
diff --git a/net-analyzer/pmacct/Manifest b/net-analyzer/pmacct/Manifest new file mode 100644 index 000000000000..c7603289cdcd --- /dev/null +++ b/net-analyzer/pmacct/Manifest @@ -0,0 +1,3 @@ +DIST pmacct-0.14.3.tar.gz 746387 SHA256 c3197dcb21b131da82eaaecc9dccbff894c35bf1cb74214e93ae1e7c1bdef50e SHA512 310cee3f74d41befd74f981aff6c1a33a2db14c7010e8d1283374d8f6be49fb825a768f992c7b24acca74710413148fd61006ae7e87ad566b7193d575fa6df36 WHIRLPOOL bd7b8560ed5e30ff6342920ec04cca1795bf675dc90db7abf31c8d105f733109950ca28ac9c57d80cb2b6aef24f3db6259a71b170a032b1a77cdb98f5b7bcbe9 +DIST pmacct-1.5.0.tar.gz 843881 SHA256 28edc18aec67c2157c599dcf095dd9f26a4c06ca4dfe7da79390011b3fd432fc SHA512 e1ff47f6a987e76c5e5ac92896f9dac3722c681a5a85835dbf8bffba68dc5794c63f06c9576d1b8f667fb4fe2f9b17d8e0dd1d3a4a96673c43378d2aba3329a1 WHIRLPOOL e886a73e732b7e63f5453710913372dfab671d33bbbc85dc4f10daab89173cdf5579ddfd2ad4019855d67705b52bafd1b31d1e2d14da34dfc00877db444e1419 +DIST pmacct-1.5.1.tar.gz 874563 SHA256 96134549a10947f3f6d610b670a26f1a54e01af4be0eff09bf48c19246d33584 SHA512 c3a0ddaf1b8679df2097147ce844eb2a3e3058599aea457e463cd4e65a7601e0ce5bac5ca5e1c82afecd5edc92dae673eed3ed1787bfbd3e8ac2af5677885bb7 WHIRLPOOL bd071ac30493f5ee2e0393eb9277dfae2d2fdd6283293aee589ae41ab326b0aaef0ec9b70a421eeca4df857a0046ca7b196e0692ffdd2ea12d9a7c66a74e9a32 diff --git a/net-analyzer/pmacct/files/pmacct-0.12.0-gentoo.patch b/net-analyzer/pmacct/files/pmacct-0.12.0-gentoo.patch new file mode 100644 index 000000000000..34efc1eda34d --- /dev/null +++ b/net-analyzer/pmacct/files/pmacct-0.12.0-gentoo.patch @@ -0,0 +1,20 @@ +--- a/configure ++++ b/configure +@@ -1103,7 +1103,7 @@ + echo $ac_n "checking whether to enable debugging compiler options""... $ac_c" 1>&6 + echo "configure:1105: checking whether to enable debugging compiler options" >&5 + # Check whether --enable-debug or --disable-debug was given. +-if test "${enable_debug+set}" = set; then ++if test "${enable_debug+set}" = TODO_THIS_WILL_NEVER_BE_TRUE; then + enableval="$enable_debug" + echo "$ac_t""yes" 1>&6 + tmp_CFLAGS=`echo $CFLAGS | sed 's/O2/O0/g'` +@@ -1114,7 +1114,7 @@ + #CFLAGS="$CFLAGS -Wcast-align -Wcast-qual -Wnested-externs" + #CFLAGS="$CFLAGS -Wshadow -Wbad-function-cast -Wwrite-strings" + echo "$ac_t""no" 1>&6 +- ++ CFLAGS="$ac_save_CFLAGS" + fi + + diff --git a/net-analyzer/pmacct/files/pmacctd-conf.d b/net-analyzer/pmacct/files/pmacctd-conf.d new file mode 100644 index 000000000000..3ecc8613e1d7 --- /dev/null +++ b/net-analyzer/pmacct/files/pmacctd-conf.d @@ -0,0 +1,7 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Other options to pass to pmacctd +#OPTS="" + diff --git a/net-analyzer/pmacct/files/pmacctd-init.d b/net-analyzer/pmacct/files/pmacctd-init.d new file mode 100644 index 000000000000..3a0cc734991c --- /dev/null +++ b/net-analyzer/pmacct/files/pmacctd-init.d @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +PMACCTDDIR=${PMACCTDDIR:-/etc/pmacctd} +if [ ${SVCNAME} != "pmacctd" ]; then + PMACCTDPID="/run/${SVCNAME}.pid" +else + PMACCTDPID="/run/pmacctd.pid" +fi +PMACCTDCONF="${PMACCTDDIR}/${SVCNAME}.conf" + +depend() { + need net +} + +checkconfig() { + if [ ! -e ${PMACCTDCONF} ] ; then + eerror "You need an ${PMACCTDCONF} file to run pmacctd" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --pidfile "${PMACCTDPID}" --exec /usr/sbin/"${SVCNAME}" \ + -- -D -f "${PMACCTDCONF}" -F "${PMACCTDPID}" ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --pidfile "${PMACCTDPID}" --exec /usr/sbin/"${SVCNAME}" + eend $? +} diff --git a/net-analyzer/pmacct/metadata.xml b/net-analyzer/pmacct/metadata.xml new file mode 100644 index 000000000000..12a9db305535 --- /dev/null +++ b/net-analyzer/pmacct/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +<use> +<flag name='64bit'>Use 64bit counters instead of 32bit ones</flag> +<flag name='mongodb'>Add support for mongodb backend</flag> +<flag name='ulog'>Enable ULOG support</flag> +</use> +</pkgmetadata> diff --git a/net-analyzer/pmacct/pmacct-0.14.3.ebuild b/net-analyzer/pmacct/pmacct-0.14.3.ebuild new file mode 100644 index 000000000000..c01735b38e04 --- /dev/null +++ b/net-analyzer/pmacct/pmacct-0.14.3.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="A network tool to gather IP traffic information" +HOMEPAGE="http://www.pmacct.net/" +SRC_URI="http://www.pmacct.net/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="64bit debug geoip ipv6 mongodb mysql postgres sqlite threads ulog" + +DEPEND=" + net-libs/libpcap + geoip? ( dev-libs/geoip ) + mongodb? ( dev-libs/mongo-c-driver ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( =dev-db/sqlite-3* ) +" +RDEPEND="${DEPEND}" + +DOCS=( + CONFIG-KEYS ChangeLog FAQS KNOWN-BUGS QUICKSTART README TODO TOOLS UPGRADE + docs/INTERNALS docs/PLUGINS docs/SIGNALS +) + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.12.0-gentoo.patch + sed -i \ + -e '/[[:space:]]ar /s|ar |$(AR) |g' \ + $(find . -name Makefile.in) || die +} + +src_configure() { + tc-export CC AR RANLIB + + econf \ + $(use_enable 64bit) \ + $(use_enable debug) \ + $(use_enable geoip) \ + $(use_enable ipv6) \ + $(use_enable mongodb) \ + $(use_enable mysql) \ + $(use_enable postgres pgsql) \ + $(use_enable sqlite sqlite3) \ + $(use_enable threads) \ + $(use_enable ulog) +} + +src_install() { + default + + for dirname in examples sql; do + docinto ${dirname} + dodoc ${dirname}/* + done + + newinitd "${FILESDIR}"/pmacctd-init.d pmacctd + newconfd "${FILESDIR}"/pmacctd-conf.d pmacctd + + insinto /etc/pmacctd + newins examples/pmacctd-imt.conf.example pmacctd.conf +} diff --git a/net-analyzer/pmacct/pmacct-1.5.0.ebuild b/net-analyzer/pmacct/pmacct-1.5.0.ebuild new file mode 100644 index 000000000000..6baf16fc70f1 --- /dev/null +++ b/net-analyzer/pmacct/pmacct-1.5.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="A network tool to gather IP traffic information" +HOMEPAGE="http://www.pmacct.net/" +SRC_URI="http://www.pmacct.net/${P/_}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="64bit debug geoip ipv6 mongodb mysql postgres sqlite threads ulog" + +RDEPEND=" + net-libs/libpcap + geoip? ( dev-libs/geoip ) + mongodb? ( + >=dev-libs/mongo-c-driver-0.8.1-r1 + <dev-libs/mongo-c-driver-0.98 + ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( =dev-db/sqlite-3* ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +S="${WORKDIR}/${P/_/}" + +DOCS=( + CONFIG-KEYS ChangeLog FAQS KNOWN-BUGS QUICKSTART README TODO TOOLS UPGRADE + docs/INTERNALS docs/PLUGINS docs/SIGNALS +) + +src_configure() { + tc-export CC AR RANLIB + + econf \ + $(use_enable 64bit) \ + $(use_enable debug) \ + $(use_enable geoip) \ + $(use_enable ipv6) \ + $(use_enable mongodb) \ + $(use_enable mysql) \ + $(use_enable postgres pgsql) \ + $(use_enable sqlite sqlite3) \ + $(use_enable threads) \ + $(use_enable ulog) \ + --disable-debug +} + +src_install() { + default + + for dirname in examples sql; do + docinto ${dirname} + dodoc -r ${dirname}/* + done + + newinitd "${FILESDIR}"/pmacctd-init.d pmacctd + newconfd "${FILESDIR}"/pmacctd-conf.d pmacctd + + insinto /etc/pmacctd + newins examples/pmacctd-imt.conf.example pmacctd.conf +} diff --git a/net-analyzer/pmacct/pmacct-1.5.1.ebuild b/net-analyzer/pmacct/pmacct-1.5.1.ebuild new file mode 100644 index 000000000000..6eebee7b50db --- /dev/null +++ b/net-analyzer/pmacct/pmacct-1.5.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="A network tool to gather IP traffic information" +HOMEPAGE="http://www.pmacct.net/" +SRC_URI="http://www.pmacct.net/${P/_}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="64bit debug geoip ipv6 mongodb mysql postgres sqlite threads ulog" + +RDEPEND=" + net-libs/libpcap + geoip? ( dev-libs/geoip ) + mongodb? ( + >=dev-libs/mongo-c-driver-0.8.1-r1 + <dev-libs/mongo-c-driver-0.98 + ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql:* ) + sqlite? ( =dev-db/sqlite-3* ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +S="${WORKDIR}/${P/_/}" + +DOCS=( + CONFIG-KEYS ChangeLog FAQS KNOWN-BUGS QUICKSTART README TODO TOOLS UPGRADE + docs/INTERNALS docs/PLUGINS docs/SIGNALS +) + +src_configure() { + tc-export CC AR RANLIB + + econf \ + $(use_enable 64bit) \ + $(use_enable debug) \ + $(use_enable geoip) \ + $(use_enable ipv6) \ + $(use_enable mongodb) \ + $(use_enable mysql) \ + $(use_enable postgres pgsql) \ + $(use_enable sqlite sqlite3) \ + $(use_enable threads) \ + $(use_enable ulog) \ + $(usex mysql "--with-mysql-includes=$(mysql_config --variable=pkgincludedir)" '') \ + $(usex mysql "--with-mysql-libs=$(mysql_config --variable=pkglibdir)" '') \ + --disable-debug +} + +src_install() { + default + + for dirname in examples sql; do + docinto ${dirname} + dodoc -r ${dirname}/* + done + + newinitd "${FILESDIR}"/pmacctd-init.d pmacctd + newconfd "${FILESDIR}"/pmacctd-conf.d pmacctd + + insinto /etc/pmacctd + newins examples/pmacctd-imt.conf.example pmacctd.conf +} |