Index: head/net-mgmt/fastnetmon/Makefile =================================================================== --- head/net-mgmt/fastnetmon/Makefile (revision 525377) +++ head/net-mgmt/fastnetmon/Makefile (revision 525378) @@ -1,68 +1,68 @@ # Created by: Babak Farrokhi # $FreeBSD$ PORTNAME= fastnetmon PORTVERSION= 1.1.4 DISTVERSIONPREFIX= v -PORTREVISION= 1 +PORTREVISION= 2 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 BROKEN_powerpc64= Does not build LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ liblog4cpp.so:devel/log4cpp \ libluajit-5.1.so:lang/luajit \ libmongoc-1.0.so:devel/mongo-c-driver \ libjson-c.so:devel/json-c \ libbson-1.0.so:devel/libbson USES= cmake 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} 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/fastnetmon.in =================================================================== --- head/net-mgmt/fastnetmon/files/fastnetmon.in (revision 525377) +++ head/net-mgmt/fastnetmon/files/fastnetmon.in (revision 525378) @@ -1,28 +1,30 @@ #!/bin/sh # PROVIDE: fastnetmon # REQUIRE: NETWORKING SERVERS LOGIN # BEFORE: securelevel # KEYWORD: shutdown # Add the following line to /etc/rc.conf to enable 'fastnetmon': # # fastnetmon_enable="YES" # . /etc/rc.subr name=fastnetmon desc="fastnetmon startup script" rcvar=fastnetmon_enable load_rc_config "$name" : ${fastnetmon_enable:=NO} -: ${fastnetmon_user:=fastnetmon} +: ${fastnetmon_conf:=%%ETCDIR%%/$name.conf} : ${fastnetmon_flags:=--daemonize} +: ${fastnetmon_user:=fastnetmon} command=%%PREFIX%%/bin/fastnetmon +command_args="--configuration_file ${fastnetmon_conf} ${fastnetmon_flags}" pidfile=/var/run/fastnetmon/$name.pid run_rc_command "$1"