1 |
commit: 429730806270b0b1910ab36b452f19e35d8b5af8 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 22 17:13:25 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 22 17:15:37 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42973080 |
7 |
|
8 |
net-analyzer/pmacct: Version bump. |
9 |
|
10 |
Package-Manager: Portage-2.3.12, Repoman-2.3.3 |
11 |
|
12 |
net-analyzer/pmacct/Manifest | 1 + |
13 |
net-analyzer/pmacct/metadata.xml | 14 +++--- |
14 |
net-analyzer/pmacct/pmacct-1.7.0.ebuild | 85 +++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 94 insertions(+), 6 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/pmacct/Manifest b/net-analyzer/pmacct/Manifest |
18 |
index 20a37360b1b..d2f4a458701 100644 |
19 |
--- a/net-analyzer/pmacct/Manifest |
20 |
+++ b/net-analyzer/pmacct/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST pmacct-1.5.1.tar.gz 874563 SHA256 96134549a10947f3f6d610b670a26f1a54e01af4be0eff09bf48c19246d33584 SHA512 c3a0ddaf1b8679df2097147ce844eb2a3e3058599aea457e463cd4e65a7601e0ce5bac5ca5e1c82afecd5edc92dae673eed3ed1787bfbd3e8ac2af5677885bb7 WHIRLPOOL bd071ac30493f5ee2e0393eb9277dfae2d2fdd6283293aee589ae41ab326b0aaef0ec9b70a421eeca4df857a0046ca7b196e0692ffdd2ea12d9a7c66a74e9a32 |
23 |
DIST pmacct-1.6.2.tar.gz 1311678 SHA256 e6ede7f500fb1771b5cdfb63dfa016e34c19b8aa2d2f672bd4c63016a5d6bbe2 SHA512 8495f97752ae586fd842eed49ce91db3e4753133f7d380d067e7df153abeea469e5126800074e9071cb7227a3f1df64d4642dfece624fbbfa39b4537fde38b46 WHIRLPOOL ebfa8caeaa1cf48d6b3785cb600d4459e9408e9e8e110b636d0dd0108fcd33a8660259d99469960d32aff720b5387b029891f4d6419dab88920f3bae89f0871a |
24 |
+DIST pmacct-1.7.0.tar.gz 1351888 SHA256 19c3795db452191c2b1b9533fecaf69c6767c9fb7b4ae60ae3f28e24eb2ee9c8 SHA512 14f1cecc562f008d9b79259f885fc3a1d0a74efa4840d6150277c9bb3c67a233ca9a6b921d9d83fd488d1eb6f535075d7fbf53de0036c48611ffcbf5eb7559b5 WHIRLPOOL d0b09160195ea53e7b83f7a70cb8a051874dd5d3ef00c27fd9becc0dcf5b72f2ce2e01d73994ca54fee14feacacb0029bbfa94a7e73c40010a21718d48e25891 |
25 |
|
26 |
diff --git a/net-analyzer/pmacct/metadata.xml b/net-analyzer/pmacct/metadata.xml |
27 |
index cc407997e25..178cb4633b4 100644 |
28 |
--- a/net-analyzer/pmacct/metadata.xml |
29 |
+++ b/net-analyzer/pmacct/metadata.xml |
30 |
@@ -7,12 +7,14 @@ |
31 |
</maintainer> |
32 |
<use> |
33 |
<flag name="64bit">Use 64bit counters instead of 32bit ones</flag> |
34 |
-<flag name="geoipv2">Add support for GeoIP2 through <pkg>dev-libs/libmaxminddb</pkg></flag> |
35 |
-<flag name="jansson">Add support for JSON through <pkg>dev-libs/jansson</pkg></flag> |
36 |
-<flag name="kafka">Add support for Apache Kafka through <pkg>dev-libs/librdkafka</pkg></flag> |
37 |
-<flag name="mongodb">Add support for mongodb backend</flag> |
38 |
-<flag name="nflog">Add support for NFLOG through uacctd</flag> |
39 |
-<flag name="rabbitmq">Add support for RabbitMQ through <pkg>net-libs/rabbitmq-c</pkg></flag> |
40 |
+<flag name="geoipv2">Enable support for GeoIP2 through <pkg>dev-libs/libmaxminddb</pkg></flag> |
41 |
+<flag name="jansson">Enable support for JSON through <pkg>dev-libs/jansson</pkg></flag> |
42 |
+<flag name="kafka">Enable support for Apache Kafka through <pkg>dev-libs/librdkafka</pkg></flag> |
43 |
+<flag name="mongodb">Enable support for MongoDB through <pkg>dev-libs/mongo-c-driver</pkg></flag> |
44 |
+<flag name="ndpi">Enable support for nDPI through <pkg>net-libs/nDPI</pkg></flag> |
45 |
+<flag name="nflog">Enable support for NFLOG through uacctd</flag> |
46 |
+<flag name="rabbitmq">Enable support for RabbitMQ through <pkg>net-libs/rabbitmq-c</pkg></flag> |
47 |
<flag name="ulog">Enable support for ULOG in older kernels (deprecated)</flag> |
48 |
+<flag name="zmq">Enable support for ZeroMQ through <pkg>net-libs/zeromq</pkg></flag> |
49 |
</use> |
50 |
</pkgmetadata> |
51 |
|
52 |
diff --git a/net-analyzer/pmacct/pmacct-1.7.0.ebuild b/net-analyzer/pmacct/pmacct-1.7.0.ebuild |
53 |
new file mode 100644 |
54 |
index 00000000000..8e66372172f |
55 |
--- /dev/null |
56 |
+++ b/net-analyzer/pmacct/pmacct-1.7.0.ebuild |
57 |
@@ -0,0 +1,85 @@ |
58 |
+# Copyright 1999-2017 Gentoo Foundation |
59 |
+# Distributed under the terms of the GNU General Public License v2 |
60 |
+ |
61 |
+EAPI=6 |
62 |
+inherit toolchain-funcs |
63 |
+ |
64 |
+DESCRIPTION="A network tool to gather IP traffic information" |
65 |
+HOMEPAGE="http://www.pmacct.net/" |
66 |
+SRC_URI="http://www.pmacct.net/${P}.tar.gz" |
67 |
+ |
68 |
+LICENSE="GPL-2" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64 ~x86" |
71 |
+IUSE="64bit debug geoip geoipv2 ipv6 jansson kafka mongodb mysql ndpi nflog postgres rabbitmq sqlite threads zmq" |
72 |
+REQUIRED_USE=" |
73 |
+ ?? ( geoip geoipv2 ) |
74 |
+ kafka? ( jansson ) |
75 |
+ rabbitmq? ( jansson ) |
76 |
+" |
77 |
+ |
78 |
+RDEPEND=" |
79 |
+ net-libs/libpcap |
80 |
+ geoip? ( dev-libs/geoip ) |
81 |
+ geoipv2? ( dev-libs/libmaxminddb ) |
82 |
+ jansson? ( dev-libs/jansson ) |
83 |
+ kafka? ( dev-libs/librdkafka ) |
84 |
+ mongodb? ( |
85 |
+ >=dev-libs/mongo-c-driver-0.8.1-r1 |
86 |
+ <dev-libs/mongo-c-driver-0.98 |
87 |
+ ) |
88 |
+ mysql? ( virtual/mysql ) |
89 |
+ ndpi? ( net-libs/nDPI ) |
90 |
+ nflog? ( net-libs/libnetfilter_log ) |
91 |
+ postgres? ( dev-db/postgresql:* ) |
92 |
+ rabbitmq? ( net-libs/rabbitmq-c ) |
93 |
+ sqlite? ( =dev-db/sqlite-3* ) |
94 |
+ zmq? ( >=net-libs/zeromq-4.2.0:= ) |
95 |
+" |
96 |
+DEPEND=" |
97 |
+ ${RDEPEND} |
98 |
+ virtual/pkgconfig |
99 |
+" |
100 |
+ |
101 |
+DOCS=( |
102 |
+ CONFIG-KEYS ChangeLog FAQS QUICKSTART TOOLS UPGRADE |
103 |
+ docs/INTERNALS docs/PLUGINS docs/SIGNALS |
104 |
+) |
105 |
+ |
106 |
+src_configure() { |
107 |
+ tc-export CC AR RANLIB |
108 |
+ |
109 |
+ econf \ |
110 |
+ $(use_enable 64bit) \ |
111 |
+ $(use_enable debug) \ |
112 |
+ $(use_enable geoip) \ |
113 |
+ $(use_enable geoipv2) \ |
114 |
+ $(use_enable ipv6) \ |
115 |
+ $(use_enable jansson) \ |
116 |
+ $(use_enable kafka) \ |
117 |
+ $(use_enable mongodb) \ |
118 |
+ $(use_enable mysql) \ |
119 |
+ $(use_enable ndpi) \ |
120 |
+ $(use_enable nflog) \ |
121 |
+ $(use_enable postgres pgsql) \ |
122 |
+ $(use_enable rabbitmq) \ |
123 |
+ $(use_enable sqlite sqlite3) \ |
124 |
+ $(use_enable threads) \ |
125 |
+ $(use_enable zmq) \ |
126 |
+ --disable-debug |
127 |
+} |
128 |
+ |
129 |
+src_install() { |
130 |
+ default |
131 |
+ |
132 |
+ for dirname in examples sql; do |
133 |
+ docinto ${dirname} |
134 |
+ dodoc -r ${dirname}/* |
135 |
+ done |
136 |
+ |
137 |
+ newinitd "${FILESDIR}"/pmacctd-init.d pmacctd |
138 |
+ newconfd "${FILESDIR}"/pmacctd-conf.d pmacctd |
139 |
+ |
140 |
+ insinto /etc/pmacctd |
141 |
+ newins examples/pmacctd-imt.conf.example pmacctd.conf |
142 |
+} |