# Created by: Babak Farrokhi # $FreeBSD: head/net-mgmt/fastnetmon/Makefile 413746 2016-04-21 16:43:14Z swills $ PORTNAME= fastnetmon PORTVERSION= 1.1.2 DISTVERSIONPREFIX= v 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_powerpc64= Does not build LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ liblog4cpp.so:devel/log4cpp USE_GITHUB= yes GH_ACCOUNT= FastVPSEestiOu USERS= ${PORTNAME} GROUPS= ${PORTNAME} USES= cmake CMAKE_SOURCE_PATH= ${WRKSRC}/src USE_RC_SUBR= ${PORTNAME} OPTIONS_DEFINE= DOCS PORTDOCS= * CFLAGS_i386= -march=i586 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 post-install: ${MV} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf \ ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample cd ${WRKSRC} && ${COPYTREE_SHARE} "README.md docs" ${STAGEDIR}${DOCSDIR} ${MKDIR} ${STAGEDIR}/var/run/fastnetmon ${STAGEDIR}/var/log/fastnetmon .include