Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/pmacct/
Date: Tue, 27 Nov 2018 16:29:16
Message-Id: 1543336143.a0e87e797d9a8ae824791ae25d051a32045378b6.jer@gentoo
1 commit: a0e87e797d9a8ae824791ae25d051a32045378b6
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 27 16:27:59 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 27 16:29:03 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0e87e79
7
8 net-analyzer/pmacct: Version 1.7.2
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-analyzer/pmacct/Manifest | 1 +
14 net-analyzer/pmacct/pmacct-1.7.2.ebuild | 93 +++++++++++++++++++++++++++++++++
15 2 files changed, 94 insertions(+)
16
17 diff --git a/net-analyzer/pmacct/Manifest b/net-analyzer/pmacct/Manifest
18 index c71ffe69af3..0d5ccbdff27 100644
19 --- a/net-analyzer/pmacct/Manifest
20 +++ b/net-analyzer/pmacct/Manifest
21 @@ -1,3 +1,4 @@
22 DIST pmacct-1.6.2.tar.gz 1311678 BLAKE2B 123629ca2e5e58bb4e684001b1c6d2d510e18450eed1c6e45bbe79ec7bb37072ba9b844fe0d8826a7923d0b09cf6923ea87d4e22fb2f251e7ebb9744d1c59b93 SHA512 8495f97752ae586fd842eed49ce91db3e4753133f7d380d067e7df153abeea469e5126800074e9071cb7227a3f1df64d4642dfece624fbbfa39b4537fde38b46
23 DIST pmacct-1.7.0.tar.gz 1351888 BLAKE2B d80d996bd247a90074b79bab69d709f70df74c7d89a552d01d86e718b165bc0091c560f4c5164db0c770b952d7bfe6660ac8c3a057f5ae8f321c015b9bdc40d3 SHA512 14f1cecc562f008d9b79259f885fc3a1d0a74efa4840d6150277c9bb3c67a233ca9a6b921d9d83fd488d1eb6f535075d7fbf53de0036c48611ffcbf5eb7559b5
24 DIST pmacct-1.7.1.tar.gz 1392360 BLAKE2B 75a4dda461c2fe643c24a901c19efacf325d1922bcda503a1ff41fe0b6c4178732d476b479875e9e0ba34872dbd86b8d8b2087471148f10e202f57c4a212f2fd SHA512 6a5d75522b9197b324907598ee4ba22bbda96b45e10f62df2ae507e23faac927af5468f587deab08d1e0f3f6422c609d106dcf30fa7bf16eb215bb35ea6aa08c
25 +DIST pmacct-1.7.2.tar.gz 1416302 BLAKE2B 5d6f9c5849c07c7bdd3b6251b2611935ff558ca393d2cc0d21e5e681b0069b3a5bb4a985a9dc59b62b8b4ed697ecbd4cbb71f0aba42ce8d1527187b98d2e90d3 SHA512 ffdc63e96fc6af6f5d531243bc0aec0925663d8e91e83ada275f8e9a969dcf85cebd06b17ae2c796722bb209602d5b2bc487757ec736a740a8f33698d93a8675
26
27 diff --git a/net-analyzer/pmacct/pmacct-1.7.2.ebuild b/net-analyzer/pmacct/pmacct-1.7.2.ebuild
28 new file mode 100644
29 index 00000000000..816cc388c10
30 --- /dev/null
31 +++ b/net-analyzer/pmacct/pmacct-1.7.2.ebuild
32 @@ -0,0 +1,93 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit flag-o-matic toolchain-funcs
38 +
39 +DESCRIPTION="A network tool to gather IP traffic information"
40 +HOMEPAGE="http://www.pmacct.net/"
41 +SRC_URI="http://www.pmacct.net/${P}.tar.gz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="
47 + 64bit +bgp-bins +bmp-bins geoip geoipv2 ipv6 jansson kafka +l2 mongodb
48 + mysql ndpi nflog plabel postgres rabbitmq sqlite +st-bins +traffic-bins zmq
49 +"
50 +REQUIRED_USE="
51 + ?? ( geoip geoipv2 )
52 + kafka? ( jansson )
53 + rabbitmq? ( jansson )
54 +"
55 +
56 +RDEPEND="
57 + net-libs/libpcap
58 + geoip? ( dev-libs/geoip )
59 + geoipv2? ( dev-libs/libmaxminddb )
60 + jansson? ( dev-libs/jansson )
61 + kafka? ( dev-libs/librdkafka )
62 + mongodb? (
63 + >=dev-libs/mongo-c-driver-0.8.1-r1
64 + <dev-libs/mongo-c-driver-0.98
65 + )
66 + mysql? ( virtual/mysql )
67 + ndpi? ( net-libs/nDPI )
68 + nflog? ( net-libs/libnetfilter_log )
69 + postgres? ( dev-db/postgresql:* )
70 + rabbitmq? ( net-libs/rabbitmq-c )
71 + sqlite? ( =dev-db/sqlite-3* )
72 + zmq? ( >=net-libs/zeromq-4.2.0:= )
73 +"
74 +DEPEND="
75 + ${RDEPEND}
76 + virtual/pkgconfig
77 +"
78 +
79 +DOCS=(
80 + CONFIG-KEYS ChangeLog FAQS QUICKSTART UPGRADE
81 + docs/INTERNALS docs/PLUGINS docs/SIGNALS
82 +)
83 +
84 +src_configure() {
85 + tc-export CC AR RANLIB
86 + append-cppflags -DMYSQL_SERVER_VERSION=99999999
87 +
88 + econf \
89 + $(use_enable 64bit) \
90 + $(use_enable bgp-bins) \
91 + $(use_enable bmp-bins) \
92 + $(use_enable geoip) \
93 + $(use_enable geoipv2) \
94 + $(use_enable ipv6) \
95 + $(use_enable jansson) \
96 + $(use_enable kafka) \
97 + $(use_enable l2) \
98 + $(use_enable plabel) \
99 + $(use_enable mongodb) \
100 + $(use_enable mysql) \
101 + $(use_enable ndpi) \
102 + $(use_enable nflog) \
103 + $(use_enable postgres pgsql) \
104 + $(use_enable rabbitmq) \
105 + $(use_enable sqlite sqlite3) \
106 + $(use_enable st-bins) \
107 + $(use_enable traffic-bins) \
108 + $(use_enable zmq) \
109 + --disable-debug
110 +}
111 +
112 +src_install() {
113 + default
114 +
115 + for dirname in examples sql; do
116 + docinto ${dirname}
117 + dodoc -r ${dirname}/*
118 + done
119 +
120 + newinitd "${FILESDIR}"/pmacctd-init.d pmacctd
121 + newconfd "${FILESDIR}"/pmacctd-conf.d pmacctd
122 +
123 + insinto /etc/pmacctd
124 + newins examples/pmacctd-imt.conf.example pmacctd.conf
125 +}