summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <khem.raj@oss.qualcomm.com>2026-03-21 07:16:11 -0700
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-03-22 14:13:01 -0700
commit01134021ff02fea76a2ef4c489ef3f2dff58f70f (patch)
treecaf99997bfd674e4b23bacd8abd3abdab46af0d0
parent27282053cd8166b5e11353881d45ad6d557e3861 (diff)
downloadmeta-openembedded-01134021ff02fea76a2ef4c489ef3f2dff58f70f.tar.gz
ntopng: Upgrade to 6.6
Fix build with Lua 5.5 Add fixes to build with ndpi 5.0 Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-Follow-rrd-post-1.8-change.patch32
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-Makefile.in-don-t-use-the-internal-lua.patch36
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-autogen.sh-generate-configure.ac-only.patch36
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-Allow-dynamic-linking-against-ndpi-3.patch51
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-fix-configure-error.patch42
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-fix-host-contamination.patch188
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-not-check-clang-on-host.patch44
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-luaengine-Use-lua-5.5-API-signature-for-lua_newstate.patch31
-rw-r--r--meta-networking/recipes-support/ntopng/ndpi_5.0.bb4
-rw-r--r--meta-networking/recipes-support/ntopng/ntopng_6.6.bb (renamed from meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb)19
10 files changed, 262 insertions, 221 deletions
diff --git a/meta-networking/recipes-support/ntopng/files/0001-Follow-rrd-post-1.8-change.patch b/meta-networking/recipes-support/ntopng/files/0001-Follow-rrd-post-1.8-change.patch
deleted file mode 100644
index eefd4e1ab2..0000000000
--- a/meta-networking/recipes-support/ntopng/files/0001-Follow-rrd-post-1.8-change.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From a3bd9efe78f9c381f19b99c8ceb7f52b4c2a52b8 Mon Sep 17 00:00:00 2001
2From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
3Date: Wed, 5 Jun 2024 09:40:17 +0300
4Subject: [PATCH] Follow rrd post-1.8 change
5
6Git version of rrdtool has changed rrd_tune argument from char pointer
7to const char pointer. GCC 14 is more strict regarding the pointer
8constantness checks and errors out in such a case. Update rrd_tune
9invokation.
10
11Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
12Upstream-Status: Pending [CLA is not signed on our side]
13---
14 src/LuaEngineNtop.cpp | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/src/LuaEngineNtop.cpp b/src/LuaEngineNtop.cpp
18index bd2de79e3021..dd00f1608f78 100644
19--- a/src/LuaEngineNtop.cpp
20+++ b/src/LuaEngineNtop.cpp
21@@ -5427,7 +5427,7 @@ static int ntop_rrd_tune(lua_State* vm) {
22 filename = argv[1];
23
24 reset_rrd_state();
25- status = rrd_tune(argc, (char**)argv);
26+ status = rrd_tune(argc, (const char**)argv);
27
28 if(status != 0) {
29 char *err = rrd_get_error();
30--
312.39.2
32
diff --git a/meta-networking/recipes-support/ntopng/files/0001-Makefile.in-don-t-use-the-internal-lua.patch b/meta-networking/recipes-support/ntopng/files/0001-Makefile.in-don-t-use-the-internal-lua.patch
index bb5bcfbd63..402d679a90 100644
--- a/meta-networking/recipes-support/ntopng/files/0001-Makefile.in-don-t-use-the-internal-lua.patch
+++ b/meta-networking/recipes-support/ntopng/files/0001-Makefile.in-don-t-use-the-internal-lua.patch
@@ -14,26 +14,32 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
14 Makefile.in | 2 -- 14 Makefile.in | 2 --
15 1 file changed, 2 deletions(-) 15 1 file changed, 2 deletions(-)
16 16
17diff --git a/Makefile.in b/Makefile.in
18index d737e74..a611b16 100755
19--- a/Makefile.in 17--- a/Makefile.in
20+++ b/Makefile.in 18+++ b/Makefile.in
21@@ -36,7 +36,6 @@ MONGOOSE_INC=-I$(MONGOOSE_HOME) 19@@ -31,8 +31,6 @@ MONGOOSE_INC=-I$(MONGOOSE_HOME)
20
22 LUA_PLATFORM=generic 21 LUA_PLATFORM=generic
23 LUA_HOME=${PWD}/third-party/lua-5.4.3 22 LUA_HOME=${PWD}/third-party/lua-5.4.6
24 LUA_INC=-I$(LUA_HOME)/src 23-LUA_INC=-I$(LUA_HOME)/src
25-LUA_LIB=$(LUA_HOME)/src/liblua.a 24-LUA_LIB=$(LUA_HOME)/src/liblua.a
26 25
27 ifeq ($(OS),Linux) 26 HAVE_CLICKHOUSE=@HAVE_CLICKHOUSE@
28 LUA_PLATFORM=linux 27 CLICKHOUSE_HOME=
29@@ -102,7 +101,6 @@ RPM_PKG = $(TARGET)-$(NTOPNG_VERSION)-@REVISION@.$(PLATFORM).rpm 28@@ -52,7 +50,7 @@ else ifeq ($(OS),Darwin)
30 RPM_DATA_PKG = $(TARGET)-data-$(NTOPNG_VERSION)-@REVISION@.noarch.rpm 29 LUA_PLATFORM=macosx
30 else ifeq ($(OS), $(filter $(OS), FreeBSD))
31 LUA_PLATFORM=freebsd
32- LUA_LIB=/usr/local/lib/liblua-5.3.a
33+ LUA_LIB=liblua.a
34 endif
35
31 ###### 36 ######
37@@ -138,7 +136,7 @@ HEADERS = $(wildcard include/*.h) $(wild
38 INC = $(wildcard src/*.inc)
39 OBJECTS_NO_MAIN := $(filter-out src/main.o,$(OBJECTS))
32 40
33-LIB_TARGETS = $(LUA_LIB) 41-TEST_FILES = $(wildcard tests/src/*.cpp)
42+TEST_FILES = $(wildcard tests/src/*.cpp)
43 TEST_HEADERS = $(wildcard tests/include/*.h)
34 44
35 ifneq ($(HAS_ZEROMQ), 0) 45 %.o: %.c $(HEADERS) $(INC) Makefile
36 LIB_TARGETS += $(ZEROMQ_LIB)
37--
382.25.1
39
diff --git a/meta-networking/recipes-support/ntopng/files/0001-autogen.sh-generate-configure.ac-only.patch b/meta-networking/recipes-support/ntopng/files/0001-autogen.sh-generate-configure.ac-only.patch
deleted file mode 100644
index 8d62147b9e..0000000000
--- a/meta-networking/recipes-support/ntopng/files/0001-autogen.sh-generate-configure.ac-only.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1From 22f0bec462763f1b0b92daa33133e274d3b45f4f Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Thu, 5 Nov 2020 00:05:21 -0800
4Subject: [PATCH] autogen.sh: generate configure.ac only
5
6The autogen.sh should only generate configure.ac and the
7logic used to generate configure script should follow the
8autotools.bbclass in oe. Otherwise there may comes below
9do_configure error:
10 | checking whether we are cross compiling... configure: error: in `/path/tmp/work/core2-64-poky-linux/ndpi/3.4-r0/git':
11 | configure: error: cannot run C compiled programs.
12 | If you meant to cross compile, use `--host'.
13
14Upstream-Status: Inappropriate [embedded specific]
15
16Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
17---
18 autogen.sh | 5 -----
19 1 file changed, 5 deletions(-)
20
21diff --git a/autogen.sh b/autogen.sh
22index 73f8d0ebe..15ff0aa84 100755
23--- a/autogen.sh
24+++ b/autogen.sh
25@@ -73,8 +73,3 @@ cat configure.seed | sed \
26 > configure.ac
27
28 rm -f config.h config.h.in *~ #*
29-
30-echo "Wait please..."
31-autoreconf -if
32-echo ""
33-echo "Now run ./configure"
34--
352.17.1
36
diff --git a/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-Allow-dynamic-linking-against-ndpi-3.patch b/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-Allow-dynamic-linking-against-ndpi-3.patch
index c645110f22..b0cdcd8401 100644
--- a/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-Allow-dynamic-linking-against-ndpi-3.patch
+++ b/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-Allow-dynamic-linking-against-ndpi-3.patch
@@ -17,23 +17,42 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 configure.ac.in | 6 ++---- 17 configure.ac.in | 6 ++----
18 1 file changed, 2 insertions(+), 4 deletions(-) 18 1 file changed, 2 insertions(+), 4 deletions(-)
19 19
20diff --git a/configure.ac.in b/configure.ac.in
21index 7f4c0f893..c3299fda2 100644
22--- a/configure.ac.in 20--- a/configure.ac.in
23+++ b/configure.ac.in 21+++ b/configure.ac.in
24@@ -193,10 +193,8 @@ if test -d /usr/local/include/ndpi ; then : 22@@ -235,8 +235,9 @@ AC_ARG_WITH(ndpi-includes,
23 NDPI_CUST_INC="-I$withval -I$withval/../lib/third_party/include"
24 ])
25
26-NDPI_INC=`echo $NDPI_CFLAGS | sed -e "s/[ ]*$//"`
27-NDPI_LIB=
28+NDPI_INC="$NDPI_CFLAGS"
29+NDPI_LIB="$NDPI_LIBS"
30+
31 NDPI_LIB_DEP=
32
33 AS_VAR_IF(with_dynamic_ndpi, no, [
34@@ -267,11 +268,6 @@ AC_MSG_CHECKING(for nDPI source)
35 fi
36 ])
37
38-AS_VAR_IF(with_dynamic_ndpi, yes, [
39- NDPI_LIB="-lndpi"
40- NDPI_LIB_DEP=$NDPI_LIB
41-])
42-
43 if test ! -z "$NDPI_CUST_INC" ; then :
44 NDPI_INC=$NDPI_CUST_INC
45 fi
46@@ -280,12 +276,6 @@ if test ! -z "$NDPI_CUST_LIB" ; then :
47 NDPI_LIB=$NDPI_CUST_LIB
25 fi 48 fi
26 49
27 PKG_CHECK_MODULES([NDPI], [libndpi >= 2.0], [ 50-if test -z "$NDPI_LIB" ; then :
28- NDPI_INC=`echo $NDPI_CFLAGS | sed -e "s/[ ]*$//"` 51- echo "Could not find nDPI"
29- # Use static libndpi library as building against the dynamic library fails 52- echo "Please do cd ..; git clone https://github.com/ntop/nDPI.git; cd nDPI; ./autogen.sh; ${MAKE}; cd ../ntopng"
30- NDPI_LIB="-Wl,-Bstatic $NDPI_LIBS -Wl,-Bdynamic" 53- echo "and try again"
31- #NDPI_LIB="$NDPI_LIBS" 54- exit 1
32+ NDPI_INC="$NDPI_CFLAGS" 55-fi
33+ NDPI_LIB="$NDPI_LIBS" 56 dnl finish: nDPI handling
34 NDPI_LIB_DEP= 57
35 ], [ 58 AC_ARG_WITH(json-c-static,
36 AC_MSG_CHECKING(for nDPI source)
37--
382.35.1
39
diff --git a/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-fix-configure-error.patch b/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-fix-configure-error.patch
deleted file mode 100644
index d4908e3227..0000000000
--- a/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-fix-configure-error.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 29797dd037009d38e4976249ed21b2076240751e Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Wed, 4 Nov 2020 04:36:46 +0000
4Subject: [PATCH] configure.ac.in: fix configure error
5
6fix the below error:
7configure: error: cannot run test program while cross compiling
8
9Upstream-Status: Inappropriate [embedded specific]
10
11Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
12---
13 configure.ac.in | 13 +------------
14 1 file changed, 1 insertion(+), 12 deletions(-)
15
16diff --git a/configure.ac.in b/configure.ac.in
17index a321f9bbf..03f9a31b0 100644
18--- a/configure.ac.in
19+++ b/configure.ac.in
20@@ -642,18 +642,7 @@ if test x$radcli = xtrue; then
21 fi
22 fi
23
24-AC_CACHE_CHECK([if pthread rwlocks are supported], [my_cv_rw_locks_supported], [
25- AC_TRY_RUN([
26- #include <pthread.h>
27-
28- int main() {
29- pthread_rwlock_t t;
30- return 0;
31- }
32-]
33-, [my_cv_rw_locks_supported=yes], [my_cv_rw_locks_supported=no])
34-]
35-)
36+AC_CACHE_CHECK([if pthread rwlocks are supported], [my_cv_rw_locks_supported])
37
38 if test "$my_cv_rw_locks_supported" = yes; then
39 AC_DEFINE_UNQUOTED(HAVE_RW_LOCK, 1, [pthread rwlocks supported])
40--
412.26.2
42
diff --git a/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-fix-host-contamination.patch b/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-fix-host-contamination.patch
index 5e1440b3d6..e3c0534da8 100644
--- a/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-fix-host-contamination.patch
+++ b/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-fix-host-contamination.patch
@@ -14,17 +14,95 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
14 configure.ac.in | 43 +++---------------------------------------- 14 configure.ac.in | 43 +++----------------------------------------
15 1 file changed, 3 insertions(+), 40 deletions(-) 15 1 file changed, 3 insertions(+), 40 deletions(-)
16 16
17diff --git a/configure.ac.in b/configure.ac.in
18index 1d6380c..beffc6c 100644
19--- a/configure.ac.in 17--- a/configure.ac.in
20+++ b/configure.ac.in 18+++ b/configure.ac.in
21@@ -167,31 +167,6 @@ fi 19@@ -83,30 +83,6 @@ if test "$with_dynamic_ndpi" = "yes"; th
22 # 20 AC_DEFINE([HAVE_DYNAMIC_NDPI], [1], [Define if using dynamic linking with nDPI])
23 REVISION=`git log --pretty=oneline | wc -l` 21 fi
22
23-dnl> CLANG_STDLIB="-stdlib=libc++"
24-
25-dnl> On Ubuntu do sudo apt-get install -y clang-14 clang-tools-14
26-if test "x$USE_CLANG" = xyes; then
27- if test $SYSTEM = "Darwin"; then
28- CC=clang
29- CXX="clang++ -fno-color-diagnostics -fPIE -stdlib=libc++"
30- else
31- if test -x "/usr/bin/clang-10"; then
32- CLANG_VERSION=10
33- elif test -x "/usr/bin/clang-13"; then
34- CLANG_VERSION=13
35- elif test -x "/usr/bin/clang-14"; then
36- CLANG_VERSION=14
37- else
38- echo "Could not find clang. Please install clang-14 clang-tools-14"
39- exit 1
40- fi
41-
42- CC=clang-$CLANG_VERSION
43- CXX="clang++-$CLANG_VERSION -fno-color-diagnostics -fPIE $CLANG_STDLIB"
44- fi
45-fi
46-
47 CFLAGS="${CFLAGS} -I${HERE} -I${HERE}/include"
48 CXXFLAGS="${CXXFLAGS} -I${HERE} -I${HERE}/include"
49
50@@ -122,7 +98,7 @@ fi
51
52 if test -f /proc/device-tree/model; then
53 IS_RASPBERRY=`cat /proc/device-tree/model | grep -a -e "Orange Pi" -e Raspberry | wc -l`
54-
55+
56 if test "$IS_RASPBERRY" = "1"; then
57 CFLAGS="${CFLAGS} -DHAVE_EMBEDDED_SUPPORT"
58 CXXFLAGS="${CXXFLAGS} -DHAVE_EMBEDDED_SUPPORT"
59@@ -158,39 +134,6 @@ MAKE=make
60 BIN_PATH=/usr/bin
61 LIBPCAP=-lpcap
62
63-if test $SYSTEM = "FreeBSD" || test $SYSTEM = "Darwin"; then
64- CFLAGS="${CFLAGS} -I/usr/local/include"
65- LDFLAGS="${LDFLAGS} -L/usr/local/lib"
66-
67- dnl> https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
68- CC=clang
69- CXX="clang++ -fpie -fno-color-diagnostics $CLANG_STDLIB"
70- if test $SYSTEM = "FreeBSD"; then
71- MAKE=gmake
72- BIN_PATH=/usr/local/bin
73- else
74- dnl> Adds /opt if MacPorts is installed
75- if [ test -f /opt/local/bin/port ]; then
76- CFLAGS="${CFLAGS} -I/opt/local/include"
77- LDFLAGS="${LDFLAGS} -L/opt/local/lib"
78- fi
79- fi
80- dnl> CXX=clang++ -fsanitize=address -fsanitize-address-use-after-scope
81- OSXV=`sw_vers -productVersion`
82- if test $SYSTEM = "Darwin"; then
83- OS="macOS $OSXV"
84- else
85- OS=`uname -or | cut -d '-' -f 1`
86- fi
87- if test $MACHINE = "x86_64"; then
88- LDFLAGS="${LDFLAGS} -L/usr/local/opt/ntopng"
89- RES=`g++ -Wall -fno-color-diagnostics Prefs.cpp 2>&1 | grep "unrecognized command line option "|wc -l`
90- if test $RES -eq 0; then
91- CFLAGS="-fno-color-diagnostics $CFLAGS"
92- fi
93- fi
94-fi
95-
96 dnl> Remove spaces
97 OS="${OS#"${OS%%[![:space:]]*}"}"
98
99@@ -237,31 +180,6 @@ if test "${with_nedge+set}" = set; then
100 LIBS="${LIBS} -lnetfilter_queue -lnfnetlink -lnetfilter_conntrack"
101 fi
24 102
25-if test -d "/usr/local/include"; then 103-if test -d "/usr/local/include"; then
26- CFLAGS="${CFLAGS} -I/usr/local/include" 104- CFLAGS="${CFLAGS} -I/usr/local/include"
27- CPPFLAGS="${CPPFLAGS} -I/usr/local/include" 105- CXXFLAGS="${CXXFLAGS} -I/usr/local/include"
28-fi 106-fi
29- 107-
30-if test -d "/usr/local/lib"; then 108-if test -d "/usr/local/lib"; then
@@ -33,7 +111,7 @@ index 1d6380c..beffc6c 100644
33- 111-
34-if test -d /opt/local/include; then : 112-if test -d /opt/local/include; then :
35- CFLAGS="${CFLAGS} -I/opt/local/include" 113- CFLAGS="${CFLAGS} -I/opt/local/include"
36- CPPFLAGS="${CPPFLAGS} -I/opt/local/include" 114- CXXFLAGS="${CXXFLAGS} -I/opt/local/include"
37-fi 115-fi
38- 116-
39-if test -d /opt/local/lib; then : 117-if test -d /opt/local/lib; then :
@@ -42,15 +120,26 @@ index 1d6380c..beffc6c 100644
42- 120-
43-if [ test -f /usr/bin/lsb_release ]; then 121-if [ test -f /usr/bin/lsb_release ]; then
44- CODENAME=`/usr/bin/lsb_release -c|cut -f 2` 122- CODENAME=`/usr/bin/lsb_release -c|cut -f 2`
45- if [[ $CODENAME == "wheezy" ]]; then : 123- if test $CODENAME = "wheezy" ; then
46- CPPFLAGS="${CPPFLAGS} -DOLD_NETFILTER_INTERFACE=1" 124- CXXFLAGS="${CXXFLAGS} -DOLD_NETFILTER_INTERFACE=1"
47- fi 125- fi
48-fi 126-fi
49- 127-
50 SHORT_MACHINE=`uname -m | cut -b1-3` 128 if test -d "pro"; then
129 NTOPCLOUD_LIB=
130 NTOPCLOUD_HOME="../ntopcloud"
131@@ -317,10 +235,6 @@ AC_ARG_WITH(ndpi-includes,
132 NDPI_CUST_INC="-I$withval -I$withval/../lib/third_party/include"
133 ])
51 134
52 GIT_RELEASE="@GIT_RELEASE@" 135-if test -d /usr/local/include/ndpi ; then :
53@@ -300,23 +275,11 @@ fi 136- echo "WARNING: /usr/local/include/ndpi is present and might lead to compile errors"
137-fi
138-
139 NDPI_INC=`echo $NDPI_CFLAGS | sed -e "s/[ ]*$//"`
140 NDPI_LIB=
141 NDPI_LIB_DEP=
142@@ -387,7 +301,7 @@ fi
54 pkg-config --exists libssl 143 pkg-config --exists libssl
55 if test "$?" -ne 1; then 144 if test "$?" -ne 1; then
56 AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl]) 145 AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl])
@@ -58,25 +147,70 @@ index 1d6380c..beffc6c 100644
58+ SSL_INC="`pkg-config --cflags libssl`" 147+ SSL_INC="`pkg-config --cflags libssl`"
59 SSL_LIB="`pkg-config --libs libssl` -lssl -lcrypto" 148 SSL_LIB="`pkg-config --libs libssl` -lssl -lcrypto"
60 else 149 else
61- dnl Workaround for MacOS Brew 150 dnl Workaround for MacOS Brew
62- if test -d "/usr/local/opt/openssl/lib"; then 151@@ -408,10 +322,6 @@ else
63- AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl]) 152 SSL_INC="-I/usr/local/opt/openssl/include"
64- SSL_INC="-I/usr/local/opt/openssl/include" 153 SSL_LIB="-L/usr/local/opt/openssl/lib -lssl -lcrypto"
65- SSL_LIB="-L/usr/local/opt/openssl/lib -lssl -lcrypto" 154 dnl Workaround for FreeBSD
66- dnl Workaround for FreeBSD
67- elif test -f "/usr/lib/libssl.so"; then 155- elif test -f "/usr/lib/libssl.so"; then
68- AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl]) 156- AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl])
69- SSL_INC="-I/usr/include" 157- SSL_INC="-I/usr/include"
70- SSL_LIB="-L/usr/lib -lssl -lcrypto" 158- SSL_LIB="-L/usr/lib -lssl -lcrypto"
71- else 159 else
72- echo "Please install openssl-dev(el) package prerequisite" 160 echo "Please install openssl-dev(el) package prerequisite"
73- exit -1 161 exit -1
162@@ -433,13 +343,6 @@ fi
163 AC_MSG_CHECKING(for ntopng professional edition)
164
165 REDIS_SERVICE="redis.service"
166-if [ test -f /usr/bin/lsb_release ]; then
167- UBUNTU_RELEASE=`lsb_release -r|cut -f 2`
168- UBUNTU_SUB_RELEASE=`echo $UBUNTU_RELEASE|cut -f 1 -d '.'`
169- if test "$UBUNTU_SUB_RELEASE" = "8" || test "$UBUNTU_SUB_RELEASE" = "10"; then
170- REDIS_SERVICE="redis-server.service"
74- fi 171- fi
75+ echo "Please install openssl-dev(el) package prerequisite" 172-fi
76+ exit -1 173
174 SERVICE_ALIAS=
175 SERVICE_REQUIRES=
176@@ -497,7 +400,7 @@ fi
177 echo "Using clickhouse-cpp stored at ${CLICKHOUSE_HOME}"
178
179 dnl> fi dnl> test $SYSTEM = "Linux"
180-
181+
182 AC_DEFINE_UNQUOTED(NTOPNG_PRO_GIT_RELEASE, "r${PRO_GIT_RELEASE}", [ntopng professional release])
183 AC_DEFINE_UNQUOTED(NTOPNG_PRO_GIT_DATE, "${PRO_GIT_DATE}", [ntopng professional date])
184 DUMMY=`cd ./pro; ${MAKE} build`
185@@ -531,21 +434,7 @@ if test -f ".git/index"; then
77 fi 186 fi
78 187
79 AC_CHECK_LIB([gcrypt], [gcry_cipher_checktag], [LIBS="${LIBS} -lgcrypt"]) 188 if test $SYSTEM = "Linux"; then
80-- 189- if [ test -f /usr/bin/lsb_release ]; then
812.25.1 190- OSNAME=`/usr/bin/lsb_release -d|cut -d ':' -f 2| sed -e 's/^[[[:space:]]]*//'`
82 191- OS="$OSNAME"
192- else
193- if test -f /etc/debian_version; then
194- DEBIAN_VERSION=`cat /etc/debian_version`
195- OSNAME="Debian $DEBIAN_VERSION"
196- else
197- if test -f /etc/redhat-release; then
198- OS=`cat /etc/redhat-release | cut -d '(' -f 1 | awk '{$1=$1};1'`
199- else
200- OS=`./config.guess`
201- fi
202- fi
203- fi
204+ OS=`./config.guess`
205 else
206 dnl> wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
207 if test $SYSTEM = "FreeBSD"; then
208@@ -575,7 +464,7 @@ AS_VAR_IF(with_hiredis, yes, [
209 else
210 pkg-config --exists hiredis
211 if test "$?" -ne 1; then
212- HIREDIS_INC="`pkg-config --cflags hiredis` -I/usr/include/hiredis"
213+ HIREDIS_INC="`pkg-config --cflags hiredis`"
214 if test $SYSTEM = "FreeBSD" && $FREEBSD_VERSION != "15"; then
215 dnl> Note: on freebsd 15 .a is not installed
216 HIREDIS_LIB="/usr/local/lib/libhiredis.a"
diff --git a/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-not-check-clang-on-host.patch b/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-not-check-clang-on-host.patch
deleted file mode 100644
index ffb106723c..0000000000
--- a/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-not-check-clang-on-host.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From 5867be19e53a3cc09730b83282c83bdd26147cc3 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Mon, 9 Nov 2020 04:05:25 +0000
4Subject: [PATCH] configure.ac.in: not check clang on host
5
6Don't check clang on host to avoid host contamination.
7
8Upstream-Status: Inappropriate [OE specific]
9
10Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
11---
12 configure.ac.in | 16 ----------------
13 1 file changed, 16 deletions(-)
14
15diff --git a/configure.ac.in b/configure.ac.in
16index 55bd49678..94bc0bc48 100644
17--- a/configure.ac.in
18+++ b/configure.ac.in
19@@ -90,22 +90,6 @@ if test $SYSTEM = "FreeBSD" || test $SYSTEM = "Darwin"; then
20 CFLAGS="-fno-color-diagnostics $CFLAGS"
21 fi
22 fi
23-else
24- if test $SYSTEM = "Linux"; then
25- if [ test -f /usr/bin/clang++ ]; then
26- CC=clang
27- CXX=clang++
28- AC_MSG_RESULT(Using clang++ compiler)
29- fi
30-
31- if [ test -f /etc/redhat-release ]; then
32- OS=`cat /etc/redhat-release`
33- else
34- if [ test -f /usr/bin/lsb_release ]; then
35- OS=`/usr/bin/lsb_release -d|cut -d ':' -f 2`
36- fi
37- fi
38- fi
39 fi
40
41 dnl> Remove spaces
42--
432.17.1
44
diff --git a/meta-networking/recipes-support/ntopng/files/0001-luaengine-Use-lua-5.5-API-signature-for-lua_newstate.patch b/meta-networking/recipes-support/ntopng/files/0001-luaengine-Use-lua-5.5-API-signature-for-lua_newstate.patch
new file mode 100644
index 0000000000..8046d755c2
--- /dev/null
+++ b/meta-networking/recipes-support/ntopng/files/0001-luaengine-Use-lua-5.5-API-signature-for-lua_newstate.patch
@@ -0,0 +1,31 @@
1From 6c4806436c3214e32487d05ce099ac86b0b2519c Mon Sep 17 00:00:00 2001
2From: Khem Raj <khem.raj@oss.qualcomm.com>
3Date: Sun, 22 Mar 2026 10:08:01 -0700
4Subject: [PATCH] luaengine: Use lua 5.5 API signature for lua_newstate
5
6in Lua 5.5 lua_newstate gained a third argument,
7
8lua_State *lua_newstate(lua_Alloc f, void *ud, unsigned int seed);
9
10The 5.5 manual says that third argument, seed,
11is "a seed for the hashing of strings," and the 5.5 incompatibilities
12section explicitly calls out that lua_newstate now has
13a third parameter.
14
15Upstream-Status: Pending
16Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
17---
18 src/LuaEngine.cpp | 64 +++++++++++++++++++++++------------------------
19 1 file changed, 32 insertions(+), 32 deletions(-)
20
21--- a/src/LuaEngine.cpp
22+++ b/src/LuaEngine.cpp
23@@ -154,7 +154,7 @@ LuaEngine::LuaEngine() {
24 is_system_vm = false;
25 mem_used = 0;
26
27- L = lua_newstate(l_alloc, this);
28+ L = lua_newstate(l_alloc, this, luaL_makeseed(NULL));
29
30 if (!L) {
31 ntop->getTrace()->traceEvent(TRACE_ERROR, "Unable to create a new Lua state.");
diff --git a/meta-networking/recipes-support/ntopng/ndpi_5.0.bb b/meta-networking/recipes-support/ntopng/ndpi_5.0.bb
index e2040eda18..6eadf8ba62 100644
--- a/meta-networking/recipes-support/ntopng/ndpi_5.0.bb
+++ b/meta-networking/recipes-support/ntopng/ndpi_5.0.bb
@@ -21,6 +21,10 @@ do_configure:prepend() {
21 (cd ${S} && ${S}/autogen.sh) 21 (cd ${S} && ${S}/autogen.sh)
22} 22}
23 23
24do_install:append() {
25 install -Dm 0644 ${B}/src/include/ndpi_define.h ${D}${includedir}/ndpi/ndpi_define.h
26}
27
24EXTRA_OEMAKE = " \ 28EXTRA_OEMAKE = " \
25 libdir=${libdir} \ 29 libdir=${libdir} \
26" 30"
diff --git a/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb b/meta-networking/recipes-support/ntopng/ntopng_6.6.bb
index 014706893a..3c039781d8 100644
--- a/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb
+++ b/meta-networking/recipes-support/ntopng/ntopng_6.6.bb
@@ -11,27 +11,28 @@ RDEPENDS:${PN} = "bash redis"
11LICENSE = "GPL-3.0-only" 11LICENSE = "GPL-3.0-only"
12LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 12LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
13 13
14SRCREV = "d3ce78948e8d81dc1e2c5298ce556f9f2247aac1" 14SRCREV = "d3a1229954dd783af06c9fd2dcd9ce926826a228"
15SRC_URI = "git://github.com/ntop/ntopng.git;protocol=https;branch=5.2-stable \ 15SRC_URI = "gitsm://github.com/ntop/ntopng;protocol=https;branch=6.6-stable \
16 file://0001-configure.ac.in-fix-configure-error.patch \
17 file://0001-configure.ac.in-fix-host-contamination.patch \ 16 file://0001-configure.ac.in-fix-host-contamination.patch \
18 file://0001-Makefile.in-don-t-use-the-internal-lua.patch \ 17 file://0001-Makefile.in-don-t-use-the-internal-lua.patch \
19 file://0001-autogen.sh-generate-configure.ac-only.patch \
20 file://0001-configure.ac.in-not-check-clang-on-host.patch \
21 file://0001-configure.ac.in-Allow-dynamic-linking-against-ndpi-3.patch \ 18 file://0001-configure.ac.in-Allow-dynamic-linking-against-ndpi-3.patch \
22 file://0001-Follow-rrd-post-1.8-change.patch \ 19 file://0001-luaengine-Use-lua-5.5-API-signature-for-lua_newstate.patch \
23 file://ntopng.service \ 20 file://ntopng.service \
24 " 21 "
25 22
26
27# don't use the lua under thirdparty as it supports cross compiling badly 23# don't use the lua under thirdparty as it supports cross compiling badly
28export LUA_LIB = "${STAGING_LIBDIR}/liblua.a" 24export LUA_LIB = "-llua"
29 25export LUA_INC = "-I${STAGING_INCDIR}"
26export NDPI_CUST_INC = "-I${STAGING_INCDIR}/ndpi"
27export NDPI_CUST_LIB = "-lndpi"
30LDFLAGS:append:mipsarch = " -latomic" 28LDFLAGS:append:mipsarch = " -latomic"
31LDFLAGS:append:powerpc = " -latomic" 29LDFLAGS:append:powerpc = " -latomic"
32LDFLAGS:append:riscv32 = " -latomic" 30LDFLAGS:append:riscv32 = " -latomic"
31
33inherit autotools-brokensep gettext pkgconfig systemd 32inherit autotools-brokensep gettext pkgconfig systemd
34 33
34EXTRA_OECONF += "--with-dynamic-ndpi"
35
35do_install:append() { 36do_install:append() {
36 install -d ${D}${systemd_unitdir}/system/ 37 install -d ${D}${systemd_unitdir}/system/
37 install -m 0644 ${UNPACKDIR}/ntopng.service ${D}${systemd_unitdir}/system 38 install -m 0644 ${UNPACKDIR}/ntopng.service ${D}${systemd_unitdir}/system