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: Fri Jul 12 09:30:34 UTC 2019
Modified Files:
pkgsrc/net/ndpi: Makefile PLIST buildlink3.mk distinfo
pkgsrc/net/ndpi/patches: patch-configure.seed patch-src_lib_Makefile.in
Added Files:
pkgsrc/net/ndpi/patches: patch-Makefile.am
Removed Files:
pkgsrc/net/ndpi/patches: patch-autogen.sh patch-src_lib_ndpi__main.c
patch-src_lib_third__party_include_hash.h
Log Message:
ndpi: updated to 2.8
2.8 Stable
New Supported Protocols and Services
* Added Modbus over TCP dissector
Improvements
* Wireshark Lua plugin compatibility with Wireshark 3
* Improved MDNS dissection
* Improved HTTP response code handling
* Full dissection of HTTP responses
Fixes
* Fixed false positive mining detection
* Fixed invalid TCP DNS dissection
* Releasing buffers upon realloc failures
* ndpiReader: Prevents references after free
* Endianness fixes
* Fixed IPv6 HTTP traffic dissection
* Fixed H.323 detection
Other
* Disabled ookla statistics which need to be improved
* Support for custom protocol files of arbitrary length
* Update radius.c to RFC2865
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/net/ndpi/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/ndpi/PLIST
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/ndpi/buildlink3.mk
cvs rdiff -u -r1.4 -r1.5 pkgsrc/net/ndpi/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/ndpi/patches/patch-Makefile.am
cvs rdiff -u -r1.1 -r0 pkgsrc/net/ndpi/patches/patch-autogen.sh \
pkgsrc/net/ndpi/patches/patch-src_lib_ndpi__main.c \
pkgsrc/net/ndpi/patches/patch-src_lib_third__party_include_hash.h
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/ndpi/patches/patch-configure.seed \
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.5 pkgsrc/net/ndpi/Makefile:1.6
--- pkgsrc/net/ndpi/Makefile:1.5 Thu Oct 18 16:24:29 2018
+++ pkgsrc/net/ndpi/Makefile Fri Jul 12 09:30:34 2019
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2018/10/18 16:24:29 adam Exp $
+# $NetBSD: Makefile,v 1.6 2019/07/12 09:30:34 adam Exp $
-DISTNAME= nDPI-2.4
+DISTNAME= nDPI-2.8
PKGNAME= ${DISTNAME:tl}
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=ntop/}
Index: pkgsrc/net/ndpi/PLIST
diff -u pkgsrc/net/ndpi/PLIST:1.2 pkgsrc/net/ndpi/PLIST:1.3
--- pkgsrc/net/ndpi/PLIST:1.2 Thu Oct 18 16:24:29 2018
+++ pkgsrc/net/ndpi/PLIST Fri Jul 12 09:30:34 2019
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2018/10/18 16:24:29 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2019/07/12 09:30:34 adam Exp $
bin/ndpiReader
include/ndpi/ndpi_api.h
include/ndpi/ndpi_config.h
@@ -13,4 +13,5 @@ include/ndpi/ndpi_win32.h
lib/libndpi.a
lib/libndpi.so
lib/libndpi.so.${PKGVERSION}.0
+lib/libndpi.so.2
lib/pkgconfig/libndpi.pc
Index: pkgsrc/net/ndpi/buildlink3.mk
diff -u pkgsrc/net/ndpi/buildlink3.mk:1.1 pkgsrc/net/ndpi/buildlink3.mk:1.2
--- pkgsrc/net/ndpi/buildlink3.mk:1.1 Fri Apr 8 16:51:23 2016
+++ pkgsrc/net/ndpi/buildlink3.mk Fri Jul 12 09:30:34 2019
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.1 2016/04/08 16:51:23 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2019/07/12 09:30:34 adam Exp $
BUILDLINK_TREE+= ndpi
.if !defined(NDPI_BUILDLINK3_MK)
NDPI_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.ndpi+= ndpi>=1.7
+BUILDLINK_API_DEPENDS.ndpi+= ndpi>=2.8
BUILDLINK_PKGSRCDIR.ndpi?= ../../net/ndpi
.include "../../textproc/json-c/buildlink3.mk"
Index: pkgsrc/net/ndpi/distinfo
diff -u pkgsrc/net/ndpi/distinfo:1.4 pkgsrc/net/ndpi/distinfo:1.5
--- pkgsrc/net/ndpi/distinfo:1.4 Thu Oct 18 16:24:29 2018
+++ pkgsrc/net/ndpi/distinfo Fri Jul 12 09:30:34 2019
@@ -1,12 +1,10 @@
-$NetBSD: distinfo,v 1.4 2018/10/18 16:24:29 adam Exp $
+$NetBSD: distinfo,v 1.5 2019/07/12 09:30:34 adam Exp $
-SHA1 (nDPI-2.4.tar.gz) = 6ff0d034a2badade2e1deb835594a42fc297646a
-RMD160 (nDPI-2.4.tar.gz) = 5f022327354c55a773d17e83f76d50cc68fa3c78
-SHA512 (nDPI-2.4.tar.gz) = 7c746c167ab3ebafbe8646f752c95e32d66237a0a86adeec9ded1ec7e20f62170a9b1c4e5d25594f6459f5c0f616c27c5b393151d936471590f16df3fa3fa884
-Size (nDPI-2.4.tar.gz) = 19308586 bytes
-SHA1 (patch-autogen.sh) = 61dbff4cce826994726da317667de9534030c5c1
-SHA1 (patch-configure.seed) = 885956b856b37d3f77e2c05630eee60af8ba5759
+SHA1 (nDPI-2.8.tar.gz) = 5b5f613cf55deeb040483f7c04ede7a2ed415c26
+RMD160 (nDPI-2.8.tar.gz) = c26bfadeee1db4abbf86a06fdfa338cbfaf42d9b
+SHA512 (nDPI-2.8.tar.gz) = aae757047810bbc32700ecf7ac2e5df4b93528021a50da4a0b83865a5248dfca8b1643c75aa7eeb6eac4f155638d45666db487318b2be9adb2f3412cb8ec8497
+Size (nDPI-2.8.tar.gz) = 19754226 bytes
+SHA1 (patch-Makefile.am) = 3f4649a55e519a21e1c5b645669f1febcef82d4e
+SHA1 (patch-configure.seed) = 154f2d6a690bd6e7e01862769bcf0fa4b1a86ad6
SHA1 (patch-src_include_ndpi__includes.h) = db5da9ca24ecf32fd8c264e193af280814dc74c6
-SHA1 (patch-src_lib_Makefile.in) = 60b03e8e6daaa9d882732c6fcf9897f5d843c3de
-SHA1 (patch-src_lib_ndpi__main.c) = 6a10a5318a033ce686b7fef37b0f2bf597b4eb06
-SHA1 (patch-src_lib_third__party_include_hash.h) = af82b9a7b418a5cba0c678c40d331dc5bffc0f0b
+SHA1 (patch-src_lib_Makefile.in) = 458e095e55a3b6f24166813a249350a32a1e0589
Index: pkgsrc/net/ndpi/patches/patch-configure.seed
diff -u pkgsrc/net/ndpi/patches/patch-configure.seed:1.1 pkgsrc/net/ndpi/patches/patch-configure.seed:1.2
--- pkgsrc/net/ndpi/patches/patch-configure.seed:1.1 Thu Oct 18 16:24:29 2018
+++ pkgsrc/net/ndpi/patches/patch-configure.seed Fri Jul 12 09:30:34 2019
@@ -1,19 +1,10 @@
-$NetBSD: patch-configure.seed,v 1.1 2018/10/18 16:24:29 adam Exp $
+$NetBSD: patch-configure.seed,v 1.2 2019/07/12 09:30:34 adam Exp $
-Fixes from https://github.com/ntop/nDPI/issues/600
Portability fix.
---- configure.seed.orig 2018-08-22 06:29:35.000000000 +0000
+--- configure.seed.orig 2019-03-01 17:04:18.000000000 +0000
+++ configure.seed
-@@ -10,6 +10,7 @@ AC_PROG_CC
- AM_PROG_CC_C_O
- AX_PTHREAD
-
-+NDPI_VERSION_SHORT="@NDPI_VERSION_SHORT@"
- NDPI_MAJOR="@NDPI_MAJOR@"
- NDPI_MINOR="@NDPI_MINOR@"
- NDPI_PATCH="@NDPI_PATCH@"
-@@ -104,7 +105,7 @@ AC_ARG_ENABLE([json-c],
+@@ -124,7 +124,7 @@ AC_ARG_ENABLE([json-c],
AS_IF([test "x$enable_json_c" != "xno"], [
PKG_CONFIG_PATH=/usr/local/share/pkgconfig:$PKG_CONFIG_PATH
pkg-config --exists json-c
@@ -22,18 +13,3 @@ Portability fix.
[
CFLAGS="$CFLAGS $(pkg-config --cflags json-c)"
LDFLAGS="$LDFLAGS $(pkg-config --libs json-c)"
-@@ -127,12 +128,13 @@ AC_ARG_ENABLE([debug-messages],
-
- AC_CHECK_LIB(pthread, pthread_setaffinity_np, AC_DEFINE_UNQUOTED(HAVE_PTHREAD_SETAFFINITY_NP, 1, [libc has pthread_setaffinity_np]))
-
--AC_CONFIG_FILES([Makefile example/Makefile tests/Makefile libndpi.pc src/include/ndpi_define.h])
-+AC_CONFIG_FILES([Makefile example/Makefile tests/Makefile libndpi.pc src/include/ndpi_define.h src/lib/Makefile])
- AC_CONFIG_HEADERS(src/include/ndpi_config.h)
- AC_SUBST(GIT_RELEASE)
- AC_SUBST(NDPI_MAJOR)
- AC_SUBST(NDPI_MINOR)
- AC_SUBST(NDPI_PATCH)
-+AC_SUBST(NDPI_VERSION_SHORT)
- AC_SUBST(SVN_DATE)
- AC_SUBST(JSON_C_LIB)
- AC_SUBST(PCAP_INC)
Index: pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in
diff -u pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in:1.1 pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in:1.2
--- pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in:1.1 Thu Oct 18 16:24:29 2018
+++ pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in Fri Jul 12 09:30:34 2019
@@ -1,61 +1,49 @@
-$NetBSD: patch-src_lib_Makefile.in,v 1.1 2018/10/18 16:24:29 adam Exp $
+$NetBSD: patch-src_lib_Makefile.in,v 1.2 2019/07/12 09:30:34 adam Exp $
-Add missing src/lib/Makefile.in
+Fix building on Darwin.
---- /dev/null 2018-10-18 13:00:10.000000000 +0000
+--- src/lib/Makefile.in.orig 2019-03-01 17:04:18.000000000 +0000
+++ src/lib/Makefile.in
-@@ -0,0 +1,54 @@
-+#
-+# Simple non-autotools dependent makefile
-+#
-+# ./autogen.sh
-+# cd src/lib
-+# make Makefile
-+#
-+
-+
-+#
-+# Installation directories
-+#
-+libdir = ${PREFIX}/lib
-+includedir = ${PREFIX}/include/ndpi
-+CFLAGS += -fPIC -DPIC -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION
-+RANLIB = ranlib
-+
-+OBJECTS = $(patsubst protocols/%.c, protocols/%.o, $(wildcard protocols/*.c)) $(patsubst third_party/src/%.c, third_party/src/%.o, $(wildcard third_party/src/*.c)) ndpi_main.o
-+HEADERS = $(wildcard ../include/*.h)
-+NDPI_LIB_STATIC = libndpi.a
+@@ -21,8 +21,15 @@ OBJECTS = $(patsubst protocols/%.c, pr
+ HEADERS = $(wildcard ../include/*.h)
+ NDPI_VERSION_MAJOR = @NDPI_MAJOR@
+ NDPI_LIB_STATIC = libndpi.a
+ifeq ($(OS),Darwin)
+NDPI_LIB_SHARED_BASE = libndpi.dylib
+NDPI_LIB_SHARED = libndpi.@NDPI_VERSION_SHORT@.dylib
-+LDFLAGS += -install_name ${PREFIX}/lib/${NDPI_LIB_SHARED}
++NDPI_LIB_SHARED_SHORT= libndpi.@NDPI_MAJOR@.dylib
+else
-+NDPI_LIB_SHARED_BASE = libndpi.so
-+NDPI_LIB_SHARED = $(NDPI_LIB_SHARED_BASE).@NDPI_VERSION_SHORT@
+ NDPI_LIB_SHARED_BASE = libndpi.so
+ NDPI_LIB_SHARED = $(NDPI_LIB_SHARED_BASE).@NDPI_VERSION_SHORT@
++NDPI_LIB_SHARED_SHORT= $(NDPI_LIB_SHARED_BASE).@NDPI_MAJOR@
+endif
-+NDPI_LIBS = $(NDPI_LIB_STATIC) $(NDPI_LIB_SHARED)
-+
-+all: $(NDPI_LIBS)
-+
-+ndpi_main.c: ndpi_content_match.c.inc
-+
-+$(NDPI_LIB_STATIC): $(OBJECTS)
-+ ar rc $@ $(OBJECTS)
-+ $(RANLIB) $@
-+
-+$(NDPI_LIB_SHARED): $(OBJECTS)
-+ $(CC) -shared -fPIC ${LDFLAGS} -o $@ $(OBJECTS)
-+ ln -Fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE)
-+
-+%.o: %.c $(HEADERS) Makefile
-+ $(CC) $(CFLAGS) -c $< -o $@
-+
-+clean:
-+ /bin/rm -f $(NDPI_LIB_STATIC) $(OBJECTS) *.o *.so *.lo
-+
-+install: $(NDPI_LIBS)
-+ mkdir -p $(DESTDIR)$(libdir)
-+ cp $(NDPI_LIBS) $(DESTDIR)$(libdir)/
-+ ln -Fs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE)
-+ mkdir -p $(DESTDIR)$(includedir)
-+ cp ../include/*.h $(DESTDIR)$(includedir)
+ NDPI_LIBS = $(NDPI_LIB_STATIC) $(NDPI_LIB_SHARED)
+
+ ifneq ($(OS),Windows_NT)
+@@ -30,8 +37,7 @@ OS := $(shell uname)
+ endif
+
+ ifeq ($(OS),Darwin)
+-CC=clang
+-SONAME_FLAG=
++SONAME_FLAG=-install_name $(libdir)/${NDPI_LIB_SHARED}
+ else
+ SONAME_FLAG=-Wl,-soname,$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
+ endif
+@@ -47,7 +53,7 @@ $(NDPI_LIB_STATIC): $(OBJECTS)
+ $(NDPI_LIB_SHARED): $(OBJECTS)
+ $(CC) -shared -fPIC $(SONAME_FLAG) -o $@ $(OBJECTS)
+ ln -Ffs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE)
+- ln -Ffs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
++ ln -Ffs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_SHORT)
+
+ %.o: %.c $(HEADERS) Makefile
+ $(CC) $(CFLAGS) -c $< -o $@
+@@ -62,6 +68,6 @@ install: $(NDPI_LIBS)
+ mkdir -p $(DESTDIR)$(libdir)
+ cp $(NDPI_LIBS) $(DESTDIR)$(libdir)/
+ ln -Ffs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE)
+- ln -Ffs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
++ ln -Ffs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_SHORT)
+ mkdir -p $(DESTDIR)$(includedir)
+ cp ../include/*.h $(DESTDIR)$(includedir)
Added files:
Index: pkgsrc/net/ndpi/patches/patch-Makefile.am
diff -u /dev/null pkgsrc/net/ndpi/patches/patch-Makefile.am:1.1
--- /dev/null Fri Jul 12 09:30:34 2019
+++ pkgsrc/net/ndpi/patches/patch-Makefile.am Fri Jul 12 09:30:34 2019
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile.am,v 1.1 2019/07/12 09:30:34 adam Exp $
+
+Use standard pkgconfigdir.
+
+--- Makefile.am.orig 2019-07-11 10:20:02.000000000 +0000
++++ Makefile.am
+@@ -1,7 +1,7 @@
+ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = src/lib example tests
+
+-pkgconfigdir = $(prefix)/libdata/pkgconfig
++pkgconfigdir = $(prefix)/lib/pkgconfig
+ pkgconfig_DATA = libndpi.pc
+
+ EXTRA_DIST = autogen.sh
Home |
Main Index |
Thread Index |
Old Index