commit:     6cd7bb7a1d2e95815624893a16d64c2ed9c34424
Author:     Vladislav Mikhailikov <vmikhailikov <AT> gmail <DOT> com>
AuthorDate: Fri Jun 13 23:04:55 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 14 19:01:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cd7bb7a

net-libs/nDPI: add 4.14

Signed-off-by: Vladislav Mikhailikov <vmikhailikov <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42589
Closes: https://github.com/gentoo/gentoo/pull/42589
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/nDPI/Manifest         |  1 +
 net-libs/nDPI/nDPI-4.14.ebuild | 57 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/net-libs/nDPI/Manifest b/net-libs/nDPI/Manifest
index 7c4fb21e62ba..86ee5c45d67b 100644
--- a/net-libs/nDPI/Manifest
+++ b/net-libs/nDPI/Manifest
@@ -1,3 +1,4 @@
+DIST nDPI-4.14.tar.gz 48474931 BLAKE2B 
611b0e5bd9f17fc56bdd0658e88f7ae1b573c4d255c29bdea2f9a68007d9a9a8c1d3bc90bf00e803823b393ad6890b90413646a9539b58d61fc916ac09423666
 SHA512 
f7e24289aa04e19bc357c29ba00ca7d27aefcd2faf51ddf2f526b4c4d4fefd0ded33dd8e60245c0d8772b3a870304d3dda2c40f3d5ee4382342889741f122146
 DIST nDPI-4.2.tar.gz 126559327 BLAKE2B 
079267939083e788ce8b13e89b194504031e4c3e628df335ece7aab72cc80b8d8538badd45dac9fdaeeed8cd5dd19a81fece9c1157cba9a91dfa130abef61473
 SHA512 
c58b228b7de2b5fa111234bb065f9be259cd0282d0058f5985180aab6567c9a18e3453ce9062bd3c057a096ec3dfdc21b7c9680e0148e34af10f707530d853b8
 DIST nDPI-4.4.tar.gz 151062073 BLAKE2B 
fca968c0d0abcf18a6895dc6066b754925a2aa3cb3f395383f9add25066adf14bb95444a30950e13f7f22223ff203b16e7373c875841f33d8c885be83ed0bb6d
 SHA512 
c5e3d38f7b6533bd4b9f96520c1d965bf0a8e3ec7e2d514bc42683bdb73d8331e28ed695f5d3972ace9e35f1af23359f5a25c0f5a20f7a8cc7a6b5446d592468
 DIST nDPI-4.6.tar.gz 29705235 BLAKE2B 
65efdfee7af83093b08897fb726a07cf804a3ff901e7373cdc4b3d4564bbfba6ce9b498ab90172f437568c8275685dc51617e991216e38d515b3b5341760b964
 SHA512 
12dd50eeaae0aa5c2e3c89cb53cdb9989036759bd900312d3875eaba296646c2e42be31dc2b003cbc2401ccef8fbf8d2e460b9a604d7bece360f17f937d60cad

diff --git a/net-libs/nDPI/nDPI-4.14.ebuild b/net-libs/nDPI/nDPI-4.14.ebuild
new file mode 100644
index 000000000000..7cfe2b613cf3
--- /dev/null
+++ b/net-libs/nDPI/nDPI-4.14.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools edo
+
+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
+
+       eautoreconf
+}
+
+src_configure() {
+       # "local" here means "local to the system", and hence means
+       # system copy, not the bundled one.
+       econf --with-local-libgcrypt
+}
+
+src_test() {
+       pushd tests || die
+
+       edo ./do.sh
+       edo ./do-unit.sh
+
+       popd || die
+}
+
+src_install() {
+       default
+
+       # Makefile logic is broken in 4.8, let's wait a bit given history and
+       # go with hack for now.
+       mv "${ED}"/usr/$(get_libdir)/pkgconfig 
"${ED}"/usr/usr/$(get_libdir)/pkgconfig || die
+       mv "${ED}"/usr/usr/* "${ED}"/usr || die
+       rm "${ED}/usr/$(get_libdir)"/lib${PN,,}.a || die
+       rm -rf "${ED}"/usr/usr || die
+}

Reply via email to