Gentoo Archives: gentoo-commits

From: John Helmert III <ajak@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nDPI/files/, net-libs/nDPI/
Date: Tue, 16 Aug 2022 21:24:28
Message-Id: 1660684991.264f9235c9e09fa072e972c5587c4373d8c015f1.ajak@gentoo
1 commit: 264f9235c9e09fa072e972c5587c4373d8c015f1
2 Author: John Helmert III <ajak <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 16 21:23:11 2022 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 16 21:23:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=264f9235
7
8 net-libs/nDPI: drop 3.4
9
10 Bug: https://bugs.gentoo.org/799782
11 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
12
13 net-libs/nDPI/Manifest | 1 -
14 .../files/nDPI-3.4-configure-fail-libcap.patch | 19 -------
15 .../nDPI-3.4-fix-oob-in-kerberos-dissector.patch | 16 ------
16 net-libs/nDPI/nDPI-3.4.ebuild | 65 ----------------------
17 4 files changed, 101 deletions(-)
18
19 diff --git a/net-libs/nDPI/Manifest b/net-libs/nDPI/Manifest
20 index 04012ad463f1..b74a4f2bad03 100644
21 --- a/net-libs/nDPI/Manifest
22 +++ b/net-libs/nDPI/Manifest
23 @@ -1,4 +1,3 @@
24 -DIST nDPI-3.4.tar.gz 37976087 BLAKE2B 49e25586671a91278d90775c3dbc881ce4ca9ae4afd3108b1caff3b0d38251808bcd52ead253f451474195994fbf94658f70241acedb23c35a475df3b15c4a20 SHA512 ed5a22b6ddc14ad707a18a0bd96746c1df489969faaa42016fa9aad8d414fc4ee303b96cac15c3ba86f484a80a0aaa2dd1be5f92be672912e0e0d30da4bdad4c
25 DIST nDPI-4.0-patches.tar.bz2 8744 BLAKE2B 48bfb2cf240823b64ab15a3f8a21acece878102ebb4cc807648b264ef091107a05d66fc672cccd1bc721ad3ea0edde786a1f133dfc84c91422604a9929e327ed SHA512 99a780c18c048ceec29c42828c420fe3f9624906eaef70f92af6abdbf7bc29133e048d7f8de85d8b73aa6667066e7ab5843fa293221d5ec8bbe87803dde83db6
26 DIST nDPI-4.0.tar.gz 120053617 BLAKE2B ea0f333bd62622c1ab792137f9bbf2e35cb3790aae191c5caeaea36c7ce376bfa84633e99e321c16bcfbe5812d6674b825bdc4197297cee76064ed88f344a577 SHA512 2526041bc02a210e65bad31323a66167d79a37d14697cf4459054cc54715e53f9673b0000cefa6b452bbe3b3e6c25f0bafcf59d24323d210e2ce6782d9153f81
27 DIST nDPI-4.2.tar.gz 126559327 BLAKE2B 079267939083e788ce8b13e89b194504031e4c3e628df335ece7aab72cc80b8d8538badd45dac9fdaeeed8cd5dd19a81fece9c1157cba9a91dfa130abef61473 SHA512 c58b228b7de2b5fa111234bb065f9be259cd0282d0058f5985180aab6567c9a18e3453ce9062bd3c057a096ec3dfdc21b7c9680e0148e34af10f707530d853b8
28
29 diff --git a/net-libs/nDPI/files/nDPI-3.4-configure-fail-libcap.patch b/net-libs/nDPI/files/nDPI-3.4-configure-fail-libcap.patch
30 deleted file mode 100644
31 index 7ae5a04d4e8c..000000000000
32 --- a/net-libs/nDPI/files/nDPI-3.4-configure-fail-libcap.patch
33 +++ /dev/null
34 @@ -1,19 +0,0 @@
35 -Ensure that we fail if libpcap can't be detected, rather than exiting with a success return code.
36 ---- a/configure.seed
37 -+++ b/configure.seed
38 -@@ -126,12 +126,9 @@ case "$host" in
39 - AC_CHECK_LIB([dl], [dlopen, dlsym], [DL_LIB="-ldl"],[AC_CHECK_LIB([c], [dlopen, dlsym], [DL_LIB="-lc"],[AC_MSG_ERROR([unable to find the dlopen(), dlsym() functions]) ]) ])
40 - else
41 - AC_CHECK_LIB([pcap], [pcap_open_live], [PCAP_LIB="-lpcap"])
42 -- if test $ac_cv_lib_pcap_pcap_open_live = "no"; then :
43 -- echo ""
44 -- echo "ERROR: Missing libpcap(-dev) library required to compile the example application"
45 -- echo "ERROR: Please install it and try again"
46 -- exit
47 -- fi
48 -+ if test $ac_cv_lib_pcap_pcap_open_live = "no"; then :
49 -+ AC_MSG_ERROR([Cannot find libpcap which is required to compile the example application])
50 -+ fi
51 - fi
52 - ;;
53 - esac
54
55 diff --git a/net-libs/nDPI/files/nDPI-3.4-fix-oob-in-kerberos-dissector.patch b/net-libs/nDPI/files/nDPI-3.4-fix-oob-in-kerberos-dissector.patch
56 deleted file mode 100644
57 index 7e8f381cdeab..000000000000
58 --- a/net-libs/nDPI/files/nDPI-3.4-fix-oob-in-kerberos-dissector.patch
59 +++ /dev/null
60 @@ -1,16 +0,0 @@
61 -Sourced from https://github.com/gentoo/gentoo/commit/c02681fcb7839ac1829ec09394334ddbca1b0aea
62 -
63 -diff --git a/src/lib/protocols/kerberos.c b/src/lib/protocols/kerberos.c
64 -index fa0ab6cb..32319668 100644
65 ---- a/src/lib/protocols/kerberos.c
66 -+++ b/src/lib/protocols/kerberos.c
67 -@@ -189,7 +189,8 @@ void ndpi_search_kerberos(struct ndpi_detection_module_struct *ndpi_struct,
68 -
69 - body_offset = koffsetp + 1 + pad_len;
70 -
71 -- for(i=0; i<10; i++) if(body_offset<packet->payload_packet_len && packet->payload[body_offset] != 0x05) body_offset++; /* ASN.1 */
72 -+ for(i=0; i<10 && body_offset < packet->payload_packet_len; i++)
73 -+ if(packet->payload[body_offset] != 0x05) body_offset++; /* ASN.1 */
74 - #ifdef KERBEROS_DEBUG
75 - printf("body_offset=%u [%02X %02X] [byte 0 must be 0x05]\n", body_offset, packet->payload[body_offset], packet->payload[body_offset+1]);
76 - #endif
77
78 diff --git a/net-libs/nDPI/nDPI-3.4.ebuild b/net-libs/nDPI/nDPI-3.4.ebuild
79 deleted file mode 100644
80 index cb053734cf39..000000000000
81 --- a/net-libs/nDPI/nDPI-3.4.ebuild
82 +++ /dev/null
83 @@ -1,65 +0,0 @@
84 -# Copyright 1999-2020 Gentoo Authors
85 -# Distributed under the terms of the GNU General Public License v2
86 -
87 -EAPI=7
88 -
89 -inherit autotools
90 -
91 -DESCRIPTION="Open Source Deep Packet Inspection Software Toolkit"
92 -HOMEPAGE="https://www.ntop.org/"
93 -SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
94 -
95 -LICENSE="LGPL-3+"
96 -SLOT="0/$(ver_cut 1)"
97 -KEYWORDS="~amd64 ~x86"
98 -
99 -DEPEND="dev-libs/json-c:=
100 - net-libs/libpcap"
101 -RDEPEND="${DEPEND}"
102 -
103 -PATCHES=(
104 - "${FILESDIR}/${PN}-3.4-fix-oob-in-kerberos-dissector.patch"
105 - "${FILESDIR}/${PN}-3.4-configure-fail-libcap.patch"
106 -)
107 -
108 -src_prepare() {
109 - eval $(grep '^NDPI_MAJOR=' autogen.sh)
110 - eval $(grep '^NDPI_MINOR=' autogen.sh)
111 - eval $(grep '^NDPI_PATCH=' autogen.sh)
112 - NDPI_VERSION_SHORT="${NDPI_MAJOR}.${NDPI_MINOR}.${NDPI_PATCH}"
113 -
114 - default
115 -
116 - sed \
117 - -e "s/@NDPI_MAJOR@/${NDPI_MAJOR}/g" \
118 - -e "s/@NDPI_MINOR@/${NDPI_MINOR}/g" \
119 - -e "s/@NDPI_PATCH@/${NDPI_PATCH}/g" \
120 - -e "s/@NDPI_VERSION_SHORT@/${NDPI_VERSION_SHORT}/g" \
121 - -e "s/@FUZZY@//g" \
122 - < "${S}/configure.seed" \
123 - > "${S}/configure.ac" || die
124 -
125 - sed -i \
126 - -e "s%^libdir\s*=\s*\${prefix}/lib\s*$%libdir = \${prefix}/$(get_libdir)%" \
127 - src/lib/Makefile.in || die
128 -
129 - eautoreconf
130 -
131 - # Taken from autogen.sh (bug #704074):
132 - sed -i \
133 - -e "s/#define PACKAGE/#define NDPI_PACKAGE/g" \
134 - -e "s/#define VERSION/#define NDPI_VERSION/g" \
135 - configure || die
136 -}
137 -
138 -src_install() {
139 - default
140 - rm "${D}"/usr/$(get_libdir)/lib${PN,,}.a || die
141 -}
142 -
143 -src_test() {
144 - pushd tests || die
145 - ./do.sh || die "Failed tests"
146 - ./do-unit.sh || die "Failed tests"
147 - popd || die
148 -}