blob: a8bc9136512710b1668f5317fb9c45f260e55f84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Created by: Babak Farrokhi <farrokhi@FreeBSD.org>
# $FreeBSD$
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
LIB_DEPENDS= libboost_regex.so:${PORTSDIR}/devel/boost-libs \
liblog4cpp.so:${PORTSDIR}/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= *
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 <bsd.port.mk>
|