svn commit: r549755 - in head/net-mgmt/fastnetmon: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Sep 23 17:15:14 UTC 2020
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 at 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 <luajit-2.0/lua.hpp>
++#include <luajit-2.1/lua.hpp>
+ #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 <luajit-2.0/lua.hpp>
++#include <luajit-2.1/lua.hpp>
+ #endif
+
+ #ifdef ENABLE_LUA_HOOKS
More information about the svn-ports-head
mailing list