Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/ntopng/files/, net-analyzer/ntopng/
Date: Sun, 27 Dec 2020 00:25:38
Message-Id: 1609028726.d35b20af0e1326b05b0ea2e30f0b91934c01fa90.marecki@gentoo
1 commit: d35b20af0e1326b05b0ea2e30f0b91934c01fa90
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 27 00:24:38 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 27 00:25:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d35b20af
7
8 net-analyzer/ntopng: remove 3.8-r1
9
10 The oldest of the three versions currently in the tree and the only one
11 to actually depend on Lua.
12
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 .../ntopng/files/ntopng-3.8-missing-min.patch | 19 ------
16 .../ntopng/files/ntopng-3.8-ndpi-call.patch | 12 ----
17 net-analyzer/ntopng/ntopng-3.8-r1.ebuild | 76 ----------------------
18 3 files changed, 107 deletions(-)
19
20 diff --git a/net-analyzer/ntopng/files/ntopng-3.8-missing-min.patch b/net-analyzer/ntopng/files/ntopng-3.8-missing-min.patch
21 deleted file mode 100644
22 index 303826a918d..00000000000
23 --- a/net-analyzer/ntopng/files/ntopng-3.8-missing-min.patch
24 +++ /dev/null
25 @@ -1,19 +0,0 @@
26 ---- a/third-party/zeromq-4.1.3/src/tcp_connecter.cpp
27 -+++ b/third-party/zeromq-4.1.3/src/tcp_connecter.cpp
28 -@@ -31,6 +31,7 @@
29 -
30 - #include <new>
31 - #include <string>
32 -+#include <algorithm>
33 -
34 - #include "tcp_connecter.hpp"
35 - #include "stream_engine.hpp"
36 -@@ -207,7 +208,7 @@
37 - options.reconnect_ivl_max > options.reconnect_ivl)
38 - // Calculate the next interval
39 - current_reconnect_ivl =
40 -- min (current_reconnect_ivl * 2, options.reconnect_ivl_max);
41 -+ std::min(current_reconnect_ivl * 2, options.reconnect_ivl_max);
42 - return interval;
43 - }
44 -
45
46 diff --git a/net-analyzer/ntopng/files/ntopng-3.8-ndpi-call.patch b/net-analyzer/ntopng/files/ntopng-3.8-ndpi-call.patch
47 deleted file mode 100644
48 index 1308a5c2c03..00000000000
49 --- a/net-analyzer/ntopng/files/ntopng-3.8-ndpi-call.patch
50 +++ /dev/null
51 @@ -1,12 +0,0 @@
52 ---- a/src/NetworkInterface.cpp
53 -+++ b/src/NetworkInterface.cpp
54 -@@ -1604,7 +1604,8 @@
55 - ndpi_protocol icmp_proto = flow->get_detected_protocol();
56 -
57 - if(icmp_proto.category == NDPI_PROTOCOL_CATEGORY_UNSPECIFIED) {
58 -- ndpi_fill_ip_protocol_category(ndpi_struct, (struct ndpi_iphdr *)ip, &icmp_proto);
59 -+ ndpi_fill_ip_protocol_category(ndpi_struct, ((struct ndpi_iphdr *)ip)->saddr,
60 -+ ((struct ndpi_iphdr*)ip)->daddr, &icmp_proto);
61 - flow->setDetectedProtocol(icmp_proto, false);
62 - }
63 - }
64
65 diff --git a/net-analyzer/ntopng/ntopng-3.8-r1.ebuild b/net-analyzer/ntopng/ntopng-3.8-r1.ebuild
66 deleted file mode 100644
67 index 37e007de41e..00000000000
68 --- a/net-analyzer/ntopng/ntopng-3.8-r1.ebuild
69 +++ /dev/null
70 @@ -1,76 +0,0 @@
71 -# Copyright 1999-2019 Gentoo Authors
72 -# Distributed under the terms of the GNU General Public License v2
73 -
74 -EAPI=6
75 -inherit autotools user toolchain-funcs
76 -
77 -DESCRIPTION="Network traffic analyzer with web interface"
78 -HOMEPAGE="https://www.ntop.org/"
79 -SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
80 -
81 -LICENSE="GPL-3"
82 -SLOT="0"
83 -KEYWORDS="~amd64 ~x86"
84 -
85 -DEPEND="dev-db/sqlite:3
86 - dev-python/pyzmq
87 - dev-lang/luajit:2
88 - dev-libs/json-c:=
89 - dev-libs/geoip
90 - dev-libs/glib:2
91 - dev-libs/hiredis
92 - dev-libs/libsodium:=
93 - dev-libs/libxml2
94 - dev-libs/libmaxminddb
95 - net-analyzer/rrdtool
96 - net-libs/libpcap
97 - >=net-libs/nDPI-2.4:=
98 - net-misc/curl
99 - sys-libs/binutils-libs
100 - dev-db/mysql-connector-c:="
101 -RDEPEND="${DEPEND}
102 - dev-db/redis"
103 -PATCHES=(
104 - "${FILESDIR}"/${P}-mysqltool.patch
105 - "${FILESDIR}"/${P}-ndpi-includes.patch
106 - "${FILESDIR}"/${P}-missing-min.patch
107 - "${FILESDIR}"/${P}-ndpi-call.patch
108 -)
109 -
110 -src_prepare() {
111 - default
112 - sed -e "s/@VERSION@/${PV}.$(date +%y%m%d)/g" -e "s/@SHORT_VERSION@/${PV}/g" < "${S}/configure.seed" > "${S}/configure.ac" > configure.ac
113 - eapply_user
114 - eautoreconf
115 -}
116 -
117 -src_install() {
118 - SHARE_NTOPNG_DIR="${EPREFIX}/usr/share/${PN}"
119 - dodir ${SHARE_NTOPNG_DIR}
120 - insinto ${SHARE_NTOPNG_DIR}
121 - doins -r httpdocs
122 - doins -r scripts
123 -
124 - dodir ${SHARE_NTOPNG_DIR}/third-party
125 - insinto ${SHARE_NTOPNG_DIR}/third-party
126 - doins -r third-party/i18n.lua-master
127 - doins -r third-party/lua-resty-template-master
128 -
129 - exeinto /usr/bin
130 - doexe ${PN}
131 - doman ${PN}.8
132 -
133 - newinitd "${FILESDIR}/ntopng.init.d" ntopng
134 - newconfd "${FILESDIR}/ntopng.conf.d" ntopng
135 -
136 - dodir "/var/lib/ntopng"
137 - fowners ntopng "/var/lib/ntopng"
138 -}
139 -
140 -pkg_setup() {
141 - enewuser ntopng
142 -}
143 -
144 -pkg_postinst() {
145 - elog "ntopng default credentials are user='admin' password='admin'"
146 -}