diff --git a/net-mgmt/fastnetmon/Makefile b/net-mgmt/fastnetmon/Makefile index b165b313f0ac..329e56882cb0 100644 --- a/net-mgmt/fastnetmon/Makefile +++ b/net-mgmt/fastnetmon/Makefile @@ -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 diff --git a/net-mgmt/fastnetmon/files/extra-patch-src_fast__library.h b/net-mgmt/fastnetmon/files/extra-patch-src_fast__library.h new file mode 100644 index 000000000000..8e9b1144676f --- /dev/null +++ b/net-mgmt/fastnetmon/files/extra-patch-src_fast__library.h @@ -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 diff --git a/net-mgmt/fastnetmon/files/extra-patch-src_netflow__plugin_netflow__collector.cpp b/net-mgmt/fastnetmon/files/extra-patch-src_netflow__plugin_netflow__collector.cpp new file mode 100644 index 000000000000..161ec190e2cc --- /dev/null +++ b/net-mgmt/fastnetmon/files/extra-patch-src_netflow__plugin_netflow__collector.cpp @@ -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