From owner-svn-ports-all@freebsd.org Wed Sep 23 17:15:14 2020 Return-Path: Delivered-To: svn-ports-all@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 9205F3FF3F1; Wed, 23 Sep 2020 17:15:14 +0000 (UTC) (envelope-from pkubaj@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 4BxPv63KqSz3dWt; Wed, 23 Sep 2020 17:15:14 +0000 (UTC) (envelope-from pkubaj@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 56FD81413B; Wed, 23 Sep 2020 17:15:14 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08NHFEkU060627; Wed, 23 Sep 2020 17:15:14 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08NHFDLa060621; Wed, 23 Sep 2020 17:15:13 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202009231715.08NHFDLa060621@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Wed, 23 Sep 2020 17:15:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r549755 - in head/net-mgmt/fastnetmon: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/net-mgmt/fastnetmon: . files X-SVN-Commit-Revision: 549755 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2020 17:15:14 -0000 Author: pkubaj Date: Wed Sep 23 17:15:13 2020 New Revision: 549755 URL: https://svnweb.freebsd.org/changeset/ports/549755 Log: net-mgmt/fastnetmon: enable luajit on powerpc64 Use luajit-openresty, since main luajit port doesn't support powerpc64. Add extra patches to replace luajit-2.0 with luajit-2.1. Added: head/net-mgmt/fastnetmon/files/extra-patch-src_fast__library.h (contents, props changed) head/net-mgmt/fastnetmon/files/extra-patch-src_netflow__plugin_netflow__collector.cpp (contents, props changed) Modified: head/net-mgmt/fastnetmon/Makefile Modified: head/net-mgmt/fastnetmon/Makefile ============================================================================== --- head/net-mgmt/fastnetmon/Makefile Wed Sep 23 17:07:58 2020 (r549754) +++ head/net-mgmt/fastnetmon/Makefile Wed Sep 23 17:15:13 2020 (r549755) @@ -4,7 +4,7 @@ PORTNAME= fastnetmon PORTVERSION= 1.1.4 DISTVERSIONPREFIX= v -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net-mgmt security MAINTAINER= farrokhi@FreeBSD.org @@ -48,6 +48,10 @@ CMAKE_INSTALL_PREFIX= ${PREFIX} .if ${ARCH} == amd64 || ${ARCH} == i386 LIB_DEPENDS+= libluajit-5.1.so:lang/luajit +.elif ${ARCH} == powerpc64 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_fast__library.h \ + ${FILESDIR}/extra-patch-src_netflow__plugin_netflow__collector.cpp +LIB_DEPENDS+= libluajit-5.1.so:lang/luajit-openresty .else CMAKE_ARGS+= -DENABLE_LUA_SUPPORT:BOOL=OFF .endif Added: head/net-mgmt/fastnetmon/files/extra-patch-src_fast__library.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/fastnetmon/files/extra-patch-src_fast__library.h Wed Sep 23 17:15:13 2020 (r549755) @@ -0,0 +1,11 @@ +--- src/fast_library.h.orig 2020-09-23 17:00:00 UTC ++++ src/fast_library.h +@@ -25,7 +25,7 @@ + #include "libpatricia/patricia.h" + + #ifdef ENABLE_LUA_HOOKS +-#include ++#include + #endif + + #define TCP_FIN_FLAG_SHIFT 1 Added: head/net-mgmt/fastnetmon/files/extra-patch-src_netflow__plugin_netflow__collector.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/fastnetmon/files/extra-patch-src_netflow__plugin_netflow__collector.cpp Wed Sep 23 17:15:13 2020 (r549755) @@ -0,0 +1,11 @@ +--- src/netflow_plugin/netflow_collector.cpp.orig 2020-09-23 17:05:19 UTC ++++ src/netflow_plugin/netflow_collector.cpp +@@ -28,7 +28,7 @@ + #include "log4cpp/Priority.hh" + + #ifdef ENABLE_LUA_HOOKS +-#include ++#include + #endif + + #ifdef ENABLE_LUA_HOOKS