net-mgmt/fastnetmon: Unreak build on 12.x
- Unbreak build on 12.x - Enable netmap support - Cleanup unused options - Fix startup script PR: 270126
This commit is contained in:
parent
424e72a72e
commit
3002262c93
4 changed files with 20 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
|||
PORTNAME= fastnetmon
|
||||
PORTVERSION= 1.2.4
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-mgmt security
|
||||
|
||||
MAINTAINER= farrokhi@FreeBSD.org
|
||||
|
@ -34,17 +35,15 @@ GROUPS= ${PORTNAME}
|
|||
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
OPTIONS_DEFINE= DOCS REDIS
|
||||
|
||||
REDIS_LIB_DEPENDS= libhiredis.so:databases/hiredis
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
CXXFLAGS += -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED
|
||||
CXXFLAGS += -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED \
|
||||
-D_GNU_SOURCE
|
||||
CFLAGS_i386= -march=i586
|
||||
CMAKE_SOURCE_PATH= ${WRKSRC}/src
|
||||
CMAKE_ARGS+= -DDISABLE_PF_RING_SUPPORT=ON \
|
||||
-DENABLE_NETMAP_SUPPORT=OFF \
|
||||
CMAKE_ARGS+= -DENABLE_NETMAP_SUPPORT=ON \
|
||||
-DLINK_WITH_ABSL=ON \
|
||||
-DSET_ABSOLUTE_INSTALL_PATH=OFF \
|
||||
-DCMAKE_INSTALL_MANDIR=${PREFIX}/man
|
||||
|
@ -64,7 +63,7 @@ post-patch:
|
|||
post-install:
|
||||
${MV} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf \
|
||||
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
||||
${MKDIR} ${STAGEDIR}/var/run/fastnetmon ${STAGEDIR}/var/log/fastnetmon
|
||||
${MKDIR} ${STAGEDIR}/var/run/fastnetmon ${STAGEDIR}/var/log/fastnetmon_attacks
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/src/notify_about_attack.sh ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
post-install-DOCS-on:
|
||||
|
|
|
@ -19,12 +19,12 @@ rcvar=fastnetmon_enable
|
|||
load_rc_config "$name"
|
||||
|
||||
: ${fastnetmon_enable:=NO}
|
||||
: ${fastnetmon_conf:=%%ETCDIR%%/$name.conf}
|
||||
: ${fastnetmon_flags:=--daemonize}
|
||||
: ${fastnetmon_conf:=%%PREFIX%%/etc/$name.conf}
|
||||
: ${fastnetmon_flags:=}
|
||||
: ${fastnetmon_user:=fastnetmon}
|
||||
|
||||
command=%%PREFIX%%/bin/fastnetmon
|
||||
command_args="--configuration_file ${fastnetmon_conf} ${fastnetmon_flags}"
|
||||
command_args="--daemonize --configuration_file ${fastnetmon_conf} ${fastnetmon_flags}"
|
||||
pidfile=/var/run/fastnetmon/$name.pid
|
||||
|
||||
run_rc_command "$1"
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
--- src/netmap_plugin/netmap_collector.cpp.orig 2023-03-01 14:23:34 UTC
|
||||
+++ src/netmap_plugin/netmap_collector.cpp
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
// Disable debug messages from Netmap
|
||||
#define NETMAP_NO_DEBUG
|
||||
+typedef bool _Bool;
|
||||
#include <boost/thread.hpp>
|
||||
#include <net/netmap_user.h>
|
||||
|
|
@ -8,4 +8,4 @@ man/man8/fastnetmon.8.gz
|
|||
man/man1/fastnetmon_client.1.gz
|
||||
@sample etc/fastnetmon.conf.sample
|
||||
@dir(fastnetmon,fastnetmon) /var/run/fastnetmon
|
||||
@dir(fastnetmon,fastnetmon) /var/log/fastnetmon
|
||||
@dir(fastnetmon,fastnetmon) /var/log/fastnetmon_attacks
|
||||
|
|
Loading…
Reference in a new issue