commit:     510db819d3845a1ea97928304f25ed417b505deb
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 10 18:43:52 2026 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Feb 10 18:43:52 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=510db819

net-libs/nDPI: bring back 4.8

Signed-off-by: David Seifert <soap <AT> gentoo.org>

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

diff --git a/net-libs/nDPI/Manifest b/net-libs/nDPI/Manifest
index 01db4f35b611..582a26f351a4 100644
--- a/net-libs/nDPI/Manifest
+++ b/net-libs/nDPI/Manifest
@@ -1 +1,2 @@
 DIST nDPI-4.14.tar.gz 48474931 BLAKE2B 
611b0e5bd9f17fc56bdd0658e88f7ae1b573c4d255c29bdea2f9a68007d9a9a8c1d3bc90bf00e803823b393ad6890b90413646a9539b58d61fc916ac09423666
 SHA512 
f7e24289aa04e19bc357c29ba00ca7d27aefcd2faf51ddf2f526b4c4d4fefd0ded33dd8e60245c0d8772b3a870304d3dda2c40f3d5ee4382342889741f122146
+DIST nDPI-4.8.tar.gz 39479237 BLAKE2B 
b2b30490a8688082cf41f364d4eeb24ccaaaf8e84e13963ad9fff2346888387b732bcd0c6485d7daba7ae131ea7ad58904f65d85ca7844da7d22bd120411ada0
 SHA512 
f76eb99a83262a6d148509c7ce457b9af35dce3657c8191405ba15999b25c323ee0bee2907b0a7e6ba6f12a63182fde839e0098a4e8e0f63999e600526f3036b

diff --git a/net-libs/nDPI/nDPI-4.8.ebuild b/net-libs/nDPI/nDPI-4.8.ebuild
new file mode 100644
index 000000000000..53f654d87402
--- /dev/null
+++ b/net-libs/nDPI/nDPI-4.8.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2024 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