diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-04-21 14:50:11 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-04-21 14:50:59 +0200 |
commit | aee26e0ffc4de9b95170535c5b4a2f023d908417 (patch) | |
tree | 0580995446be71149daf7de311ab3b0cc8b2fd8b /net-analyzer/pmacct | |
parent | x11-themes/faenza-icon-theme: Drop old (diff) | |
download | gentoo-aee26e0ffc4de9b95170535c5b4a2f023d908417.tar.gz gentoo-aee26e0ffc4de9b95170535c5b4a2f023d908417.tar.bz2 gentoo-aee26e0ffc4de9b95170535c5b4a2f023d908417.zip |
net-analyzer/pmacct: Add USE="jansson kafka rabbitmq" (bug #594512 by Marcin Mirosław).
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'net-analyzer/pmacct')
-rw-r--r-- | net-analyzer/pmacct/metadata.xml | 5 | ||||
-rw-r--r-- | net-analyzer/pmacct/pmacct-1.6.1-r1.ebuild | 79 |
2 files changed, 83 insertions, 1 deletions
diff --git a/net-analyzer/pmacct/metadata.xml b/net-analyzer/pmacct/metadata.xml index 46cfcd1fff7d..32c63343b6fd 100644 --- a/net-analyzer/pmacct/metadata.xml +++ b/net-analyzer/pmacct/metadata.xml @@ -6,9 +6,12 @@ <name>Gentoo network monitoring and analysis project</name> </maintainer> <use> -<flag name="geoipv2">Add support for GeoIP2 through <pkg>dev-libs/libmaxminddb</pkg></flag> <flag name="64bit">Use 64bit counters instead of 32bit ones</flag> +<flag name="geoipv2">Add support for GeoIP2 through <pkg>dev-libs/libmaxminddb</pkg></flag> +<flag name="jansson">Add support for JSON through <pkg>dev-libs/jansson</pkg></flag> +<flag name="kafka">Add support for Apache Kafka through <pkg>dev-libs/librdkafka</pkg></flag> <flag name="mongodb">Add support for mongodb backend</flag> +<flag name="rabbitmq">Add support for RabbitMQ through <pkg>net-libs/rabbitmq-c</pkg></flag> <flag name="ulog">Enable support for ULOG in older kernels (deprecated)</flag> </use> </pkgmetadata> diff --git a/net-analyzer/pmacct/pmacct-1.6.1-r1.ebuild b/net-analyzer/pmacct/pmacct-1.6.1-r1.ebuild new file mode 100644 index 000000000000..112c9000ec87 --- /dev/null +++ b/net-analyzer/pmacct/pmacct-1.6.1-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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 ~x86" +IUSE="64bit debug geoip geoipv2 ipv6 jansson kafka mongodb mysql postgres rabbitmq sqlite threads" +REQUIRED_USE=" + ?? ( geoip geoipv2 ) + kafka? ( jansson ) + rabbitmq? ( jansson ) +" + +RDEPEND=" + net-libs/libpcap + geoip? ( dev-libs/geoip ) + geoipv2? ( dev-libs/libmaxminddb ) + jansson? ( dev-libs/jansson ) + kafka? ( dev-libs/librdkafka ) + mongodb? ( + >=dev-libs/mongo-c-driver-0.8.1-r1 + <dev-libs/mongo-c-driver-0.98 + ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql:* ) + rabbitmq? ( net-libs/rabbitmq-c ) + sqlite? ( =dev-db/sqlite-3* ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +DOCS=( + CONFIG-KEYS ChangeLog FAQS QUICKSTART 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 geoipv2) \ + $(use_enable ipv6) \ + $(use_enable jansson) \ + $(use_enable kafka) \ + $(use_enable mongodb) \ + $(use_enable mysql) \ + $(use_enable postgres pgsql) \ + $(use_enable rabbitmq) \ + $(use_enable sqlite sqlite3) \ + $(use_enable threads) \ + --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 +} |