pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/ndpi



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Jun 10 13:17:31 UTC 2026

Modified Files:
        pkgsrc/net/ndpi: Makefile PLIST distinfo
        pkgsrc/net/ndpi/patches: patch-configure.ac patch-src_lib_Makefile.in

Log Message:
ndpi: updated to 5.0

5.0

Major Changes

Create a new nDPI fingerprint, combining TCP fingerprint, JA4 fingepriint and TLS SHA1 certificate (or JA3S if SHA1 is missing). See: 
https://www.ntop.org/beyond-ja3-ja4-introducing-ndpi-traffic-fingerprint/
Add detection of (TLS/QUIC/HTTP) flows whose hostname was not previously resolved via DNS. See: https://www.ntop.org/when-snis-cannot-be-trusted/
Add support for an unlimited number of (custom) protocols.
Extend custom rules (see https://github.com/ntop/nDPI/blob/dev/example/protos.txt for some examples):
match via JA4
match via nDPI fingerprint
match via HTTP URL
support for category and breed in custom rules


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/net/ndpi/Makefile pkgsrc/net/ndpi/distinfo
cvs rdiff -u -r1.7 -r1.8 pkgsrc/net/ndpi/PLIST
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/ndpi/patches/patch-configure.ac
cvs rdiff -u -r1.8 -r1.9 pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/ndpi/Makefile
diff -u pkgsrc/net/ndpi/Makefile:1.15 pkgsrc/net/ndpi/Makefile:1.16
--- pkgsrc/net/ndpi/Makefile:1.15       Thu Aug  7 05:03:08 2025
+++ pkgsrc/net/ndpi/Makefile    Wed Jun 10 13:17:30 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2025/08/07 05:03:08 adam Exp $
+# $NetBSD: Makefile,v 1.16 2026/06/10 13:17:30 adam Exp $
 
-DISTNAME=      nDPI-4.14
+DISTNAME=      nDPI-5.0
 PKGNAME=       ${DISTNAME:tl}
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=ntop/}
Index: pkgsrc/net/ndpi/distinfo
diff -u pkgsrc/net/ndpi/distinfo:1.15 pkgsrc/net/ndpi/distinfo:1.16
--- pkgsrc/net/ndpi/distinfo:1.15       Thu Aug  7 05:03:08 2025
+++ pkgsrc/net/ndpi/distinfo    Wed Jun 10 13:17:30 2026
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.15 2025/08/07 05:03:08 adam Exp $
+$NetBSD: distinfo,v 1.16 2026/06/10 13:17:30 adam Exp $
 
-BLAKE2s (nDPI-4.14.tar.gz) = 94abc71938dfb2d5ee920b4241b99edf0d44c986f38b635db0f7e3b613bb0c91
-SHA512 (nDPI-4.14.tar.gz) = f7e24289aa04e19bc357c29ba00ca7d27aefcd2faf51ddf2f526b4c4d4fefd0ded33dd8e60245c0d8772b3a870304d3dda2c40f3d5ee4382342889741f122146
-Size (nDPI-4.14.tar.gz) = 48474931 bytes
-SHA1 (patch-configure.ac) = 66433ce788c42455eee7d78d423b66007f10cdeb
+BLAKE2s (nDPI-5.0.tar.gz) = 8feb37e245c7ebc745a18983ee5b947ddb7950a2bf86f08702cec7d00bc05ac2
+SHA512 (nDPI-5.0.tar.gz) = 9857aa654051d5b91089e6410a8a7faddf9dbd502bad21add9de035c59152031f6d130a4225fadb9738f7ef7ff37a4655300b582f6582658266b58b88c48eae3
+Size (nDPI-5.0.tar.gz) = 42133112 bytes
+SHA1 (patch-configure.ac) = d5646a3fae8df49fbb3502b4bcc28b6fb42f9409
 SHA1 (patch-src_include_ndpi__includes.h) = a457e8edd5795178239739d07969624638ec9474
-SHA1 (patch-src_lib_Makefile.in) = a07b742ee5b5e75e7e0297ad49b3ba4faf4242aa
+SHA1 (patch-src_lib_Makefile.in) = 883e0e10421751d684461365ed17660fec026968
 SHA1 (patch-src_lib_third__party_include_gcrypt_common.h) = 257a2c9b08793f8bca564dc7c6229f1d5168b5e1

Index: pkgsrc/net/ndpi/PLIST
diff -u pkgsrc/net/ndpi/PLIST:1.7 pkgsrc/net/ndpi/PLIST:1.8
--- pkgsrc/net/ndpi/PLIST:1.7   Fri Aug 23 17:54:05 2024
+++ pkgsrc/net/ndpi/PLIST       Wed Jun 10 13:17:30 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2024/08/23 17:54:05 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2026/06/10 13:17:30 adam Exp $
 bin/ndpiReader
 include/ndpi/ndpi_api.h
 include/ndpi/ndpi_classify.h
@@ -17,7 +17,7 @@ include/ndpi/ndpi_win32.h
 lib/libndpi.a
 lib/libndpi.so
 lib/libndpi.so.${PKGVERSION}.0
-lib/libndpi.so.4
+lib/libndpi.so.5
 lib/pkgconfig/libndpi.pc
 share/ndpi/ndpiCustomCategory.txt
 share/ndpi/ndpiProtos.txt

Index: pkgsrc/net/ndpi/patches/patch-configure.ac
diff -u pkgsrc/net/ndpi/patches/patch-configure.ac:1.3 pkgsrc/net/ndpi/patches/patch-configure.ac:1.4
--- pkgsrc/net/ndpi/patches/patch-configure.ac:1.3      Fri Aug 23 17:54:06 2024
+++ pkgsrc/net/ndpi/patches/patch-configure.ac  Wed Jun 10 13:17:31 2026
@@ -1,15 +1,15 @@
-$NetBSD: patch-configure.ac,v 1.3 2024/08/23 17:54:06 adam Exp $
+$NetBSD: patch-configure.ac,v 1.4 2026/06/10 13:17:31 adam Exp $
 
-Portability fix.
+Don't force -O2 flag.
 
---- configure.ac.orig  2024-08-23 13:34:14.169704542 +0000
+--- configure.ac.orig  2026-06-08 12:45:18.480334685 +0000
 +++ configure.ac
-@@ -138,7 +138,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-   ])
- 
- GCC_VERSION=`gcc --version | cut -d ' ' -f 3 | head -1|cut -d '.' -f 1`
--if test "${GCC_VERSION}" == "version" ; then
-+if test "${GCC_VERSION}" = "version" ; then
-   GCC_VERSION=`gcc --version | cut -d ' ' -f 4 | head -1|cut -d '.' -f 1`
- fi
- 
+@@ -56,7 +56,7 @@ AS_IF([test "${with_sanitizer+set}" = se
+   NDPI_CFLAGS="${NDPI_CFLAGS} -O0 -g3"
+ ],[
+   dnl>  Oss-fuzz doesn't really like any optimizaton flags don't set by itself
+-  AS_IF([test "x$enable_fuzztargets" != "xyes"], [NDPI_CFLAGS="${NDPI_CFLAGS} -O2"])
++  AS_IF([test "x$enable_fuzztargets" != "xyes"], [NDPI_CFLAGS="${NDPI_CFLAGS}"])
+ ])
+ AS_IF([test "${with_sanitizer+set}" = set -o "${with_thread_sanitizer+set}" = set -o "${with_memory_sanitizer+set}" = set],[
+   AS_IF([test "x$enable_gprof" = "xyes"], [

Index: pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in
diff -u pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in:1.8 pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in:1.9
--- pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in:1.8       Fri Aug 23 17:54:06 2024
+++ pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in   Wed Jun 10 13:17:31 2026
@@ -1,11 +1,11 @@
-$NetBSD: patch-src_lib_Makefile.in,v 1.8 2024/08/23 17:54:06 adam Exp $
+$NetBSD: patch-src_lib_Makefile.in,v 1.9 2026/06/10 13:17:31 adam Exp $
 
 Fix building on Darwin.
 
---- src/lib/Makefile.in.orig   2024-08-05 07:46:22.000000000 +0000
+--- src/lib/Makefile.in.orig   2025-11-17 08:11:53.000000000 +0000
 +++ src/lib/Makefile.in
-@@ -33,8 +33,15 @@ OBJECTS   = $(patsubst protocols/%.c, pr
- HEADERS   = $(wildcard ../include/*.h) $(wildcard *.h)
+@@ -42,8 +42,15 @@ OBJECTS   = $(patsubst $(srcdir)/protoco
+ HEADERS   = $(wildcard $(top_srcdir)/src/include/*.h) $(wildcard $(top_builddir)/src/include/*.h) $(wildcard $(srcdir)/*.h)
  NDPI_VERSION_MAJOR   = @NDPI_MAJOR@
  NDPI_LIB_STATIC      = libndpi.a
 +ifeq ($(OS),Darwin)
@@ -20,17 +20,17 @@ Fix building on Darwin.
  NDPI_LIBS            = $(NDPI_LIB_STATIC) $(NDPI_LIB_SHARED)
  USE_HOST_LIBGCRYPT   = @USE_HOST_LIBGCRYPT@
  
-@@ -46,8 +53,7 @@ endif
+@@ -55,8 +62,7 @@ endif
  BUILD_MINGW                    = @BUILD_MINGW@
  
  ifeq ($(OS),Darwin)
 -CC=clang -fno-color-diagnostics
 -SONAME_FLAG=
-+SONAME_FLAG=-install_name $(PREFIX)$(libdir)/${NDPI_LIB_SHARED}
++SONAME_FLAG=-install_name $(libdir)/${NDPI_LIB_SHARED}
  else
  ifneq ($(BUILD_MINGW),)
  NDPI_LIB_SHARED_BASE = libndpi
-@@ -68,7 +74,7 @@ $(NDPI_LIB_STATIC): $(OBJECTS)
+@@ -77,7 +83,7 @@ $(NDPI_LIB_STATIC): $(OBJECTS)
  $(NDPI_LIB_SHARED): $(OBJECTS)
        $(CC) -shared -fPIC $(CFLAGS) $(SONAME_FLAG) -o $@ $(LDFLAGS) $(OBJECTS) $(LIBS)
        ln -fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE)
@@ -38,13 +38,13 @@ Fix building on Darwin.
 +      ln -fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_SHORT)
  
  %.o: %.c $(HEADERS) Makefile
-       $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_$<) -c $< -o $@
-@@ -99,7 +105,7 @@ install: $(NDPI_LIBS)
-       mkdir -p $(DESTDIR)$(PREFIX)$(libdir)
-       cp $(NDPI_LIBS) $(DESTDIR)$(PREFIX)$(libdir)/
-       cp -P $(NDPI_LIB_SHARED_BASE) $(DESTDIR)$(PREFIX)$(libdir)/
--      cp -P $(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR) $(DESTDIR)$(PREFIX)$(libdir)/
-+      cp -P $(NDPI_LIB_SHARED_SHORT) $(DESTDIR)$(PREFIX)$(libdir)/
-       mkdir -p $(DESTDIR)$(PREFIX)$(includedir)
+       $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_$(notdir $<)) -c $< -o $@
+@@ -108,7 +114,7 @@ install: $(NDPI_LIBS)
+       mkdir -p $(DESTDIR)@libdir@
+       cp $(NDPI_LIBS) $(DESTDIR)@libdir@/
+       cp -P $(NDPI_LIB_SHARED_BASE) $(DESTDIR)@libdir@/
+-      cp -P $(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR) $(DESTDIR)@libdir@/
++      cp -P $(NDPI_LIB_SHARED_SHORT) $(DESTDIR)@libdir@/
+       mkdir -p $(DESTDIR)@includedir@/ndpi
        #Avoid installing private header
-       find ../include/*.h ! -name ndpi_private.h -exec cp "{}" $(DESTDIR)$(PREFIX)$(includedir)/ \;
+       # Installing header files to $(DESTDIR)@includedir@/ndpi



Home | Main Index | Thread Index | Old Index