1 |
commit: 0acbc50092d0f64835ba71ebf7f798d8e3f08f7a |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 31 05:49:26 2015 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 31 05:49:50 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0acbc500 |
7 |
|
8 |
net-analyzer/pmacct: Add USE=geoipv2. |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
|
12 |
net-analyzer/pmacct/metadata.xml | 1 + |
13 |
.../pmacct/pmacct-1.5.3_pre20150925-r1.ebuild | 77 ++++++++++++++++++++++ |
14 |
2 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/pmacct/metadata.xml b/net-analyzer/pmacct/metadata.xml |
17 |
index 0ad2b40..8249714 100644 |
18 |
--- a/net-analyzer/pmacct/metadata.xml |
19 |
+++ b/net-analyzer/pmacct/metadata.xml |
20 |
@@ -3,6 +3,7 @@ |
21 |
<pkgmetadata> |
22 |
<herd>netmon</herd> |
23 |
<use> |
24 |
+<flag name='geoipv2'>Add support for GeoIP2 through <pkg>dev-libs/libmaxminddb</pkg></flag> |
25 |
<flag name='64bit'>Use 64bit counters instead of 32bit ones</flag> |
26 |
<flag name='mongodb'>Add support for mongodb backend</flag> |
27 |
<flag name='ulog'>Enable support for ULOG in older kernels (deprecated)</flag> |
28 |
|
29 |
diff --git a/net-analyzer/pmacct/pmacct-1.5.3_pre20150925-r1.ebuild b/net-analyzer/pmacct/pmacct-1.5.3_pre20150925-r1.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..e44303f |
32 |
--- /dev/null |
33 |
+++ b/net-analyzer/pmacct/pmacct-1.5.3_pre20150925-r1.ebuild |
34 |
@@ -0,0 +1,77 @@ |
35 |
+# Copyright 1999-2015 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=5 |
40 |
+inherit toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="A network tool to gather IP traffic information" |
43 |
+HOMEPAGE="http://www.pmacct.net/" |
44 |
+SRC_URI="https://dev.gentoo.org/~jer/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="64bit debug geoip geoipv2 ipv6 mongodb mysql postgres sqlite threads ulog" |
50 |
+REQUIRED_USE=" |
51 |
+ ?? ( geoip geoipv2 ) |
52 |
+" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ net-libs/libpcap |
56 |
+ geoip? ( dev-libs/geoip ) |
57 |
+ geoipv2? ( dev-libs/libmaxminddb ) |
58 |
+ mongodb? ( |
59 |
+ >=dev-libs/mongo-c-driver-0.8.1-r1 |
60 |
+ <dev-libs/mongo-c-driver-0.98 |
61 |
+ ) |
62 |
+ mysql? ( virtual/mysql ) |
63 |
+ postgres? ( dev-db/postgresql:* ) |
64 |
+ sqlite? ( =dev-db/sqlite-3* ) |
65 |
+" |
66 |
+DEPEND=" |
67 |
+ ${RDEPEND} |
68 |
+ virtual/pkgconfig |
69 |
+" |
70 |
+ |
71 |
+S="${WORKDIR}/pmacct-daily" |
72 |
+ |
73 |
+DOCS=( |
74 |
+ CONFIG-KEYS ChangeLog FAQS KNOWN-BUGS QUICKSTART README TODO TOOLS UPGRADE |
75 |
+ docs/INTERNALS docs/PLUGINS docs/SIGNALS |
76 |
+) |
77 |
+ |
78 |
+src_configure() { |
79 |
+ tc-export CC AR RANLIB |
80 |
+ |
81 |
+ econf \ |
82 |
+ $(use_enable 64bit) \ |
83 |
+ $(use_enable debug) \ |
84 |
+ $(use_enable geoip) \ |
85 |
+ $(use_enable geoipv2) \ |
86 |
+ $(use_enable ipv6) \ |
87 |
+ $(use_enable mongodb) \ |
88 |
+ $(use_enable mysql) \ |
89 |
+ $(use_enable postgres pgsql) \ |
90 |
+ $(use_enable sqlite sqlite3) \ |
91 |
+ $(use_enable threads) \ |
92 |
+ $(use_enable ulog) \ |
93 |
+ $(usex mysql "--with-mysql-includes=$(mysql_config --variable=pkgincludedir)" '') \ |
94 |
+ $(usex mysql "--with-mysql-libs=$(mysql_config --variable=pkglibdir)" '') \ |
95 |
+ --disable-debug |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ default |
100 |
+ |
101 |
+ for dirname in examples sql; do |
102 |
+ docinto ${dirname} |
103 |
+ dodoc -r ${dirname}/* |
104 |
+ done |
105 |
+ |
106 |
+ newinitd "${FILESDIR}"/pmacctd-init.d pmacctd |
107 |
+ newconfd "${FILESDIR}"/pmacctd-conf.d pmacctd |
108 |
+ |
109 |
+ insinto /etc/pmacctd |
110 |
+ newins examples/pmacctd-imt.conf.example pmacctd.conf |
111 |
+} |