net-libs/nDPI: add 4.2

Closes: https://bugs.gentoo.org/725044
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-02-08 05:56:51 +00:00
parent 0382f68e1b
commit df29ef8220
3 changed files with 51 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
DIST nDPI-3.4.tar.gz 37976087 BLAKE2B 49e25586671a91278d90775c3dbc881ce4ca9ae4afd3108b1caff3b0d38251808bcd52ead253f451474195994fbf94658f70241acedb23c35a475df3b15c4a20 SHA512 ed5a22b6ddc14ad707a18a0bd96746c1df489969faaa42016fa9aad8d414fc4ee303b96cac15c3ba86f484a80a0aaa2dd1be5f92be672912e0e0d30da4bdad4c
DIST nDPI-4.0-patches.tar.bz2 8744 BLAKE2B 48bfb2cf240823b64ab15a3f8a21acece878102ebb4cc807648b264ef091107a05d66fc672cccd1bc721ad3ea0edde786a1f133dfc84c91422604a9929e327ed SHA512 99a780c18c048ceec29c42828c420fe3f9624906eaef70f92af6abdbf7bc29133e048d7f8de85d8b73aa6667066e7ab5843fa293221d5ec8bbe87803dde83db6
DIST nDPI-4.0.tar.gz 120053617 BLAKE2B ea0f333bd62622c1ab792137f9bbf2e35cb3790aae191c5caeaea36c7ce376bfa84633e99e321c16bcfbe5812d6674b825bdc4197297cee76064ed88f344a577 SHA512 2526041bc02a210e65bad31323a66167d79a37d14697cf4459054cc54715e53f9673b0000cefa6b452bbe3b3e6c25f0bafcf59d24323d210e2ce6782d9153f81
DIST nDPI-4.2.tar.gz 126559327 BLAKE2B 079267939083e788ce8b13e89b194504031e4c3e628df335ece7aab72cc80b8d8538badd45dac9fdaeeed8cd5dd19a81fece9c1157cba9a91dfa130abef61473 SHA512 c58b228b7de2b5fa111234bb065f9be259cd0282d0058f5985180aab6567c9a18e3453ce9062bd3c057a096ec3dfdc21b7c9680e0148e34af10f707530d853b8

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Open Source Deep Packet Inspection Software Toolkit"
HOMEPAGE="https://www.ntop.org/"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/ntop/${PN}"
inherit git-r3
else
SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="LGPL-3+"
SLOT="0/$(ver_cut 1)"
DEPEND="dev-libs/json-c:=
dev-libs/libgcrypt:=
dev-libs/libgpg-error
net-libs/libpcap"
RDEPEND="${DEPEND}"
src_prepare() {
default
sed -i \
-e "s%^libdir\s*=\s*\${prefix}/lib\s*$%libdir = \${prefix}/$(get_libdir)%" \
src/lib/Makefile.in || die
eautoreconf
}
src_test() {
pushd tests || die
./do.sh || die "Failed tests"
./do-unit.sh || die "Failed unit tests"
popd || die
}
src_install() {
default
rm "${ED}/usr/$(get_libdir)"/lib${PN,,}.a || die
}

View File

@@ -12,7 +12,6 @@ if [[ ${PV} == 9999 ]] ; then
inherit git-r3
else
SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
@@ -25,9 +24,6 @@ DEPEND="dev-libs/json-c:=
net-libs/libpcap"
RDEPEND="${DEPEND}"
# Also sent a patch upstream https://github.com/ntop/nDPI/pull/1392 for
# AR/CC etc but doesn't apply cleanly (at all) to 4.0.
src_prepare() {
default