From owner-svn-ports-head@freebsd.org Sat Oct 24 15:37:42 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 82CDA44C5C3; Sat, 24 Oct 2020 15:37:42 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CJQGG2rgDz3S5y; Sat, 24 Oct 2020 15:37:42 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 45D231A7C6; Sat, 24 Oct 2020 15:37:42 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 09OFbgbc069106; Sat, 24 Oct 2020 15:37:42 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09OFbeCw069098; Sat, 24 Oct 2020 15:37:40 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <202010241537.09OFbeCw069098@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Sat, 24 Oct 2020 15:37:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r553201 - in head/net: ndpi ndpi/files ntopng X-SVN-Group: ports-head X-SVN-Commit-Author: madpilot X-SVN-Commit-Paths: in head/net: ndpi ndpi/files ntopng X-SVN-Commit-Revision: 553201 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2020 15:37:42 -0000 Author: madpilot Date: Sat Oct 24 15:37:40 2020 New Revision: 553201 URL: https://svnweb.freebsd.org/changeset/ports/553201 Log: - Update ndpi to 3.4 branch - Update ntopng to latest upstream stable commit Modified: head/net/ndpi/Makefile head/net/ndpi/distinfo head/net/ndpi/files/patch-autogen.sh head/net/ndpi/files/patch-example_Makefile.in head/net/ndpi/files/patch-src_lib_Makefile.in head/net/ndpi/pkg-plist head/net/ntopng/Makefile head/net/ntopng/distinfo Modified: head/net/ndpi/Makefile ============================================================================== --- head/net/ndpi/Makefile Sat Oct 24 14:48:15 2020 (r553200) +++ head/net/ndpi/Makefile Sat Oct 24 15:37:40 2020 (r553201) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= ndpi -PORTVERSION= 3.2.d20200721 +PORTVERSION= 3.4.d20201019 PORTEPOCH= 1 CATEGORIES= net @@ -28,7 +28,7 @@ INSTALL_TARGET= install-strip USE_GITHUB= yes GH_ACCOUNT= ntop GH_PROJECT= nDPI -GH_TAGNAME= 6735bb3 +GH_TAGNAME= 64929a7 PLIST_SUB= MAJOR_VER=${PORTVERSION:R:R} VER=${PORTVERSION:R} Modified: head/net/ndpi/distinfo ============================================================================== --- head/net/ndpi/distinfo Sat Oct 24 14:48:15 2020 (r553200) +++ head/net/ndpi/distinfo Sat Oct 24 15:37:40 2020 (r553201) @@ -1,3 +1,3 @@ -TIMESTAMP = 1596791745 -SHA256 (ntop-nDPI-3.2.d20200721-6735bb3_GH0.tar.gz) = 72ad5133db2373114559c076776b50b98281065d19f372312b94b6395fb30124 -SIZE (ntop-nDPI-3.2.d20200721-6735bb3_GH0.tar.gz) = 29585843 +TIMESTAMP = 1603197678 +SHA256 (ntop-nDPI-3.4.d20201019-64929a7_GH0.tar.gz) = 5a1d5a010c68c767deee008dabeca943a5b9897a0f936b2a68c30f6e1d9d6810 +SIZE (ntop-nDPI-3.4.d20201019-64929a7_GH0.tar.gz) = 37976447 Modified: head/net/ndpi/files/patch-autogen.sh ============================================================================== --- head/net/ndpi/files/patch-autogen.sh Sat Oct 24 14:48:15 2020 (r553200) +++ head/net/ndpi/files/patch-autogen.sh Sat Oct 24 15:37:40 2020 (r553201) @@ -1,6 +1,6 @@ ---- autogen.sh.orig 2018-12-21 16:33:57 UTC +--- autogen.sh.orig 2020-10-19 14:18:25 UTC +++ autogen.sh -@@ -5,44 +5,9 @@ NDPI_MINOR="6" +@@ -5,46 +5,6 @@ NDPI_MINOR="4" NDPI_PATCH="0" NDPI_VERSION_SHORT="$NDPI_MAJOR.$NDPI_MINOR.$NDPI_PATCH" @@ -11,10 +11,17 @@ -LIBTOOL=$(command -v libtool) -LIBTOOLIZE=$(command -v libtoolize) -AUTORECONF=$(command -v autoreconf) +-PKG_CONFIG=$(command -v pkg-config) +-FUZZY= - -if test -z $AUTOCONF; then - echo "autoconf is missing: please install it and try again" - exit +-else +- V=`autoconf --version | head -1 | cut -d ' ' -f 4` +- if [ "$V" = '2.63' ]; then +- FUZZY="dnl> " +- fi -fi - -if test -z $AUTOMAKE; then @@ -32,11 +39,17 @@ - exit -fi - +-if test -z $PKG_CONFIG; then +- echo "pkg-config is missing: please install it (apt-get install pkg-config) and try again" +- exit +-fi +- cat configure.seed | sed \ -e "s/@NDPI_MAJOR@/$NDPI_MAJOR/g" \ -e "s/@NDPI_MINOR@/$NDPI_MINOR/g" \ - -e "s/@NDPI_PATCH@/$NDPI_PATCH/g" \ +@@ -52,11 +12,3 @@ cat configure.seed | sed \ -e "s/@NDPI_VERSION_SHORT@/$NDPI_VERSION_SHORT/g" \ + -e "s/@FUZZY@/$FUZZY/g" \ > configure.ac - -autoreconf -ivf @@ -44,4 +57,5 @@ -cat configure.tmp > configure - -chmod +x configure --./configure $* +-./configure $@ +- Modified: head/net/ndpi/files/patch-example_Makefile.in ============================================================================== --- head/net/ndpi/files/patch-example_Makefile.in Sat Oct 24 14:48:15 2020 (r553200) +++ head/net/ndpi/files/patch-example_Makefile.in Sat Oct 24 15:37:40 2020 (r553201) @@ -1,22 +1,28 @@ ---- example/Makefile.in.orig 2020-03-24 12:39:12 UTC +--- example/Makefile.in.orig 2020-10-19 14:18:25 UTC +++ example/Makefile.in -@@ -8,11 +8,12 @@ HEADERS=intrusion_detection.h reader_util.h $(SRCHOME) +@@ -9,17 +9,12 @@ HEADERS=intrusion_detection.h reader_util.h $(SRCHOME) $(SRCHOME)/include/ndpi_typedefs.h $(SRCHOME)/include/ndpi_protocol_ids.h OBJS=ndpiReader.o reader_util.o intrusion_detection.o PREFIX?=@prefix@ +EXAMPLESDIR?=share/examples/ndpi +-ifneq ($(BUILD_MINGW),) +-all: +- @echo 'Examples disabled due to mingw build.' +- +-else +- all: ndpiReader @DPDK_TARGET@ - EXECUTABLE_SOURCES := ndpiReader.c + EXECUTABLE_SOURCES := ndpiReader.c ndpiSimpleIntegration.c -COMMON_SOURCES := $(filter-out $(EXECUTABLE_SOURCES),$(wildcard *.c )) +COMMON_SOURCES=intrusion_detection.c reader_util.c libndpiReader.a: $(COMMON_SOURCES:%.c=%.o) $(LIBNDPI) ar rsv libndpiReader.a $(COMMON_SOURCES:%.c=%.o) -@@ -25,10 +26,10 @@ ndpiReader: libndpiReader.a $(LIBNDPI) $(EXECUTABLE_SO +@@ -35,10 +30,10 @@ ndpiSimpleIntegration: ndpiSimpleIntegration.o - install: + install: ndpiReader mkdir -p $(DESTDIR)$(PREFIX)/bin/ - mkdir -p $(DESTDIR)$(PREFIX)/share/ndpi + mkdir -p $(DESTDIR)$(PREFIX)/$(EXAMPLESDIR)/ @@ -28,3 +34,9 @@ [ -f build/app/ndpiReader.dpdk ] && cp build/app/ndpiReader.dpdk $(DESTDIR)$(PREFIX)/bin/ || true [ -f ndpiReader.dpdk ] && cp ndpiReader.dpdk $(DESTDIR)$(PREFIX)/bin/ || true +@@ -61,5 +56,3 @@ distdir: + distclean: clean + /bin/rm -f Makefile.dpdk + /bin/rm -f Makefile +- +-endif Modified: head/net/ndpi/files/patch-src_lib_Makefile.in ============================================================================== --- head/net/ndpi/files/patch-src_lib_Makefile.in Sat Oct 24 14:48:15 2020 (r553200) +++ head/net/ndpi/files/patch-src_lib_Makefile.in Sat Oct 24 15:37:40 2020 (r553201) @@ -1,9 +1,9 @@ - /bin/rm -f libndpi.a $(OBJECTS) new file mode 100644 ---- src/lib/Makefile.in.orig 2019-10-21 13:36:38 UTC +--- src/lib/Makefile.in.orig 2020-10-19 14:18:25 UTC +++ src/lib/Makefile.in -@@ -17,24 +17,15 @@ CC = @CC@ - CFLAGS += -fPIC -DPIC -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION -O2 -g -Wall +@@ -18,30 +18,17 @@ CFLAGS += -fPIC -DPIC -I../include -Ithird_party/i + LDFLAGS = @LDFLAGS@ @ADDITIONAL_LIBS@ @LIBS@ 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)) $(patsubst ./%.c, ./%.o, $(wildcard ./*.c)) @@ -19,12 +19,18 @@ new file mode 100644 -ifneq ($(OS),Windows_NT) -OS := $(shell uname) -endif -- + BUILD_MINGW = @BUILD_MINGW@ + -ifeq ($(OS),Darwin) -CC=clang -SONAME_FLAG= -else +-ifneq ($(BUILD_MINGW),) +-NDPI_LIB_SHARED_BASE = libndpi +-NDPI_LIB_SHARED = $(NDPI_LIB_SHARED_BASE)-@NDPI_VERSION_SHORT@.dll +-else SONAME_FLAG=-Wl,-soname,$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR) +-endif -endif all: $(NDPI_LIBS) Modified: head/net/ndpi/pkg-plist ============================================================================== --- head/net/ndpi/pkg-plist Sat Oct 24 14:48:15 2020 (r553200) +++ head/net/ndpi/pkg-plist Sat Oct 24 15:37:40 2020 (r553201) @@ -4,6 +4,7 @@ include/ndpi/ndpi_classify.h include/ndpi/ndpi_config.h include/ndpi/ndpi_define.h include/ndpi/ndpi_includes.h +include/ndpi/ndpi_includes_OpenBSD.h include/ndpi/ndpi_main.h include/ndpi/ndpi_protocol_ids.h include/ndpi/ndpi_protocols.h Modified: head/net/ntopng/Makefile ============================================================================== --- head/net/ntopng/Makefile Sat Oct 24 14:48:15 2020 (r553200) +++ head/net/ntopng/Makefile Sat Oct 24 15:37:40 2020 (r553201) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= ntopng -PORTVERSION= 4.0.d20200917 +PORTVERSION= 4.0.d20201019 PORTEPOCH= 1 CATEGORIES= net @@ -36,7 +36,7 @@ PLIST_SUB= NTOPNGUSER="${USERS}" NTOPNGROUP="${GROUPS} USE_GITHUB= yes GH_ACCOUNT= ntop -GH_TAGNAME= 17bc5c0 +GH_TAGNAME= 882b255 CPE_VENDOR= ntop Modified: head/net/ntopng/distinfo ============================================================================== --- head/net/ntopng/distinfo Sat Oct 24 14:48:15 2020 (r553200) +++ head/net/ntopng/distinfo Sat Oct 24 15:37:40 2020 (r553201) @@ -1,3 +1,3 @@ -TIMESTAMP = 1601472514 -SHA256 (ntop-ntopng-4.0.d20200917-17bc5c0_GH0.tar.gz) = f5edb75e6f1b8c09c7531b9684078cf4ceb0d3cbadfbbaae455d476e01dac62e -SIZE (ntop-ntopng-4.0.d20200917-17bc5c0_GH0.tar.gz) = 43417733 +TIMESTAMP = 1603197726 +SHA256 (ntop-ntopng-4.0.d20201019-882b255_GH0.tar.gz) = 2fdd1eeb3b7cb67be71e4410e8b8ec8062fc873fdf34a53bb8886fb0e3a43b6b +SIZE (ntop-ntopng-4.0.d20201019-882b255_GH0.tar.gz) = 43417332