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/, net-analyzer/pmacct/files/
Date: Thu, 02 Jan 2020 10:06:04
Message-Id: 1577959558.84ac28a74a30b86533c0bdd21a40f7cd10549000.jer@gentoo
1 commit: 84ac28a74a30b86533c0bdd21a40f7cd10549000
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 2 10:03:32 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 2 10:05:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84ac28a7
7
8 net-analyzer/pmacct: Version 1.7.4
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-analyzer/pmacct/Manifest | 1 +
14 .../pmacct/files/pmacct-1.7.4--Werror.patch | 14 +++
15 net-analyzer/pmacct/pmacct-1.7.4.ebuild | 101 +++++++++++++++++++++
16 3 files changed, 116 insertions(+)
17
18 diff --git a/net-analyzer/pmacct/Manifest b/net-analyzer/pmacct/Manifest
19 index e576e2af9f9..e2625e381fb 100644
20 --- a/net-analyzer/pmacct/Manifest
21 +++ b/net-analyzer/pmacct/Manifest
22 @@ -2,3 +2,4 @@ DIST pmacct-1.6.2.tar.gz 1311678 BLAKE2B 123629ca2e5e58bb4e684001b1c6d2d510e1845
23 DIST pmacct-1.7.1.tar.gz 1392360 BLAKE2B 75a4dda461c2fe643c24a901c19efacf325d1922bcda503a1ff41fe0b6c4178732d476b479875e9e0ba34872dbd86b8d8b2087471148f10e202f57c4a212f2fd SHA512 6a5d75522b9197b324907598ee4ba22bbda96b45e10f62df2ae507e23faac927af5468f587deab08d1e0f3f6422c609d106dcf30fa7bf16eb215bb35ea6aa08c
24 DIST pmacct-1.7.2.tar.gz 1416302 BLAKE2B 5d6f9c5849c07c7bdd3b6251b2611935ff558ca393d2cc0d21e5e681b0069b3a5bb4a985a9dc59b62b8b4ed697ecbd4cbb71f0aba42ce8d1527187b98d2e90d3 SHA512 ffdc63e96fc6af6f5d531243bc0aec0925663d8e91e83ada275f8e9a969dcf85cebd06b17ae2c796722bb209602d5b2bc487757ec736a740a8f33698d93a8675
25 DIST pmacct-1.7.3.tar.gz 1467237 BLAKE2B a2fb627df9f61f91c69a9333a968485695b45c8ebe812e11ba250185a5e93f262954290d7ee41789fb13f7f5c5ef336294be83c8d91adcd0fc3c348485e515af SHA512 09d0e6721760035112cb0c7936fe177f7858b19fa1df2c7da84822dc816413e7c6bace35fe45ad32930961183d61f9e4f3a4879747be45f47ab658a3e0f055b2
26 +DIST pmacct-1.7.4.tar.gz 1581213 BLAKE2B 3835abc91947af083932e01b828c2324f90595c973fdde9d9f4034dc7d03e12fad6bbe6e91e1462ec36963ccb41a5a740159f531d7e1929f4cd8d994b89a58a1 SHA512 780b6cc25562fb7b5a1f55b48ce9719b36c1ee0d9ee2b6db8d7f238cd5d9f204938313b13e3ff3f62c7b9b179279f18314eba38ad787ffc346a4b217da239ca1
27
28 diff --git a/net-analyzer/pmacct/files/pmacct-1.7.4--Werror.patch b/net-analyzer/pmacct/files/pmacct-1.7.4--Werror.patch
29 new file mode 100644
30 index 00000000000..e2e9685e132
31 --- /dev/null
32 +++ b/net-analyzer/pmacct/files/pmacct-1.7.4--Werror.patch
33 @@ -0,0 +1,14 @@
34 +--- a/configure.ac
35 ++++ b/configure.ac
36 +@@ -1109,9 +1109,9 @@
37 + AC_MSG_RESULT(yes)
38 + tmp_CFLAGS=`echo $CFLAGS | sed 's/O2/O0/g'`
39 + CFLAGS="$tmp_CFLAGS"
40 +- CFLAGS="$CFLAGS -g -Wall -Werror"
41 ++ CFLAGS="$CFLAGS -g -Wall"
42 + else
43 +- CFLAGS="$CFLAGS -Wall -Werror"
44 ++ CFLAGS="$CFLAGS -Wall"
45 + AC_MSG_RESULT(no)
46 + fi
47 + ],
48
49 diff --git a/net-analyzer/pmacct/pmacct-1.7.4.ebuild b/net-analyzer/pmacct/pmacct-1.7.4.ebuild
50 new file mode 100644
51 index 00000000000..159a6edac6d
52 --- /dev/null
53 +++ b/net-analyzer/pmacct/pmacct-1.7.4.ebuild
54 @@ -0,0 +1,101 @@
55 +# Copyright 1999-2020 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=7
59 +inherit autotools flag-o-matic toolchain-funcs
60 +
61 +DESCRIPTION="A network tool to gather IP traffic information"
62 +HOMEPAGE="http://www.pmacct.net/"
63 +SRC_URI="http://www.pmacct.net/${P}.tar.gz"
64 +
65 +LICENSE="GPL-2"
66 +SLOT="0"
67 +KEYWORDS="~amd64 ~x86"
68 +IUSE="
69 + 64bit +bgp-bins +bmp-bins geoip geoipv2 jansson kafka +l2 mongodb mysql
70 + ndpi nflog plabel postgres rabbitmq sqlite +st-bins +traffic-bins zmq
71 +"
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? ( dev-db/mysql-connector-c:0= )
89 + ndpi? ( >=net-libs/nDPI-2.4:= )
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 +PATCHES=(
101 + "${FILESDIR}"/${PN}-1.7.3-nDPI-3.0.patch
102 + "${FILESDIR}"/${PN}-1.7.4--Werror.patch
103 +)
104 +
105 +DOCS=(
106 + CONFIG-KEYS ChangeLog FAQS QUICKSTART UPGRADE
107 + docs/INTERNALS docs/PLUGINS docs/SIGNALS
108 +)
109 +
110 +src_prepare() {
111 + default
112 + eautoreconf
113 +}
114 +
115 +src_configure() {
116 + tc-export CC AR RANLIB
117 + append-cppflags -DMYSQL_SERVER_VERSION=99999999
118 +
119 + econf \
120 + $(use_enable 64bit) \
121 + $(use_enable bgp-bins) \
122 + $(use_enable bmp-bins) \
123 + $(use_enable geoip) \
124 + $(use_enable geoipv2) \
125 + $(use_enable jansson) \
126 + $(use_enable kafka) \
127 + $(use_enable l2) \
128 + $(use_enable plabel) \
129 + $(use_enable mongodb) \
130 + $(use_enable mysql) \
131 + $(use_enable ndpi) \
132 + $(use_enable nflog) \
133 + $(use_enable postgres pgsql) \
134 + $(use_enable rabbitmq) \
135 + $(use_enable sqlite sqlite3) \
136 + $(use_enable st-bins) \
137 + $(use_enable traffic-bins) \
138 + $(use_enable zmq) \
139 + --disable-debug
140 +}
141 +
142 +src_install() {
143 + default
144 +
145 + for dirname in examples sql telemetry; do
146 + docinto ${dirname}
147 + dodoc -r ${dirname}/*
148 + done
149 +
150 + newinitd "${FILESDIR}"/pmacctd-init.d pmacctd
151 + newconfd "${FILESDIR}"/pmacctd-conf.d pmacctd
152 +
153 + insinto /etc/pmacctd
154 + newins examples/pmacctd-imt.conf.example pmacctd.conf
155 +}