View | Details | Raw Unified | Return to bug 276516 | Differences between
and this patch

Collapse All | Expand All

(-)b/net-mgmt/fastnetmon/Makefile (-12 / +11 lines)
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}
(-)b/net-mgmt/fastnetmon/distinfo (-3 / +5 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1686746794
1
TIMESTAMP = 1706176431
2
SHA256 (pavel-odintsov-fastnetmon-v1.2.5_GH0.tar.gz) = d92a1f16e60b6ab6f5c5e023a215570e9352ce9d0c9a9d7209416f8cd0227ae6
2
SHA256 (pavel-odintsov-fastnetmon-v1.2.6_GH0.tar.gz) = b6a7d1e9ba98c1c042d774bff82ea3e8bbf03085e0be43a2676e41d590f668cf
3
SIZE (pavel-odintsov-fastnetmon-v1.2.5_GH0.tar.gz) = 1383370
3
SIZE (pavel-odintsov-fastnetmon-v1.2.6_GH0.tar.gz) = 1421719
4
SHA256 (fad8757b8986226024d549a6dfb40abbab01643e.patch) = 22e739071959c4e2b88cca4ad8278c07be998505c152952d6f18b69227cc8844
5
SIZE (fad8757b8986226024d549a6dfb40abbab01643e.patch) = 2694
(-)b/net-mgmt/fastnetmon/files/fastnetmon.in (-1 / +1 lines)
Lines 24-30 load_rc_config "$name" Link Here
24
: ${fastnetmon_user:=fastnetmon}
24
: ${fastnetmon_user:=fastnetmon}
25
25
26
command=%%PREFIX%%/bin/fastnetmon
26
command=%%PREFIX%%/bin/fastnetmon
27
command_args="--daemonize --configuration_file ${fastnetmon_conf} ${fastnetmon_flags}"
27
command_args="--daemonize --configuration_file ${fastnetmon_conf} --pid_logic ${fastnetmon_flags}"
28
pidfile=/var/run/fastnetmon/$name.pid
28
pidfile=/var/run/fastnetmon/$name.pid
29
29
30
run_rc_command "$1"
30
run_rc_command "$1"
(-)b/net-mgmt/fastnetmon/pkg-plist (-4 / +3 lines)
Lines 1-11 Link Here
1
bin/fastnetmon
1
bin/fastnetmon
2
bin/fastnetmon_api_client
2
bin/fastnetmon_api_client
3
bin/fastnetmon_client
3
bin/fastnetmon_client
4
bin/notify_about_attack.sh
5
etc/networks_list
6
etc/networks_whitelist
7
man/man8/fastnetmon.8.gz
4
man/man8/fastnetmon.8.gz
8
man/man1/fastnetmon_client.1.gz
5
man/man1/fastnetmon_client.1.gz
6
@sample bin/notify_about_attack.sh.sample
7
@sample etc/networks_list.sample
8
@sample etc/networks_whitelist.sample
9
@sample etc/fastnetmon.conf.sample
9
@sample etc/fastnetmon.conf.sample
10
@dir(fastnetmon,fastnetmon) /var/run/fastnetmon
10
@dir(fastnetmon,fastnetmon) /var/run/fastnetmon
11
@dir(fastnetmon,fastnetmon) /var/log/fastnetmon_attacks
11
@dir(fastnetmon,fastnetmon) /var/log/fastnetmon_attacks
12
- 

Return to bug 276516