summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-autogen.sh-not-generate-configure.patch35
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-configure-Stop-embedding-pwd-at-configure-time.patch55
-rw-r--r--meta-networking/recipes-support/ntopng/ndpi_5.0.bb (renamed from meta-networking/recipes-support/ntopng/ndpi_4.2.bb)16
3 files changed, 61 insertions, 45 deletions
diff --git a/meta-networking/recipes-support/ntopng/files/0001-autogen.sh-not-generate-configure.patch b/meta-networking/recipes-support/ntopng/files/0001-autogen.sh-not-generate-configure.patch
deleted file mode 100644
index d5c7f5f1cc..0000000000
--- a/meta-networking/recipes-support/ntopng/files/0001-autogen.sh-not-generate-configure.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From d482bcc8fca90afc95ac3cbe848a3c9d7ad81ddc Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Wed, 4 Nov 2020 23:37:44 -0800
4Subject: [PATCH] autogen.sh: not generate configure
5
6Only use autogen.sh to generate configure.ac.
7
8Upstream-Status: Inappropriate [embedded specific]
9
10Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
11
12refresh patch to 4.0
13Signed-off-by: Changqing Li <changqing.li@windriver.com>
14---
15 autogen.sh | 7 -------
16 1 file changed, 7 deletions(-)
17
18diff --git a/autogen.sh b/autogen.sh
19index 0aa7507..36e0423 100755
20--- a/autogen.sh
21+++ b/autogen.sh
22@@ -33,10 +33,3 @@ if test -z $PKG_CONFIG; then
23 echo "pkg-config is missing: please install it (apt-get install pkg-config) and try again"
24 exit
25 fi
26-
27-autoreconf -ivf
28-
29-echo "./configure $@"
30-chmod +x configure
31-./configure $@
32-
33--
342.25.1
35
diff --git a/meta-networking/recipes-support/ntopng/files/0001-configure-Stop-embedding-pwd-at-configure-time.patch b/meta-networking/recipes-support/ntopng/files/0001-configure-Stop-embedding-pwd-at-configure-time.patch
new file mode 100644
index 0000000000..b8b0b04bf4
--- /dev/null
+++ b/meta-networking/recipes-support/ntopng/files/0001-configure-Stop-embedding-pwd-at-configure-time.patch
@@ -0,0 +1,55 @@
1From 25129a49bd220b4668e1df474b1b1549885aaced Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 20 Mar 2026 09:47:12 -0700
4Subject: [PATCH] configure: Stop embedding pwd at configure time
5
6NDPI_BASE_DIR seems to unused and currently encodes hardcoded
7absolute paths in for it breaking repeoducible builds
8
9Upstream-Status: Inappropriate [OE-Specific]
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 configure.ac | 10 ++--------
14 1 file changed, 2 insertions(+), 8 deletions(-)
15
16diff --git a/configure.ac b/configure.ac
17index 6984b38b5..1b9aae4df 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -353,7 +353,7 @@ case "$host" in
21 if test -f $PCAP_HOME/lib/libpfring.a; then :
22 PFRING_LIB=$PCAP_HOME/lib/libpfring.a
23 fi
24-
25+
26 PCAP_LIB="$PCAP_HOME/libpcap/libpcap.a $PFRING_LIB $LIBNUMA `$PCAP_HOME/lib/pfring_config --libs`"
27 AC_CHECK_LIB([rt], [clock_gettime], [PCAP_LIB="$PCAP_LIB -lrt"])
28 AC_CHECK_LIB([nl], [nl_handle_alloc], [PCAP_LIB="$PCAP_LIB -lnl"])
29@@ -438,7 +438,7 @@ PCRE2_ENABLED=0
30 AC_ARG_WITH(pcre2, AS_HELP_STRING([--with-pcre2], [Enable nDPI build with libpcre2]))
31 if test "${with_pcre2+set}" = set; then :
32 AC_CHECK_LIB(pcre2-8, pcre2_compile_8, AC_DEFINE_UNQUOTED(HAVE_PCRE2, 1, [libpcre2(-dev) is present]))
33-
34+
35 if test "x$ac_cv_lib_pcre2_8_pcre2_compile_8" = xyes; then :
36 ADDITIONAL_LIBS="${ADDITIONAL_LIBS} -lpcre2-8"
37 PCRE2_ENABLED=1
38@@ -456,11 +456,6 @@ if test "${with_maxminddb+set}" = set; then :
39 fi
40 fi
41
42-dnl> Use absolute source directory for NDPI_BASE_DIR
43-NDPI_ABS_SRCDIR="`cd ${srcdir} && pwd`"
44-AC_DEFINE_UNQUOTED(NDPI_BASE_DIR, "${NDPI_ABS_SRCDIR}", [nDPI base directory])
45-AC_SUBST(NDPI_BASE_DIR, "${NDPI_ABS_SRCDIR}")
46-
47 dnl> Curl
48 dnl> AC_CHECK_LIB([curl], [curl_easy_perform])
49 dnl> if test ${ac_cv_lib_curl_curl_easy_perform} = "no"; then
50@@ -515,5 +510,4 @@ AC_SUBST(DISABLE_NPCAP)
51 AC_SUBST(EXE_SUFFIX)
52 AC_SUBST(NDPI_CFLAGS)
53 AC_SUBST(NDPI_LDFLAGS)
54-AC_SUBST(NDPI_BASE_DIR)
55 AC_OUTPUT
diff --git a/meta-networking/recipes-support/ntopng/ndpi_4.2.bb b/meta-networking/recipes-support/ntopng/ndpi_5.0.bb
index 66d24e4cd8..e2040eda18 100644
--- a/meta-networking/recipes-support/ntopng/ndpi_4.2.bb
+++ b/meta-networking/recipes-support/ntopng/ndpi_5.0.bb
@@ -8,23 +8,19 @@ RDEPENDS:${PN} += " libpcap"
8LICENSE = "LGPL-3.0-only" 8LICENSE = "LGPL-3.0-only"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" 9LIC_FILES_CHKSUM = "file://COPYING;md5=b52f2d57d10c4f7ee67a7eb9615d5d24"
10 10
11SRCREV = "8b5c6af71b562549f8416b31803daae223e09f46" 11SRCREV = "375f99ef9fb4999d778b57bbeece171b3fa9fba6"
12SRC_URI = "git://github.com/ntop/nDPI.git;branch=4.2-stable;protocol=https \ 12SRC_URI = "git://github.com/ntop/nDPI.git;branch=5.0-stable;protocol=https;tag=${PV} \
13 file://0001-autogen.sh-not-generate-configure.patch \ 13 file://0001-configure-Stop-embedding-pwd-at-configure-time.patch \
14 " 14 "
15 15
16 16inherit autotools pkgconfig
17inherit autotools-brokensep pkgconfig
18 17
19CPPFLAGS += "${SELECTED_OPTIMIZATION}" 18CPPFLAGS += "${SELECTED_OPTIMIZATION}"
20 19
21do_configure:prepend() { 20do_configure:prepend() {
22 ${S}/autogen.sh 21 (cd ${S} && ${S}/autogen.sh)
23} 22}
24 23
25EXTRA_OEMAKE = " \ 24EXTRA_OEMAKE = " \
26 libdir=${libdir} \ 25 libdir=${libdir} \
27" 26"
28
29# remove this CVE_STATUS, when the recipe is updated to 4.12 or newer
30CVE_STATUS[CVE-2025-25066] = "cpe-incorrect: Version 4.2 is not vulnerable yet"