1 |
commit: eca4bb921bc687293a9568c8c92400252caac86a |
2 |
Author: Slawomir Lis <slis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 19 11:57:29 2017 +0000 |
4 |
Commit: Slawek Lis <slis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 19 11:58:54 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eca4bb92 |
7 |
|
8 |
net-analyzer/ntopng: version bump to 3.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
net-analyzer/ntopng/Manifest | 1 + |
13 |
net-analyzer/ntopng/files/ntopng.init.d | 3 +- |
14 |
net-analyzer/ntopng/ntopng-3.0.ebuild | 87 +++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 90 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/net-analyzer/ntopng/Manifest b/net-analyzer/ntopng/Manifest |
18 |
index e529401e453..2d28aa2bc7a 100644 |
19 |
--- a/net-analyzer/ntopng/Manifest |
20 |
+++ b/net-analyzer/ntopng/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST ntopng-2.4.tar.gz 134074662 SHA256 f44e2faf3cb712d75106fc9c594139fbfd437edf4a7e6e9ed65134e1f47ad355 SHA512 515dd7889ae3aaf2482371bb2c55ab7300cf4207fe07f37029b7529bfb710379c19a54f58cf6df87e42454c0c99d15291af334adff676252301d9edd0acf3c7a WHIRLPOOL ba5d9fce207d1a89e5c8b35705b0aaeb66235153b91eaf7a84b1c50bcb4b897f992c81aa7fd316ad2d87458cdfdcd4d63de37d0a00375706a036f491ba448c7b |
23 |
+DIST ntopng-3.0.tar.gz 23017655 SHA256 3780f1e71bc7aa404f40ea9b805d195943cdb5095d712f41669eae138d388ad5 SHA512 d5e310d5dba7fe696d38d9d8251ffa4077182200e41c3f0b6034e68cf6623220ec47ba9d9fd5d2392a7b65a6de770e330821169c7ec06b4952f68c3f5f738eb1 WHIRLPOOL 21351cd8e658826ac3bfe91e6817d4daef609f86655a2c645afcdc1eb3ec24ef3c92c99574363b2d15706abf9a7277489453fc8a2a4ff3ec625284a458ff643a |
24 |
|
25 |
diff --git a/net-analyzer/ntopng/files/ntopng.init.d b/net-analyzer/ntopng/files/ntopng.init.d |
26 |
index ffec852cb7e..a5984b18eba 100644 |
27 |
--- a/net-analyzer/ntopng/files/ntopng.init.d |
28 |
+++ b/net-analyzer/ntopng/files/ntopng.init.d |
29 |
@@ -1,6 +1,7 @@ |
30 |
#!/sbin/openrc-run |
31 |
-# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Header: $ |
35 |
|
36 |
depend() { |
37 |
need net redis |
38 |
|
39 |
diff --git a/net-analyzer/ntopng/ntopng-3.0.ebuild b/net-analyzer/ntopng/ntopng-3.0.ebuild |
40 |
new file mode 100644 |
41 |
index 00000000000..b4b23cb72ad |
42 |
--- /dev/null |
43 |
+++ b/net-analyzer/ntopng/ntopng-3.0.ebuild |
44 |
@@ -0,0 +1,87 @@ |
45 |
+# Copyright 1999-2017 Gentoo Foundation |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+ |
48 |
+EAPI=5 |
49 |
+inherit autotools eutils user toolchain-funcs |
50 |
+ |
51 |
+DESCRIPTION="Network traffic analyzer with web interface" |
52 |
+HOMEPAGE="http://www.ntop.org/" |
53 |
+SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
54 |
+ |
55 |
+LICENSE="GPL-3" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~x86" |
58 |
+IUSE="" |
59 |
+ |
60 |
+DEPEND="dev-db/sqlite:3 |
61 |
+ dev-python/pyzmq |
62 |
+ dev-lang/luajit:2 |
63 |
+ dev-libs/json-c |
64 |
+ dev-libs/geoip |
65 |
+ dev-libs/glib:2 |
66 |
+ dev-libs/hiredis |
67 |
+ dev-libs/libxml2 |
68 |
+ net-analyzer/rrdtool |
69 |
+ net-libs/libpcap |
70 |
+ net-libs/nDPI |
71 |
+ net-misc/curl |
72 |
+ virtual/libmysqlclient" |
73 |
+RDEPEND="${DEPEND} |
74 |
+ dev-db/redis" |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ cat "${S}/configure.seed" | sed "s/@VERSION@/${PV}/g" | sed "s/@SHORT_VERSION@/${PV}/g" > "${S}/configure.ac" |
79 |
+ epatch "${FILESDIR}/configure-${PV}.patch" |
80 |
+ epatch "${FILESDIR}/${P}-mysqltool.patch" |
81 |
+# epatch "${FILESDIR}/${P}-dont-build-ndpi.patch" |
82 |
+# epatch "${FILESDIR}/${P}-mysqltool.patch" |
83 |
+# epatch "${FILESDIR}/${P}-cxx.patch" |
84 |
+# sed -i 's/exit$/exit 1/g' "${S}/configure.ac" "${S}/nDPI/configure.ac" |
85 |
+ eautoreconf |
86 |
+ |
87 |
+# cd "${S}/nDPI" |
88 |
+# eautoreconf |
89 |
+} |
90 |
+ |
91 |
+# src_configure() { |
92 |
+# tc-export CC CXX LD NM OBJDUMP PKG_CONFIG |
93 |
+# cd "${S}/nDPI" |
94 |
+# econf |
95 |
+# cd "${S}" |
96 |
+# econf |
97 |
+# } |
98 |
+# |
99 |
+# src_compile() { |
100 |
+# cd "${S}/nDPI" |
101 |
+# emake |
102 |
+# |
103 |
+# cd "${S}" |
104 |
+# emake |
105 |
+# } |
106 |
+ |
107 |
+src_install() { |
108 |
+ SHARE_NTOPNG_DIR="${EPREFIX}/usr/share/${PN}" |
109 |
+ dodir ${SHARE_NTOPNG_DIR} |
110 |
+ insinto ${SHARE_NTOPNG_DIR} |
111 |
+ doins -r httpdocs |
112 |
+ doins -r scripts |
113 |
+ |
114 |
+ exeinto /usr/bin |
115 |
+ doexe ${PN} |
116 |
+ doman ${PN}.8 |
117 |
+ |
118 |
+ newinitd "${FILESDIR}/ntopng.init.d" ntopng |
119 |
+ newconfd "${FILESDIR}/ntopng.conf.d" ntopng |
120 |
+ |
121 |
+ dodir "/var/lib/ntopng" |
122 |
+ fowners ntopng "${EPREFIX}/var/lib/ntopng" |
123 |
+} |
124 |
+ |
125 |
+pkg_setup() { |
126 |
+ enewuser ntopng |
127 |
+} |
128 |
+ |
129 |
+pkg_postinst() { |
130 |
+ elog "ntopng default creadential are user='admin' password='admin'" |
131 |
+} |