1 |
commit: b6e90bec3afd6d975c2c7a4271fb56bbd3a2f629 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 29 13:36:42 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 29 13:36:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6e90bec |
7 |
|
8 |
net-analyzer/pmacct: Add live ebuild |
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/pmacct-999999.ebuild | 101 +++++++++++++++++++++++++++++++ |
14 |
1 file changed, 101 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/pmacct/pmacct-999999.ebuild b/net-analyzer/pmacct/pmacct-999999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..02039602f30 |
19 |
--- /dev/null |
20 |
+++ b/net-analyzer/pmacct/pmacct-999999.ebuild |
21 |
@@ -0,0 +1,101 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+inherit autotools flag-o-matic git-r3 toolchain-funcs |
27 |
+ |
28 |
+DESCRIPTION="A network tool to gather IP traffic information" |
29 |
+HOMEPAGE="http://www.pmacct.net/" |
30 |
+EGIT_REPO_URI="https://github.com/pmacct/pmacct/" |
31 |
+ |
32 |
+LICENSE="GPL-2" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="" |
35 |
+IUSE=" |
36 |
+ 64bit +bgp-bins +bmp-bins geoip geoipv2 jansson kafka +l2 mongodb mysql |
37 |
+ ndpi nflog plabel postgres rabbitmq sqlite +st-bins +traffic-bins zmq |
38 |
+" |
39 |
+REQUIRED_USE=" |
40 |
+ ?? ( geoip geoipv2 ) |
41 |
+ kafka? ( jansson ) |
42 |
+ rabbitmq? ( jansson ) |
43 |
+" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ net-libs/libpcap |
47 |
+ geoip? ( dev-libs/geoip ) |
48 |
+ geoipv2? ( dev-libs/libmaxminddb ) |
49 |
+ jansson? ( dev-libs/jansson ) |
50 |
+ kafka? ( dev-libs/librdkafka ) |
51 |
+ mongodb? ( |
52 |
+ >=dev-libs/mongo-c-driver-0.8.1-r1 |
53 |
+ <dev-libs/mongo-c-driver-0.98 |
54 |
+ ) |
55 |
+ mysql? ( dev-db/mysql-connector-c:0= ) |
56 |
+ ndpi? ( net-libs/nDPI:= ) |
57 |
+ nflog? ( net-libs/libnetfilter_log ) |
58 |
+ postgres? ( dev-db/postgresql:* ) |
59 |
+ rabbitmq? ( net-libs/rabbitmq-c ) |
60 |
+ sqlite? ( =dev-db/sqlite-3* ) |
61 |
+ zmq? ( >=net-libs/zeromq-4.2.0:= ) |
62 |
+" |
63 |
+DEPEND=" |
64 |
+ ${RDEPEND} |
65 |
+ virtual/pkgconfig |
66 |
+" |
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}"/${PN}-1.7.3-nDPI-3.0.patch |
69 |
+) |
70 |
+ |
71 |
+DOCS=( |
72 |
+ CONFIG-KEYS ChangeLog FAQS QUICKSTART UPGRADE |
73 |
+ docs/INTERNALS docs/PLUGINS docs/SIGNALS |
74 |
+) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ sed -i -e 's|-Werror||g' configure.ac || die |
79 |
+ eautoreconf |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ tc-export CC AR RANLIB |
84 |
+ append-cppflags -DMYSQL_SERVER_VERSION=99999999 |
85 |
+ |
86 |
+ econf \ |
87 |
+ $(use_enable 64bit) \ |
88 |
+ $(use_enable bgp-bins) \ |
89 |
+ $(use_enable bmp-bins) \ |
90 |
+ $(use_enable geoip) \ |
91 |
+ $(use_enable geoipv2) \ |
92 |
+ $(use_enable jansson) \ |
93 |
+ $(use_enable kafka) \ |
94 |
+ $(use_enable l2) \ |
95 |
+ $(use_enable plabel) \ |
96 |
+ $(use_enable mongodb) \ |
97 |
+ $(use_enable mysql) \ |
98 |
+ $(use_enable ndpi) \ |
99 |
+ $(use_enable nflog) \ |
100 |
+ $(use_enable postgres pgsql) \ |
101 |
+ $(use_enable rabbitmq) \ |
102 |
+ $(use_enable sqlite sqlite3) \ |
103 |
+ $(use_enable st-bins) \ |
104 |
+ $(use_enable traffic-bins) \ |
105 |
+ $(use_enable zmq) \ |
106 |
+ --disable-debug |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ default |
111 |
+ |
112 |
+ for dirname in examples sql telemetry; do |
113 |
+ docinto ${dirname} |
114 |
+ dodoc -r ${dirname}/* |
115 |
+ done |
116 |
+ |
117 |
+ newinitd "${FILESDIR}"/pmacctd-init.d pmacctd |
118 |
+ newconfd "${FILESDIR}"/pmacctd-conf.d pmacctd |
119 |
+ |
120 |
+ insinto /etc/pmacctd |
121 |
+ newins examples/pmacctd-imt.conf.example pmacctd.conf |
122 |
+} |