Lines 1-9
Link Here
|
1 |
PORTNAME= fastnetmon |
1 |
PORTNAME= fastnetmon |
2 |
PORTVERSION= 1.2.5 |
2 |
PORTVERSION= 1.2.6 |
3 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSIONPREFIX= v |
4 |
PORTREVISION= 3 |
|
|
5 |
CATEGORIES= net-mgmt security |
4 |
CATEGORIES= net-mgmt security |
6 |
|
5 |
|
|
|
6 |
PATCH_SITES= https://github.com/pavel-odintsov/${PORTNAME}/commit/ |
7 |
PATCHFILES= fad8757b8986226024d549a6dfb40abbab01643e.patch:-p1 |
8 |
|
7 |
MAINTAINER= farrokhi@FreeBSD.org |
9 |
MAINTAINER= farrokhi@FreeBSD.org |
8 |
COMMENT= Very fast DDoS analyzer with sflow/netflow/mirror support |
10 |
COMMENT= Very fast DDoS analyzer with sflow/netflow/mirror support |
9 |
WWW= https://fastnetmon.com |
11 |
WWW= https://fastnetmon.com |
Lines 20-32
LIB_DEPENDS= libboost_regex.so:devel/boost-libs \
Link Here
|
20 |
libjson-c.so:devel/json-c \ |
22 |
libjson-c.so:devel/json-c \ |
21 |
libbson-1.0.so:devel/libbson \ |
23 |
libbson-1.0.so:devel/libbson \ |
22 |
libcapnp.so:devel/capnproto \ |
24 |
libcapnp.so:devel/capnproto \ |
23 |
libgrpc.so:devel/grpc142 \ |
25 |
libgrpc.so:devel/grpc \ |
24 |
libprotobuf.so:devel/protobuf \ |
26 |
libprotobuf.so:devel/protobuf \ |
25 |
libabsl_base.so:devel/abseil \ |
27 |
libabsl_base.so:devel/abseil \ |
26 |
libhiredis.so:databases/hiredis |
28 |
libhiredis.so:databases/hiredis |
27 |
|
29 |
|
28 |
USES= cmake compiler:c++17-lang pkgconfig localbase:ldflags ssl |
30 |
USES= cmake compiler:c++20-lang llvm:max=15 pkgconfig localbase:ldflags ssl |
29 |
USE_CXXSTD= c++17 |
31 |
USE_CXXSTD= c++20 |
30 |
USE_GITHUB= yes |
32 |
USE_GITHUB= yes |
31 |
GH_ACCOUNT= pavel-odintsov |
33 |
GH_ACCOUNT= pavel-odintsov |
32 |
USE_RC_SUBR= ${PORTNAME} |
34 |
USE_RC_SUBR= ${PORTNAME} |
Lines 52-61
OPTIONS_DEFINE= DOCS
Link Here
|
52 |
|
54 |
|
53 |
.include <bsd.port.options.mk> |
55 |
.include <bsd.port.options.mk> |
54 |
|
56 |
|
55 |
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) |
|
|
56 |
USES+= llvm:max=15 |
57 |
.endif |
58 |
|
59 |
.include <bsd.port.pre.mk> |
57 |
.include <bsd.port.pre.mk> |
60 |
|
58 |
|
61 |
post-patch: |
59 |
post-patch: |
Lines 67-76
post-patch:
Link Here
|
67 |
${WRKSRC}/src/man/fastnetmon.8 |
65 |
${WRKSRC}/src/man/fastnetmon.8 |
68 |
|
66 |
|
69 |
post-install: |
67 |
post-install: |
70 |
${MV} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf \ |
68 |
${INSTALL_DATA} ${WRKSRC}/src/fastnetmon.conf ${STAGEDIR}${PREFIX}/etc/fastnetmon.conf.sample |
71 |
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample |
69 |
${INSTALL_DATA} ${WRKSRC}/src/networks_list ${STAGEDIR}${PREFIX}/etc/networks_list.sample |
|
|
70 |
${INSTALL_DATA} ${WRKSRC}/src/networks_whitelist ${STAGEDIR}${PREFIX}/etc/networks_whitelist.sample |
72 |
${MKDIR} ${STAGEDIR}/var/run/fastnetmon ${STAGEDIR}/var/log/fastnetmon_attacks |
71 |
${MKDIR} ${STAGEDIR}/var/run/fastnetmon ${STAGEDIR}/var/log/fastnetmon_attacks |
73 |
${INSTALL_SCRIPT} ${WRKSRC}/src/notify_about_attack.sh ${STAGEDIR}${PREFIX}/bin |
72 |
${INSTALL_SCRIPT} ${WRKSRC}/src/notify_about_attack.sh ${STAGEDIR}${PREFIX}/bin/notify_about_attack.sh.sample |
74 |
|
73 |
|
75 |
post-install-DOCS-on: |
74 |
post-install-DOCS-on: |
76 |
cd ${WRKSRC} && ${COPYTREE_SHARE} "README.md docs" ${STAGEDIR}${DOCSDIR} |
75 |
cd ${WRKSRC} && ${COPYTREE_SHARE} "README.md docs" ${STAGEDIR}${DOCSDIR} |