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-21 07:16:54 -0700
commitcac520a71a5aafe5c4b809aa4049ad50b249637a (patch)
treec36eccd7cedfee5e90bc584184b4680d3e25b44d
parentdc4c959d6cb20e462725a3c2ee0fc76c6fd90f7e (diff)
downloadmeta-openembedded-cac520a71a5aafe5c4b809aa4049ad50b249637a.tar.gz
ntopng: Upgrade to 6.6
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.patch33
-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.patch28
-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.patch152
-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/ntopng_6.6.bb (renamed from meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb)16
8 files changed, 156 insertions, 227 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..13fac50b7f 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,31 @@ 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@@ -32,7 +32,6 @@ MONGOOSE_INC=-I$(MONGOOSE_HOME)
22 LUA_PLATFORM=generic 20 LUA_PLATFORM=generic
23 LUA_HOME=${PWD}/third-party/lua-5.4.3 21 LUA_HOME=${PWD}/third-party/lua-5.4.6
24 LUA_INC=-I$(LUA_HOME)/src 22 LUA_INC=-I$(LUA_HOME)/src
25-LUA_LIB=$(LUA_HOME)/src/liblua.a 23-LUA_LIB=$(LUA_HOME)/src/liblua.a
26 24
27 ifeq ($(OS),Linux) 25 CLICKHOUSE_HOME=@CLICKHOUSE_HOME@
28 LUA_PLATFORM=linux 26 CLICKHOUSE_INC=
29@@ -102,7 +101,6 @@ RPM_PKG = $(TARGET)-$(NTOPNG_VERSION)-@REVISION@.$(PLATFORM).rpm 27@@ -50,7 +49,7 @@ else ifeq ($(OS),Darwin)
30 RPM_DATA_PKG = $(TARGET)-data-$(NTOPNG_VERSION)-@REVISION@.noarch.rpm 28 LUA_PLATFORM=macosx
29 else ifeq ($(OS), $(filter $(OS), FreeBSD))
30 LUA_PLATFORM=freebsd
31- LUA_LIB=/usr/local/lib/liblua-5.3.a
32+ LUA_LIB=liblua.a
33 endif
34
31 ###### 35 ######
36@@ -132,7 +131,7 @@ HEADERS = $(wildcard include/*.h) $(wild
37 INC = $(wildcard src/*.inc)
38 OBJECTS_NO_MAIN := $(filter-out src/main.o,$(OBJECTS))
32 39
33-LIB_TARGETS = $(LUA_LIB) 40-TEST_FILES = $(wildcard tests/src/*.cpp)
41+TEST_FILES = $(wildcard tests/src/*.cpp)
42 TEST_HEADERS = $(wildcard tests/include/*.h)
34 43
35 ifneq ($(HAS_ZEROMQ), 0) 44 %.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..a9bef50cce 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,17 @@ 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,
25 fi 23 NDPI_CUST_INC="-I$withval -I$withval/../lib/third_party/include"
24 ])
26 25
27 PKG_CHECK_MODULES([NDPI], [libndpi >= 2.0], [ 26-NDPI_INC=`echo $NDPI_CFLAGS | sed -e "s/[ ]*$//"`
28- NDPI_INC=`echo $NDPI_CFLAGS | sed -e "s/[ ]*$//"` 27-NDPI_LIB=
29- # Use static libndpi library as building against the dynamic library fails 28+NDPI_INC="$NDPI_CFLAGS"
30- NDPI_LIB="-Wl,-Bstatic $NDPI_LIBS -Wl,-Bdynamic" 29+NDPI_LIB="$NDPI_LIBS"
31- #NDPI_LIB="$NDPI_LIBS" 30+
32+ NDPI_INC="$NDPI_CFLAGS" 31 NDPI_LIB_DEP=
33+ NDPI_LIB="$NDPI_LIBS" 32
34 NDPI_LIB_DEP= 33 AS_VAR_IF(with_dynamic_ndpi, no, [
35 ], [
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..852116dec4 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,22 @@ 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@@ -490,7 +404,7 @@ if test -d ${TMP_CLICKHOUSE_HOME}; then
63- AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl]) 152 CLICKHOUSE_HOME=${TMP_CLICKHOUSE_HOME}
64- SSL_INC="-I/usr/local/opt/openssl/include"
65- SSL_LIB="-L/usr/local/opt/openssl/lib -lssl -lcrypto"
66- dnl Workaround for FreeBSD
67- elif test -f "/usr/lib/libssl.so"; then
68- AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl])
69- SSL_INC="-I/usr/include"
70- SSL_LIB="-L/usr/lib -lssl -lcrypto"
71- else
72- echo "Please install openssl-dev(el) package prerequisite"
73- exit -1
74- fi
75+ echo "Please install openssl-dev(el) package prerequisite"
76+ exit -1
77 fi 153 fi
78 154 echo "Using clickhouse-cpp stored at ${CLICKHOUSE_HOME}"
79 AC_CHECK_LIB([gcrypt], [gcry_cipher_checktag], [LIBS="${LIBS} -lgcrypt"]) 155-
80-- 156+
812.25.1 157 AC_DEFINE_UNQUOTED(NTOPNG_PRO_GIT_RELEASE, "r${PRO_GIT_RELEASE}", [ntopng professional release])
82 158 AC_DEFINE_UNQUOTED(NTOPNG_PRO_GIT_DATE, "${PRO_GIT_DATE}", [ntopng professional date])
159 DUMMY=`cd ./pro; ${MAKE} build`
160@@ -568,7 +482,7 @@ AS_VAR_IF(with_hiredis, yes, [
161 else
162 pkg-config --exists hiredis
163 if test "$?" -ne 1; then
164- HIREDIS_INC="`pkg-config --cflags hiredis` -I/usr/include/hiredis"
165+ HIREDIS_INC="`pkg-config --cflags hiredis`"
166 if test $SYSTEM = "FreeBSD" && $FREEBSD_VERSION != "15"; then
167 dnl> Note: on freebsd 15 .a is not installed
168 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/ntopng_5.2.1.bb b/meta-networking/recipes-support/ntopng/ntopng_6.6.bb
index 014706893a..d0d4a7d694 100644
--- a/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb
+++ b/meta-networking/recipes-support/ntopng/ntopng_6.6.bb
@@ -11,26 +11,24 @@ 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 = "9c034502dd7c389e840c09f05bcae0577780c716"
15SRC_URI = "git://github.com/ntop/ntopng.git;protocol=https;branch=5.2-stable \ 15SRC_URI = "git://github.com/ntop/ntopng.git;protocol=https;branch=6.6-stable;tag=${PV} \
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 \
23 file://ntopng.service \ 19 file://ntopng.service \
24 " 20 "
25 21
26
27# don't use the lua under thirdparty as it supports cross compiling badly 22# don't use the lua under thirdparty as it supports cross compiling badly
28export LUA_LIB = "${STAGING_LIBDIR}/liblua.a" 23export LUA_LIB = "${STAGING_LIBDIR}/liblua.a"
29 24
30LDFLAGS:append:mipsarch = " -latomic" 25LDFLAGS:append:mipsarch = " -latomic"
31LDFLAGS:append:powerpc = " -latomic" 26LDFLAGS:append:powerpc = " -latomic"
32LDFLAGS:append:riscv32 = " -latomic" 27LDFLAGS:append:riscv32 = " -latomic"
33inherit autotools-brokensep gettext pkgconfig systemd 28
29inherit autotools gettext pkgconfig systemd
30
31EXTRA_OECONF += "--with-dynamic-ndpi"
34 32
35do_install:append() { 33do_install:append() {
36 install -d ${D}${systemd_unitdir}/system/ 34 install -d ${D}${systemd_unitdir}/system/
@@ -44,7 +42,7 @@ FILES:${PN}-doc += "\
44 /usr/man/man8/ntopng.8" 42 /usr/man/man8/ntopng.8"
45 43
46do_configure:prepend() { 44do_configure:prepend() {
47 ${S}/autogen.sh 45 $(cd ${S} && ${S}/autogen.sh)
48} 46}
49 47
50SYSTEMD_SERVICE:${PN} = "ntopng.service" 48SYSTEMD_SERVICE:${PN} = "ntopng.service"