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.
This commit is contained in:
Piotr Kubaj 2020-09-23 17:15:13 +00:00
parent a21848903a
commit 1f6cfc16a9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549755
3 changed files with 27 additions and 1 deletions

View File

@ -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

View File

@ -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 <luajit-2.0/lua.hpp>
+#include <luajit-2.1/lua.hpp>
#endif
#define TCP_FIN_FLAG_SHIFT 1

View File

@ -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 <luajit-2.0/lua.hpp>
+#include <luajit-2.1/lua.hpp>
#endif
#ifdef ENABLE_LUA_HOOKS