1 |
commit: 37eb6adfc311553431857cc3f1602143bcf98f1c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 18 00:29:47 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 18 00:30:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37eb6adf |
7 |
|
8 |
net-analyzer/ntopng: drop 4.2-r1, 5.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-analyzer/ntopng/Manifest | 2 - |
13 |
.../ntopng/files/ntopng-4.0-ndpi-includes.patch | 11 -- |
14 |
.../ntopng/files/ntopng-4.2-PKG_CONFIG.patch | 125 --------------------- |
15 |
.../ntopng/files/ntopng-4.2-mysqltool.patch | 19 ---- |
16 |
net-analyzer/ntopng/files/ntopng-4.2-nogit.patch | 44 -------- |
17 |
.../ntopng/files/ntopng-4.2-parallel-make.patch | 16 --- |
18 |
net-analyzer/ntopng/ntopng-4.2-r1.ebuild | 94 ---------------- |
19 |
net-analyzer/ntopng/ntopng-5.0.ebuild | 92 --------------- |
20 |
8 files changed, 403 deletions(-) |
21 |
|
22 |
diff --git a/net-analyzer/ntopng/Manifest b/net-analyzer/ntopng/Manifest |
23 |
index c97edb42bb7e..7a0c02596f71 100644 |
24 |
--- a/net-analyzer/ntopng/Manifest |
25 |
+++ b/net-analyzer/ntopng/Manifest |
26 |
@@ -1,3 +1 @@ |
27 |
-DIST ntopng-4.2.tar.gz 57554819 BLAKE2B a9eaf7ea670dbd9c830696a4b017330e25a82307852a0a85d95ddbb4e32a3123d43eda1b686c359da1fef77e601cd3791dcdf257141e2e1d3ed7974b92edaac8 SHA512 e89ec3f35644ae8bc570d9802ecfadbf0067145e23a589df2032e8781e9c954f4166d3abb650ddafc65e4fbad656730ee1abf9c5273d3e09f8173d423436b8ff |
28 |
-DIST ntopng-5.0.tar.gz 57935381 BLAKE2B 420bda10ecc264d6baea0714367e8c475e72480ab1a114251c6712535ad1415288154623aa3ef780a5bab55bec684ddd7c0582997654f8fbb96ec08e17cb099f SHA512 e157430d9c98871d0136d2f51af6c7fed3a95fa21f8d3a9447ee69ac2aaee3752b6eddfd584715e3ee36234fd0fdcf865b761b0ec1a08727f6d988bc115d21e6 |
29 |
DIST ntopng-5.2.1.tar.gz 60280025 BLAKE2B e7885a1ec9e5d37ee06def83a83c62f41acf87d939d18c33c8d114fe0bed0c973a6146f26fd92343aa7c7e7484970c3e95c33fe76468fe382809daddeed6541b SHA512 01cdf21deac61a3b11e7d0e6b662c911123241332e812bb676cb8c5c003fe1d50a4c61231f9c327d467e89dd1345fc1bdbab5d2599fe04b04a8fe12654c01bdd |
30 |
|
31 |
diff --git a/net-analyzer/ntopng/files/ntopng-4.0-ndpi-includes.patch b/net-analyzer/ntopng/files/ntopng-4.0-ndpi-includes.patch |
32 |
deleted file mode 100644 |
33 |
index d1f61ce52abe..000000000000 |
34 |
--- a/net-analyzer/ntopng/files/ntopng-4.0-ndpi-includes.patch |
35 |
+++ /dev/null |
36 |
@@ -1,11 +0,0 @@ |
37 |
---- a/configure.seed |
38 |
-+++ b/configure.seed |
39 |
-@@ -134,7 +134,7 @@ |
40 |
- PKG_CHECK_MODULES([NDPI], [libndpi >= 2.0], [ |
41 |
- NDPI_INC=`echo $NDPI_CFLAGS | sed -e "s/[ ]*$//"` |
42 |
- # Use static libndpi library as building against the dynamic library fails |
43 |
-- NDPI_LIB="-Wl,-Bstatic $NDPI_LIBS -Wl,-Bdynamic" |
44 |
-+ NDPI_LIB="$NDPI_LIBS" |
45 |
- NDPI_LIB_DEP= |
46 |
- ], [ |
47 |
- AC_MSG_CHECKING(for nDPI source) |
48 |
|
49 |
diff --git a/net-analyzer/ntopng/files/ntopng-4.2-PKG_CONFIG.patch b/net-analyzer/ntopng/files/ntopng-4.2-PKG_CONFIG.patch |
50 |
deleted file mode 100644 |
51 |
index 8218c948b178..000000000000 |
52 |
--- a/net-analyzer/ntopng/files/ntopng-4.2-PKG_CONFIG.patch |
53 |
+++ /dev/null |
54 |
@@ -1,125 +0,0 @@ |
55 |
---- a/Makefile.in |
56 |
-+++ b/Makefile.in |
57 |
-@@ -44,9 +44,9 @@ LUA_LIB=$(LUA_HOME)/src/liblua.a |
58 |
- |
59 |
- ###### |
60 |
- LIBRRDTOOL_HOME=${PWD}/third-party/rrdtool-1.4.8 |
61 |
--HAS_LIBRRDTOOL=$(shell pkg-config --atleast-version=1.4.8 librrd && echo 0) |
62 |
-+HAS_LIBRRDTOOL=$(shell ${PKG_CONFIG} --atleast-version=1.4.8 librrd && echo 0) |
63 |
- ifeq ($(HAS_LIBRRDTOOL), 0) |
64 |
-- LIBRRDTOOL_INC = $(shell pkg-config --cflags librrd) |
65 |
-+ LIBRRDTOOL_INC = $(shell ${PKG_CONFIG} --cflags librrd) |
66 |
- LIBRRDTOOL_LIB = @LIBRRD_LD_FLAGS@ |
67 |
- else |
68 |
- LIBRRDTOOL_INC=-I$(LIBRRDTOOL_HOME)/src/ |
69 |
-@@ -74,21 +74,21 @@ SNMP_LIB=@SNMP_LIB@ |
70 |
- ###### |
71 |
- |
72 |
- ifeq (@NEDGE@, 0) |
73 |
-- HAS_SODIUM=$(shell pkg-config --exists libsodium && echo 0) |
74 |
-+ HAS_SODIUM=$(shell ${PKG_CONFIG} --exists libsodium && echo 0) |
75 |
- ifeq ($(HAS_SODIUM), 0) |
76 |
-- SODIUM_INC = $(shell pkg-config --cflags libsodium) |
77 |
-- SODIUM_LIB = $(shell pkg-config --libs libsodium) |
78 |
-+ SODIUM_INC = $(shell ${PKG_CONFIG} --cflags libsodium) |
79 |
-+ SODIUM_LIB = $(shell ${PKG_CONFIG} --libs libsodium) |
80 |
- else |
81 |
- SODIUM_INC= |
82 |
- SODIUM_LIB= |
83 |
- endif |
84 |
- |
85 |
-- HAS_ZEROMQ=$(shell pkg-config --exists libzmq && echo 0) |
86 |
-+ HAS_ZEROMQ=$(shell ${PKG_CONFIG} --exists libzmq && echo 0) |
87 |
- ifeq ($(HAS_ZEROMQ), 0) |
88 |
-- ZEROMQ_INC = $(shell pkg-config --cflags libzmq) |
89 |
-+ ZEROMQ_INC = $(shell ${PKG_CONFIG} --cflags libzmq) |
90 |
- ZMQ_STATIC=/usr/local/lib/libzmq.a |
91 |
- ifeq ($(wildcard $(ZMQ_STATIC)),) |
92 |
-- ZEROMQ_LIB = $(shell pkg-config --libs libzmq) |
93 |
-+ ZEROMQ_LIB = $(shell ${PKG_CONFIG} --libs libzmq) |
94 |
- else |
95 |
- ZEROMQ_LIB = $(ZMQ_STATIC) |
96 |
- endif |
97 |
-@@ -98,9 +98,9 @@ ifeq (@NEDGE@, 0) |
98 |
- ZEROMQ_LIB=$(ZEROMQ_HOME)/.libs/libzmq.a |
99 |
- endif |
100 |
- |
101 |
-- HAS_ZSTD=$(shell pkg-config --exists libzstd && echo 0) |
102 |
-+ HAS_ZSTD=$(shell ${PKG_CONFIG} --exists libzstd && echo 0) |
103 |
- ifeq ($(HAS_ZSTD), 0) |
104 |
-- ZSTD_LIB = $(shell pkg-config --libs libzstd) |
105 |
-+ ZSTD_LIB = $(shell ${PKG_CONFIG} --libs libzstd) |
106 |
- endif |
107 |
- endif |
108 |
- |
109 |
---- a/configure.seed |
110 |
-+++ b/configure.seed |
111 |
-@@ -190,10 +190,10 @@ if test -z "$NDPI_INC" || test -z "$NDPI_LIB" ; then : |
112 |
- fi |
113 |
- dnl finish: nDPI handling |
114 |
- |
115 |
--pkg-config --exists json-c |
116 |
-+${PKG_CONFIG} --exists json-c |
117 |
- if test "$?" -ne 1; then |
118 |
-- JSON_INC=`pkg-config --cflags json-c` |
119 |
-- JSON_LIB=`pkg-config --libs json-c` |
120 |
-+ JSON_INC=`${PKG_CONFIG} --cflags json-c` |
121 |
-+ JSON_LIB=`${PKG_CONFIG} --libs json-c` |
122 |
- else |
123 |
- echo "Please install libjson-c-dev package prerequisite" |
124 |
- exit -1 |
125 |
-@@ -211,11 +211,11 @@ dnl> JSON_LIB=$JSON_HOME/libjson-c.a |
126 |
- dnl> fi |
127 |
- dnl> fi |
128 |
- |
129 |
--pkg-config --exists libssl |
130 |
-+${PKG_CONFIG} --exists libssl |
131 |
- if test "$?" -ne 1; then |
132 |
- AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl]) |
133 |
-- SSL_INC="`pkg-config --cflags libssl` -I/usr/include/openssl" |
134 |
-- SSL_LIB="`pkg-config --libs libssl` -lssl -lcrypto" |
135 |
-+ SSL_INC="`${PKG_CONFIG} --cflags libssl` -I/usr/include/openssl" |
136 |
-+ SSL_LIB="`${PKG_CONFIG} --libs libssl` -lssl -lcrypto" |
137 |
- else |
138 |
- dnl Workaround for MacOS Brew |
139 |
- if test -d "/usr/local/opt/openssl/lib"; then |
140 |
-@@ -329,8 +329,8 @@ AC_DEFINE_UNQUOTED(PACKAGE_REVISION, "${GIT_COMMITS}", [Package Revision]) |
141 |
- AC_DEFINE_UNQUOTED(NTOPNG_GIT_RELEASE, "${GIT_BRANCH}:${GIT_RELEASE}", [GIT Release]) |
142 |
- AC_DEFINE_UNQUOTED(NTOPNG_GIT_DATE, "${GIT_DATE}", [Last GIT change]) |
143 |
- |
144 |
--if test -z `which pkg-config`; then |
145 |
-- echo "#!/bin/sh\n" > pkg-config |
146 |
-+if test -z `which ${PKG_CONFIG}`; then |
147 |
-+ echo "#!/bin/sh\n" > ${PKG_CONFIG} |
148 |
- fi |
149 |
- |
150 |
- if test -f ".git/index"; then |
151 |
-@@ -362,8 +362,8 @@ DATE=`date +"%Y-%m-%d"` |
152 |
- |
153 |
- if test -d "/usr/include/hiredis"; then |
154 |
- AC_DEFINE_UNQUOTED(HAVE_HIREDIS, 1, [Local hiredis package present]) |
155 |
-- HIREDIS_INC="`pkg-config --cflags hiredis` -I/usr/include/hiredis" |
156 |
-- HIREDIS_LIB="`pkg-config --libs hiredis` -lhiredis" |
157 |
-+ HIREDIS_INC="`${PKG_CONFIG} --cflags hiredis` -I/usr/include/hiredis" |
158 |
-+ HIREDIS_LIB="`${PKG_CONFIG} --libs hiredis` -lhiredis" |
159 |
- else |
160 |
- HIREDIS_INC="-I ${PWD}/third-party/hiredis" |
161 |
- fi |
162 |
-@@ -490,7 +490,7 @@ if test x$UGLIFYJS != x; then |
163 |
- UGLIFYJS_MAJOR_VERSION="${UGLIFYJS_VERSION%%.*}" |
164 |
- fi |
165 |
- |
166 |
--AC_CHECK_LIB([rrd_th], [rrd_update_r], [LIBRRD_LD_FLAGS=-lrrd_th], [LIBRRD_LD_FLAGS=`pkg-config --libs librrd`]) |
167 |
-+AC_CHECK_LIB([rrd_th], [rrd_update_r], [LIBRRD_LD_FLAGS=-lrrd_th], [LIBRRD_LD_FLAGS=`${PKG_CONFIG} --libs librrd`]) |
168 |
- |
169 |
- AC_CHECK_LIB([nl], [nl_handle_alloc], [LDFLAGS="${LDFLAGS} -lnl"]) |
170 |
- AC_CHECK_LIB([rt], [clock_gettime], [LDFLAGS="${LDFLAGS} -lrt"]) |
171 |
-@@ -509,7 +509,7 @@ else |
172 |
- dnl> https://github.com/curl/curl/blob/curl-7_20_0/TODO-RELEASE |
173 |
- |
174 |
- AC_MSG_CHECKING(for curl SMTP support) |
175 |
-- if `pkg-config --atleast-version="7.20.0" libcurl` ; then |
176 |
-+ if `${PKG_CONFIG} --atleast-version="7.20.0" libcurl` ; then |
177 |
- AC_DEFINE_UNQUOTED(HAVE_CURL_SMTP, 1, [curl supports SMTP]) |
178 |
- AC_MSG_RESULT(yes) |
179 |
- else |
180 |
|
181 |
diff --git a/net-analyzer/ntopng/files/ntopng-4.2-mysqltool.patch b/net-analyzer/ntopng/files/ntopng-4.2-mysqltool.patch |
182 |
deleted file mode 100644 |
183 |
index a961bc28902f..000000000000 |
184 |
--- a/net-analyzer/ntopng/files/ntopng-4.2-mysqltool.patch |
185 |
+++ /dev/null |
186 |
@@ -1,19 +0,0 @@ |
187 |
-diff --git a/configure.seed b/configure.seed |
188 |
-index a321f9b..9f0f1cc 100644 |
189 |
---- a/configure.seed |
190 |
-+++ b/configure.seed |
191 |
-@@ -596,13 +596,7 @@ if test "${with_nedge+set}" != set; then |
192 |
- if test "x$ac_cv_prog_ac_ct_MARIADB" = "xmariadb_config"; then |
193 |
- MYSQLTOOL="mariadb_config" |
194 |
- else |
195 |
-- PATH=$PATH:/usr/local/mysql/bin |
196 |
-- AC_CHECK_TOOL(MYSQL, mysql_config) |
197 |
-- if test "x$ac_cv_prog_ac_ct_MYSQL" = "xmysql_config"; then |
198 |
-- MYSQLTOOL="mysql_config" |
199 |
-- else |
200 |
-- MYSQLTOOL="" |
201 |
-- fi |
202 |
-+ MYSQLTOOL="mysql_config" |
203 |
- fi |
204 |
- |
205 |
- if test -n "$MYSQLTOOL"; then |
206 |
|
207 |
diff --git a/net-analyzer/ntopng/files/ntopng-4.2-nogit.patch b/net-analyzer/ntopng/files/ntopng-4.2-nogit.patch |
208 |
deleted file mode 100644 |
209 |
index 17b68f0918fb..000000000000 |
210 |
--- a/net-analyzer/ntopng/files/ntopng-4.2-nogit.patch |
211 |
+++ /dev/null |
212 |
@@ -1,44 +0,0 @@ |
213 |
-diff --git a/Makefile.in b/Makefile.in |
214 |
-index 38209c7..6945ce7 100755 |
215 |
---- a/Makefile.in |
216 |
-+++ b/Makefile.in |
217 |
-@@ -171,7 +171,6 @@ $(LIBRRDTOOL_LIB): |
218 |
- cd $(LIBRRDTOOL_HOME); ./configure --disable-libdbi --disable-libwrap --disable-rrdcgi --disable-libtool-lock --disable-nls --disable-rpath --disable-perl --disable-ruby --disable-lua --disable-tcl --disable-python --disable-dependency-tracking --disable-rrd_graph ; cd src; @GMAKE@ librrd_th.la |
219 |
- |
220 |
- hooks/.enabled: |
221 |
-- git config core.hooksPath hooks || true |
222 |
- touch hooks/.enabled |
223 |
- |
224 |
- clean: |
225 |
-diff --git a/configure.seed b/configure.seed |
226 |
-index 7e2eced..dd3257d 100644 |
227 |
---- a/configure.seed |
228 |
-+++ b/configure.seed |
229 |
-@@ -77,7 +77,6 @@ fi |
230 |
- # On CentOS 6 `git rev-list HEAD --count` does not work |
231 |
- # |
232 |
- # |
233 |
--REVISION=`git log --pretty=oneline | wc -l` |
234 |
- |
235 |
- if test -d "/usr/local/include"; then |
236 |
- CFLAGS="${CFLAGS} -I/usr/local/include" |
237 |
-@@ -323,7 +322,6 @@ else |
238 |
- AC_MSG_RESULT(not found) |
239 |
- fi |
240 |
- |
241 |
--GIT_COMMITS=`git rev-list --all |wc -l | tr -d '[[:space:]]'` |
242 |
- AC_DEFINE_UNQUOTED(PACKAGE_REVISION, "${GIT_COMMITS}", [Package Revision]) |
243 |
- |
244 |
- AC_DEFINE_UNQUOTED(NTOPNG_GIT_RELEASE, "${GIT_BRANCH}:${GIT_RELEASE}", [GIT Release]) |
245 |
-@@ -671,11 +669,6 @@ AC_DEFINE_UNQUOTED(_CRT_SECURE_NO_WARNINGS, 1, [Disable warning on windows]) |
246 |
- |
247 |
- GMAKE='$(MAKE)' |
248 |
- |
249 |
--GIT=`which git` |
250 |
--if test x$GIT = x; then |
251 |
-- AC_MSG_RESULT(FATAL ERROR: git is not installed on your host) |
252 |
--fi |
253 |
-- |
254 |
- WGET=`which wget` |
255 |
- if test x$WGET = x; then |
256 |
- AC_MSG_RESULT(ERROR. wget is not installed on your host: you cannot download GeoIP data) |
257 |
|
258 |
diff --git a/net-analyzer/ntopng/files/ntopng-4.2-parallel-make.patch b/net-analyzer/ntopng/files/ntopng-4.2-parallel-make.patch |
259 |
deleted file mode 100644 |
260 |
index b3086284a5a9..000000000000 |
261 |
--- a/net-analyzer/ntopng/files/ntopng-4.2-parallel-make.patch |
262 |
+++ /dev/null |
263 |
@@ -1,16 +0,0 @@ |
264 |
-diff --git a/configure.seed b/configure.seed |
265 |
-index a321f9b..d27d35d 100644 |
266 |
---- a/configure.seed |
267 |
-+++ b/configure.seed |
268 |
-@@ -675,10 +675,7 @@ fi |
269 |
- |
270 |
- AC_DEFINE_UNQUOTED(_CRT_SECURE_NO_WARNINGS, 1, [Disable warning on windows]) |
271 |
- |
272 |
--GMAKE=`which gmake` |
273 |
--if test x$GMAKE = x; then |
274 |
-- GMAKE="make" |
275 |
--fi |
276 |
-+GMAKE='$(MAKE)' |
277 |
- |
278 |
- GIT=`which git` |
279 |
- if test x$GIT = x; then |
280 |
|
281 |
diff --git a/net-analyzer/ntopng/ntopng-4.2-r1.ebuild b/net-analyzer/ntopng/ntopng-4.2-r1.ebuild |
282 |
deleted file mode 100644 |
283 |
index 539835c3e078..000000000000 |
284 |
--- a/net-analyzer/ntopng/ntopng-4.2-r1.ebuild |
285 |
+++ /dev/null |
286 |
@@ -1,94 +0,0 @@ |
287 |
-# Copyright 1999-2021 Gentoo Authors |
288 |
-# Distributed under the terms of the GNU General Public License v2 |
289 |
- |
290 |
-EAPI=7 |
291 |
- |
292 |
-inherit autotools toolchain-funcs |
293 |
- |
294 |
-DESCRIPTION="Network traffic analyzer with web interface" |
295 |
-HOMEPAGE="https://www.ntop.org/" |
296 |
-SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
297 |
- |
298 |
-LICENSE="GPL-3" |
299 |
-SLOT="0" |
300 |
-KEYWORDS="~amd64 ~x86" |
301 |
- |
302 |
-DEPEND="dev-db/mysql-connector-c:= |
303 |
- dev-db/sqlite:3 |
304 |
- dev-libs/hiredis:= |
305 |
- dev-libs/json-c:= |
306 |
- dev-libs/libmaxminddb |
307 |
- dev-libs/libsodium:= |
308 |
- dev-libs/openssl:= |
309 |
- net-analyzer/rrdtool |
310 |
- net-libs/libpcap |
311 |
- >=net-libs/nDPI-3.0:= |
312 |
- >=net-libs/zeromq-3:= |
313 |
- net-misc/curl |
314 |
- sys-libs/libcap |
315 |
- sys-libs/zlib" |
316 |
-RDEPEND="${DEPEND} |
317 |
- acct-user/ntopng |
318 |
- acct-group/ntopng |
319 |
- dev-db/redis" |
320 |
-BDEPEND="virtual/pkgconfig" |
321 |
- |
322 |
-PATCHES=( |
323 |
- "${FILESDIR}/${PN}-4.2-mysqltool.patch" |
324 |
- "${FILESDIR}/${PN}-4.2-parallel-make.patch" |
325 |
- "${FILESDIR}/${PN}-4.0-ndpi-includes.patch" |
326 |
- "${FILESDIR}/${PN}-4.2-PKG_CONFIG.patch" |
327 |
- "${FILESDIR}/${PN}-4.2-nogit.patch" |
328 |
-) |
329 |
- |
330 |
-src_prepare() { |
331 |
- default |
332 |
- |
333 |
- # Follows upstream's autogen.sh |
334 |
- sed \ |
335 |
- -e "s/@VERSION@/${PV}.$(date +%y%m%d)/g" \ |
336 |
- -e "s/@SHORT_VERSION@/${PV}/g" \ |
337 |
- -e "s/@GIT_DATE@/$(date)/g" \ |
338 |
- -e "s/@GIT_RELEASE@/${PV}.$(date +%y%m%d)/g" \ |
339 |
- -e "s/@GIT_BRANCH@//g" < "${S}/configure.seed" \ |
340 |
- > "${S}/configure.ac" || die |
341 |
- |
342 |
- eautoreconf |
343 |
-} |
344 |
- |
345 |
-src_configure() { |
346 |
- tc-export PKG_CONFIG |
347 |
- default |
348 |
-} |
349 |
- |
350 |
-src_compile() { |
351 |
- emake \ |
352 |
- CC="$(tc-getCC)" \ |
353 |
- MYCFLAGS="${CFLAGS}" \ |
354 |
- MYLDFLAGS="${LDFLAGS}" |
355 |
-} |
356 |
- |
357 |
-src_install() { |
358 |
- SHARE_NTOPNG_DIR="${EPREFIX}/usr/share/${PN}" |
359 |
- insinto "${SHARE_NTOPNG_DIR}" |
360 |
- doins -r httpdocs |
361 |
- doins -r scripts |
362 |
- |
363 |
- insinto "${SHARE_NTOPNG_DIR}/third-party" |
364 |
- doins -r third-party/i18n.lua-master |
365 |
- doins -r third-party/lua-resty-template-master |
366 |
- |
367 |
- exeinto /usr/bin |
368 |
- doexe "${PN}" |
369 |
- doman "${PN}.8" |
370 |
- |
371 |
- newinitd "${FILESDIR}"/ntopng.init.d ntopng |
372 |
- newconfd "${FILESDIR}"/ntopng.conf.d ntopng |
373 |
- |
374 |
- keepdir /var/lib/ntopng |
375 |
- fowners ntopng /var/lib/ntopng |
376 |
-} |
377 |
- |
378 |
-pkg_postinst() { |
379 |
- elog "ntopng default credentials are user='admin' password='admin'" |
380 |
-} |
381 |
|
382 |
diff --git a/net-analyzer/ntopng/ntopng-5.0.ebuild b/net-analyzer/ntopng/ntopng-5.0.ebuild |
383 |
deleted file mode 100644 |
384 |
index e879c8456307..000000000000 |
385 |
--- a/net-analyzer/ntopng/ntopng-5.0.ebuild |
386 |
+++ /dev/null |
387 |
@@ -1,92 +0,0 @@ |
388 |
-# Copyright 1999-2022 Gentoo Authors |
389 |
-# Distributed under the terms of the GNU General Public License v2 |
390 |
- |
391 |
-EAPI=8 |
392 |
- |
393 |
-inherit autotools toolchain-funcs |
394 |
- |
395 |
-DESCRIPTION="Network traffic analyzer with web interface" |
396 |
-HOMEPAGE="https://www.ntop.org/" |
397 |
-SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
398 |
- |
399 |
-LICENSE="GPL-3" |
400 |
-SLOT="0" |
401 |
-KEYWORDS="~amd64 ~x86" |
402 |
- |
403 |
-DEPEND="dev-db/mysql-connector-c:= |
404 |
- dev-db/sqlite:3 |
405 |
- dev-libs/hiredis:= |
406 |
- dev-libs/json-c:= |
407 |
- dev-libs/libmaxminddb |
408 |
- dev-libs/libsodium:= |
409 |
- dev-libs/openssl:= |
410 |
- net-analyzer/rrdtool |
411 |
- net-libs/libpcap |
412 |
- >=net-libs/nDPI-3.0:= |
413 |
- >=net-libs/zeromq-3:= |
414 |
- net-misc/curl |
415 |
- sys-libs/libcap |
416 |
- sys-libs/zlib" |
417 |
-RDEPEND="${DEPEND} |
418 |
- acct-user/ntopng |
419 |
- acct-group/ntopng |
420 |
- dev-db/redis" |
421 |
-BDEPEND="virtual/pkgconfig" |
422 |
- |
423 |
-PATCHES=( |
424 |
- "${FILESDIR}"/${PN}-4.2-mysqltool.patch |
425 |
- "${FILESDIR}"/${PN}-4.2-parallel-make.patch |
426 |
- "${FILESDIR}"/${PN}-4.0-ndpi-includes.patch |
427 |
-) |
428 |
- |
429 |
-src_prepare() { |
430 |
- default |
431 |
- |
432 |
- # Follows upstream's autogen.sh |
433 |
- sed \ |
434 |
- -e "s/@VERSION@/${PV}.$(date +%y%m%d)/g" \ |
435 |
- -e "s/@SHORT_VERSION@/${PV}/g" \ |
436 |
- -e "s/@GIT_DATE@/$(date)/g" \ |
437 |
- -e "s/@GIT_RELEASE@/${PV}.$(date +%y%m%d)/g" \ |
438 |
- -e "s/@GIT_BRANCH@//g" < "${S}/configure.seed" \ |
439 |
- > "${S}/configure.ac" || die |
440 |
- |
441 |
- eautoreconf |
442 |
-} |
443 |
- |
444 |
-src_configure() { |
445 |
- tc-export PKG_CONFIG |
446 |
- default |
447 |
-} |
448 |
- |
449 |
-src_compile() { |
450 |
- emake \ |
451 |
- CC="$(tc-getCC)" \ |
452 |
- MYCFLAGS="${CFLAGS}" \ |
453 |
- MYLDFLAGS="${LDFLAGS}" |
454 |
-} |
455 |
- |
456 |
-src_install() { |
457 |
- SHARE_NTOPNG_DIR="${EPREFIX}/usr/share/${PN}" |
458 |
- insinto "${SHARE_NTOPNG_DIR}" |
459 |
- doins -r httpdocs |
460 |
- doins -r scripts |
461 |
- |
462 |
- insinto "${SHARE_NTOPNG_DIR}/third-party" |
463 |
- doins -r third-party/i18n.lua-master |
464 |
- doins -r third-party/lua-resty-template-master |
465 |
- |
466 |
- exeinto /usr/bin |
467 |
- doexe "${PN}" |
468 |
- doman "${PN}.8" |
469 |
- |
470 |
- newinitd "${FILESDIR}"/ntopng.init.d ntopng |
471 |
- newconfd "${FILESDIR}"/ntopng.conf.d ntopng |
472 |
- |
473 |
- keepdir /var/lib/ntopng |
474 |
- fowners ntopng /var/lib/ntopng |
475 |
-} |
476 |
- |
477 |
-pkg_postinst() { |
478 |
- elog "ntopng default credentials are user='admin' password='admin'" |
479 |
-} |