diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-10-22 19:13:25 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-10-22 19:15:37 +0200 |
commit | 429730806270b0b1910ab36b452f19e35d8b5af8 (patch) | |
tree | a3628be7a8838f8d2966dac839115c376aac228e /net-analyzer | |
parent | net-libs/nDPI: Add USE=static-libs. (diff) | |
download | gentoo-429730806270b0b1910ab36b452f19e35d8b5af8.tar.gz gentoo-429730806270b0b1910ab36b452f19e35d8b5af8.tar.bz2 gentoo-429730806270b0b1910ab36b452f19e35d8b5af8.zip |
net-analyzer/pmacct: Version bump.
Package-Manager: Portage-2.3.12, Repoman-2.3.3
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/pmacct/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/pmacct/metadata.xml | 14 | ||||
-rw-r--r-- | net-analyzer/pmacct/pmacct-1.7.0.ebuild | 85 |
3 files changed, 94 insertions, 6 deletions
diff --git a/net-analyzer/pmacct/Manifest b/net-analyzer/pmacct/Manifest index 20a37360b1b4..d2f4a458701f 100644 --- a/net-analyzer/pmacct/Manifest +++ b/net-analyzer/pmacct/Manifest @@ -1,2 +1,3 @@ DIST pmacct-1.5.1.tar.gz 874563 SHA256 96134549a10947f3f6d610b670a26f1a54e01af4be0eff09bf48c19246d33584 SHA512 c3a0ddaf1b8679df2097147ce844eb2a3e3058599aea457e463cd4e65a7601e0ce5bac5ca5e1c82afecd5edc92dae673eed3ed1787bfbd3e8ac2af5677885bb7 WHIRLPOOL bd071ac30493f5ee2e0393eb9277dfae2d2fdd6283293aee589ae41ab326b0aaef0ec9b70a421eeca4df857a0046ca7b196e0692ffdd2ea12d9a7c66a74e9a32 DIST pmacct-1.6.2.tar.gz 1311678 SHA256 e6ede7f500fb1771b5cdfb63dfa016e34c19b8aa2d2f672bd4c63016a5d6bbe2 SHA512 8495f97752ae586fd842eed49ce91db3e4753133f7d380d067e7df153abeea469e5126800074e9071cb7227a3f1df64d4642dfece624fbbfa39b4537fde38b46 WHIRLPOOL ebfa8caeaa1cf48d6b3785cb600d4459e9408e9e8e110b636d0dd0108fcd33a8660259d99469960d32aff720b5387b029891f4d6419dab88920f3bae89f0871a +DIST pmacct-1.7.0.tar.gz 1351888 SHA256 19c3795db452191c2b1b9533fecaf69c6767c9fb7b4ae60ae3f28e24eb2ee9c8 SHA512 14f1cecc562f008d9b79259f885fc3a1d0a74efa4840d6150277c9bb3c67a233ca9a6b921d9d83fd488d1eb6f535075d7fbf53de0036c48611ffcbf5eb7559b5 WHIRLPOOL d0b09160195ea53e7b83f7a70cb8a051874dd5d3ef00c27fd9becc0dcf5b72f2ce2e01d73994ca54fee14feacacb0029bbfa94a7e73c40010a21718d48e25891 diff --git a/net-analyzer/pmacct/metadata.xml b/net-analyzer/pmacct/metadata.xml index cc407997e255..178cb4633b4f 100644 --- a/net-analyzer/pmacct/metadata.xml +++ b/net-analyzer/pmacct/metadata.xml @@ -7,12 +7,14 @@ </maintainer> <use> <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="nflog">Add support for NFLOG through uacctd</flag> -<flag name="rabbitmq">Add support for RabbitMQ through <pkg>net-libs/rabbitmq-c</pkg></flag> +<flag name="geoipv2">Enable support for GeoIP2 through <pkg>dev-libs/libmaxminddb</pkg></flag> +<flag name="jansson">Enable support for JSON through <pkg>dev-libs/jansson</pkg></flag> +<flag name="kafka">Enable support for Apache Kafka through <pkg>dev-libs/librdkafka</pkg></flag> +<flag name="mongodb">Enable support for MongoDB through <pkg>dev-libs/mongo-c-driver</pkg></flag> +<flag name="ndpi">Enable support for nDPI through <pkg>net-libs/nDPI</pkg></flag> +<flag name="nflog">Enable support for NFLOG through uacctd</flag> +<flag name="rabbitmq">Enable support for RabbitMQ through <pkg>net-libs/rabbitmq-c</pkg></flag> <flag name="ulog">Enable support for ULOG in older kernels (deprecated)</flag> +<flag name="zmq">Enable support for ZeroMQ through <pkg>net-libs/zeromq</pkg></flag> </use> </pkgmetadata> diff --git a/net-analyzer/pmacct/pmacct-1.7.0.ebuild b/net-analyzer/pmacct/pmacct-1.7.0.ebuild new file mode 100644 index 000000000000..8e66372172fc --- /dev/null +++ b/net-analyzer/pmacct/pmacct-1.7.0.ebuild @@ -0,0 +1,85 @@ +# 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 ndpi nflog postgres rabbitmq sqlite threads zmq" +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 ) + ndpi? ( net-libs/nDPI ) + nflog? ( net-libs/libnetfilter_log ) + postgres? ( dev-db/postgresql:* ) + rabbitmq? ( net-libs/rabbitmq-c ) + sqlite? ( =dev-db/sqlite-3* ) + zmq? ( >=net-libs/zeromq-4.2.0:= ) +" +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 ndpi) \ + $(use_enable nflog) \ + $(use_enable postgres pgsql) \ + $(use_enable rabbitmq) \ + $(use_enable sqlite sqlite3) \ + $(use_enable threads) \ + $(use_enable zmq) \ + --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 +} |