1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools flag-o-matic git-r3 toolchain-funcs
7 DESCRIPTION="A network tool to gather IP traffic information"
8 HOMEPAGE="http://www.pmacct.net/"
9 EGIT_REPO_URI="https://github.com/pmacct/pmacct/"
15 +bgp-bins +bmp-bins geoip geoipv2 jansson kafka +l2 mongodb mysql
16 ndpi nflog plabel postgres rabbitmq sqlite +st-bins +traffic-bins zmq
26 geoip? ( dev-libs/geoip )
27 geoipv2? ( dev-libs/libmaxminddb )
28 jansson? ( dev-libs/jansson )
29 kafka? ( dev-libs/librdkafka )
31 >=dev-libs/mongo-c-driver-0.8.1-r1
32 <dev-libs/mongo-c-driver-0.98
34 mysql? ( dev-db/mysql-connector-c:0= )
35 ndpi? ( >=net-libs/nDPI-3.0:= )
36 nflog? ( net-libs/libnetfilter_log )
37 postgres? ( dev-db/postgresql:* )
38 rabbitmq? ( net-libs/rabbitmq-c )
39 sqlite? ( =dev-db/sqlite-3* )
40 zmq? ( >=net-libs/zeromq-4.2.0:= )
48 CONFIG-KEYS ChangeLog FAQS QUICKSTART UPGRADE
49 docs/INTERNALS docs/PLUGINS docs/SIGNALS
54 sed -i -e 's|-Werror||g' configure.ac || die
59 tc-export CC AR RANLIB
60 append-cflags -fcommon
63 $(use_enable bgp-bins) \
64 $(use_enable bmp-bins) \
66 $(use_enable geoipv2) \
67 $(use_enable jansson) \
70 $(use_enable plabel) \
71 $(use_enable mongodb) \
75 $(use_enable postgres pgsql) \
76 $(use_enable rabbitmq) \
77 $(use_enable sqlite sqlite3) \
78 $(use_enable st-bins) \
79 $(use_enable traffic-bins) \
87 for dirname in examples sql telemetry; do
92 newinitd "${FILESDIR}"/pmacctd-init.d pmacctd
93 newconfd "${FILESDIR}"/pmacctd-conf.d pmacctd
96 newins examples/pmacctd-imt.conf.example pmacctd.conf