Index: head/net-mgmt/fastnetmon/Makefile =================================================================== --- head/net-mgmt/fastnetmon/Makefile (revision 549754) +++ head/net-mgmt/fastnetmon/Makefile (revision 549755) @@ -1,74 +1,78 @@ # Created by: Babak Farrokhi # $FreeBSD$ PORTNAME= fastnetmon PORTVERSION= 1.1.4 DISTVERSIONPREFIX= v -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net-mgmt security MAINTAINER= farrokhi@FreeBSD.org COMMENT= Very fast DDoS analyzer with sflow/netflow/mirror support LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_armv6= Does not build: invokes x86 assembler BROKEN_armv7= Does not build: invokes x86 assembler LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ liblog4cpp.so:devel/log4cpp \ libmongoc-1.0.so:devel/mongo-c-driver \ libjson-c.so:devel/json-c \ libbson-1.0.so:devel/libbson USES= cmake compiler:c++11-lang USE_GITHUB= yes GH_ACCOUNT= pavel-odintsov USERS= ${PORTNAME} GROUPS= ${PORTNAME} USE_RC_SUBR= ${PORTNAME} OPTIONS_DEFINE= DOCS REDIS REDIS_LIB_DEPENDS= libhiredis.so:databases/hiredis PORTDOCS= * CFLAGS_i386= -march=i586 CMAKE_SOURCE_PATH= ${WRKSRC}/src CMAKE_ARGS+= -DDISABLE_PF_RING_SUPPORT=ON \ -DENABLE_NETMAP_SUPPORT=OFF CMAKE_INSTALL_PREFIX= ${PREFIX} .include .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 post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/src/CMakeLists.txt @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \ s|/var/run|&/fastnetmon|g; s|/var/log|&/fastnetmon|g; \ s|"/etc/|"${PREFIX}/etc/|g; s|/root/fastnetmon|${DATADIR}|g' \ ${WRKSRC}/src/fastnetmon.conf ${WRKSRC}/src/fastnetmon.cpp @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ ${WRKSRC}/src/man/fastnetmon.1 ${WRKSRC}/src/fast_platform.h.template post-install: ${MV} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf \ ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample ${MKDIR} ${STAGEDIR}/var/run/fastnetmon ${STAGEDIR}/var/log/fastnetmon ${INSTALL_MAN} ${WRKSRC}/src/man/fastnetmon.1 ${STAGEDIR}${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/src/man/fastnetmon_client.1 ${STAGEDIR}${MANPREFIX}/man/man1 post-install-DOCS-on: cd ${WRKSRC} && ${COPYTREE_SHARE} "README.md docs" ${STAGEDIR}${DOCSDIR} .include Index: head/net-mgmt/fastnetmon/files/extra-patch-src_fast__library.h =================================================================== --- head/net-mgmt/fastnetmon/files/extra-patch-src_fast__library.h (nonexistent) +++ head/net-mgmt/fastnetmon/files/extra-patch-src_fast__library.h (revision 549755) @@ -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 Property changes on: head/net-mgmt/fastnetmon/files/extra-patch-src_fast__library.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/fastnetmon/files/extra-patch-src_netflow__plugin_netflow__collector.cpp =================================================================== --- head/net-mgmt/fastnetmon/files/extra-patch-src_netflow__plugin_netflow__collector.cpp (nonexistent) +++ head/net-mgmt/fastnetmon/files/extra-patch-src_netflow__plugin_netflow__collector.cpp (revision 549755) @@ -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 Property changes on: head/net-mgmt/fastnetmon/files/extra-patch-src_netflow__plugin_netflow__collector.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property