From nobody Wed Aug 14 05:27:08 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WkGwD37fWz5Sgxc; Wed, 14 Aug 2024 05:27:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WkGwD2Lbcz3yn2; Wed, 14 Aug 2024 05:27:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723613228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kHfAewYgG6bqTSu81PUf7ns+2ZN3AHdESN8xY4Fg5tQ=; b=V9xb1vhoI4Jv2LBiu7Q/Uz7u3zXx+PGrVnFi36gK8M9swzLHBRPAG9acDm6pF6uuxQrLYI CdjV1tMBnIGBBzXi7xPswfJ0HBiLHHr9Nd1Jy2RIvpDpn1rn7rksiLfwVmPBgvr5JabD6y Pa8Va5GuCiAub+8GN5UNJmoGBchxTqV0tG/Eom5fu+yoJMOBTZtnsMtLSyi8ACHm4twoyK pnQ5TbR0jNeHACPa4vsGB8YoJk5v3ah/QNM0PtHBme6ATVmSqhan4ErSV1rakrF2Uot9GE abXROg/ZcXqxYMyJ4/JBs1cE/yyfk+MMIBOpEUfrb1aYzgZz9GlOxRGA4yANbA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723613228; a=rsa-sha256; cv=none; b=cxwc6kyLKh77HsxED+Y4N8iVzlmeGRd9MTeuDvEgp9cAOAgc6Zm9jxQUIWMnGJQfOwbsAt k5qvhMtSvuJobMITIPvsIXKAhhXoKpUnn/mjSlrazaIbbfaMeyhv89zpivWyZgIvVXmIsU El0PIBGN0dPFMNLfWOXJnKegFwpIqX/YL1gfuvcsOPKwcSpng6kgBgWa4JW9nViBqcfZsn A0U47A5juvnbOJPk7xNrTn0obEF7YhuFT9SDQzQlYk3CxZnvLH2AZBXR9EfvLjR299W8UK OzP8LFIvDbvoGShkTY85nuuof3gSTmJ5B8rq8ucwNW0EZFtKzfEqHKOqJCxRUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723613228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kHfAewYgG6bqTSu81PUf7ns+2ZN3AHdESN8xY4Fg5tQ=; b=rCLXOAzkl9uNOqLuyiMDTtutMNCr0thJsBvVoRBILg0GIX9rSBYwAfcXDAWH80iEz0sjVO LaegTZCnduE8aEn1AWc35HYiQpU5N0UEP6Xr4e2T+ydYEKC3kmUcxWjc9YYRlNFzsgrReN 9uOJlBIiIpmwNdBbHLevmkKvhDMsIr0TkbzW55ec8GWF3VpVleTdGuiBOunC9xSnUD5cfN Zd+rUCXIH3z8oUR9xW79crigAHO19sHs+ajfznZ0PmVqHAbfTd9QE0xKw14TUd9OCRIGaQ 1UO4VJDFJFmEOByX5LgcmdjOTBr9P+BEaCAp8mFtpmw+4lMoB0q7lycTcWpTzA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WkGwD1qPMzhW2; Wed, 14 Aug 2024 05:27:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47E5R8St055785; Wed, 14 Aug 2024 05:27:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47E5R8iA055782; Wed, 14 Aug 2024 05:27:08 GMT (envelope-from git) Date: Wed, 14 Aug 2024 05:27:08 GMT Message-Id: <202408140527.47E5R8iA055782@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Eugene Grosbein Subject: git: ce7dc5c30bde - main - net-mgmt/ipfixcol2: New port: High-performance NetFlow v5/v9 and IPFIX collector (RFC7011) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ce7dc5c30bde171cb3aa9c17d19c0a330e9a9909 Auto-Submitted: auto-generated The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/ports/commit/?id=ce7dc5c30bde171cb3aa9c17d19c0a330e9a9909 commit ce7dc5c30bde171cb3aa9c17d19c0a330e9a9909 Author: Marek Zarychta AuthorDate: 2024-08-08 07:15:24 +0000 Commit: Eugene Grosbein CommitDate: 2024-08-14 05:26:15 +0000 net-mgmt/ipfixcol2: New port: High-performance NetFlow v5/v9 and IPFIX collector (RFC7011) PR: 280682 Sponsored by: CESNET, z.s.p.o. Sponsored by: PANS Jarosław Signed-off-by: Eugene Grosbein --- GIDs | 2 +- UIDs | 2 +- net-mgmt/Makefile | 1 + net-mgmt/ipfixcol2/Makefile | 39 +++++++++++++++++++++++++++++++ net-mgmt/ipfixcol2/distinfo | 3 +++ net-mgmt/ipfixcol2/files/ipfixcol2.in | 30 ++++++++++++++++++++++++ net-mgmt/ipfixcol2/pkg-descr | 2 ++ net-mgmt/ipfixcol2/pkg-plist | 44 +++++++++++++++++++++++++++++++++++ 8 files changed, 121 insertions(+), 2 deletions(-) diff --git a/GIDs b/GIDs index 80afa5565441..eaf5b1588e14 100644 --- a/GIDs +++ b/GIDs @@ -481,7 +481,7 @@ valkey:*:537: # free: 538 # free: 539 # free: 540 -# free: 541 +ipfixcol2:*:541: _flowd:*:542: ejabberd:*:543: # free: 544 diff --git a/UIDs b/UIDs index 91822b11dd63..dda814603f01 100644 --- a/UIDs +++ b/UIDs @@ -486,7 +486,7 @@ valkey:*:537:537::0:0:Valkey Daemon:/nonexistent:/usr/sbin/nologin # free: 538 # free: 539 # free: 540 -# free: 541 +ipfixcol2:*:541:541::0:0:IPFIXcol2 User:/var/empty:/usr/sbin/nologin _flowd:*:542:542::0:0:flowd privilege separation user:/var/empty:/usr/sbin/nologin ejabberd:*:543:543::0:0:ejabberd pseudo user:/var/spool/ejabberd:/bin/sh # free: 544 diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 800a44212552..d0036adf6f00 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -116,6 +116,7 @@ SUBDIR += ipaudit SUBDIR += ipcad SUBDIR += ipcalc + SUBDIR += ipfixcol2 SUBDIR += iprange SUBDIR += ipv6calc SUBDIR += ipv6gen diff --git a/net-mgmt/ipfixcol2/Makefile b/net-mgmt/ipfixcol2/Makefile new file mode 100644 index 000000000000..f2bb7613e465 --- /dev/null +++ b/net-mgmt/ipfixcol2/Makefile @@ -0,0 +1,39 @@ +PORTNAME= ipfixcol2 +DISTVERSIONPREFIX= v +DISTVERSION= 2.6.0 +CATEGORIES= net-mgmt + +MAINTAINER= zarychtam@plan-b.pwste.edu.pl +COMMENT= NetFlow v5/v9 and IPFIX flow (RFC 7011) data collector +WWW= https://github.com/CESNET/ipfixcol2 + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= librdkafka.so:net/librdkafka \ + libepoll-shim.so:devel/libepoll-shim \ + libfds.so:net-mgmt/libfds + +BUILD_DEPENDS= rst2man:textproc/py-docutils +USES= cmake localbase:ldflags pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= CESNET +USE_RC_SUBR=${PORTNAME} +USERS= ${PORTNAME} +GROUPS= ${PORTNAME} +PORTEXAMPLES= * + +LDFLAGS+= -rdynamic +CXXFLAGS+= -D_GNU_SOURCE + +OPTIONS_DEFINE= EXAMPLES + +post-install: + ${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}/var/run/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/doc/data/configs/udp2json.xml ${STAGEDIR}${ETCDIR}/startup.xml.sample + +post-install-EXAMPLES-on: + cd ${WRKSRC}/doc/data && ${COPYTREE_SHARE} "configs" ${STAGEDIR}${EXAMPLESDIR} + +.include diff --git a/net-mgmt/ipfixcol2/distinfo b/net-mgmt/ipfixcol2/distinfo new file mode 100644 index 000000000000..21e6c7926aac --- /dev/null +++ b/net-mgmt/ipfixcol2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1723058329 +SHA256 (CESNET-ipfixcol2-v2.6.0_GH0.tar.gz) = 6eb9660a40638b557e3e8ffecebc356667e7678917579b33ddcb713849cf219e +SIZE (CESNET-ipfixcol2-v2.6.0_GH0.tar.gz) = 667376 diff --git a/net-mgmt/ipfixcol2/files/ipfixcol2.in b/net-mgmt/ipfixcol2/files/ipfixcol2.in new file mode 100644 index 000000000000..56e21238f8e6 --- /dev/null +++ b/net-mgmt/ipfixcol2/files/ipfixcol2.in @@ -0,0 +1,30 @@ +#!/bin/sh + +# PROVIDE: ipfixcol2 +# REQUIRE: NETWORKING SERVERS LOGIN +# BEFORE: securelevel +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf to enable 'ipfixcol2': +# +# ipfixcol2_enable="YES" +# + +. /etc/rc.subr + +name=ipfixcol2 +desc="ipfixcol2 startup script" +rcvar=ipfixcol2_enable + +load_rc_config "$name" + +: ${ipfixcol2_enable:=NO} +: ${ipfixcol2_conf:=%%PREFIX%%/etc/$name.conf} +: ${ipfixcol2_flags:=""} +: ${ipfixcol2_user:=ipfixcol2} + +command=%%PREFIX%%/bin/ipfixcol2 +command_args="-d -P /var/run/$name/$name.pid ${ipfixcol2_flags}" +pidfile=/var/run/$name/$name.pid + +run_rc_command "$1" diff --git a/net-mgmt/ipfixcol2/pkg-descr b/net-mgmt/ipfixcol2/pkg-descr new file mode 100644 index 000000000000..3536a598bd05 --- /dev/null +++ b/net-mgmt/ipfixcol2/pkg-descr @@ -0,0 +1,2 @@ +IPFIXcol2 is a flexible, high-performance NetFlow v5/v9 and IPFIX flow data +collector designed to be extensible by plugins. diff --git a/net-mgmt/ipfixcol2/pkg-plist b/net-mgmt/ipfixcol2/pkg-plist new file mode 100644 index 000000000000..b4bcb5707de9 --- /dev/null +++ b/net-mgmt/ipfixcol2/pkg-plist @@ -0,0 +1,44 @@ +@dir etc/ipfixcol2 +bin/fdsdump +bin/ipfixcol2 +bin/ipfixsend2 +include/ipfixcol2.h +include/ipfixcol2/api.h +include/ipfixcol2/message.h +include/ipfixcol2/message_garbage.h +include/ipfixcol2/message_ipfix.h +include/ipfixcol2/message_session.h +include/ipfixcol2/plugins.h +include/ipfixcol2/session.h +include/ipfixcol2/utils.h +include/ipfixcol2/verbose.h +lib/ipfixcol2/libanonymization-intermediate.so +lib/ipfixcol2/libdummy-input.so +lib/ipfixcol2/libdummy-output.so +lib/ipfixcol2/libfds-input.so +lib/ipfixcol2/libfds-output.so +lib/ipfixcol2/libforwarder-output.so +lib/ipfixcol2/libipfix-input.so +lib/ipfixcol2/libipfix-output.so +lib/ipfixcol2/libjson-kafka-output.so +lib/ipfixcol2/libjson-output.so +lib/ipfixcol2/libtcp-input.so +lib/ipfixcol2/libtimecheck-output.so +lib/ipfixcol2/libudp-input.so +lib/ipfixcol2/libviewer-output.so +libdata/pkgconfig/ipfixcol2.pc +share/man/man7/ipfixcol2-anonymization-inter.7.gz +share/man/man7/ipfixcol2-dummy-output.7.gz +share/man/man7/ipfixcol2-fds-input.7.gz +share/man/man7/ipfixcol2-fds-output.7.gz +share/man/man7/ipfixcol2-forwarder-output.7.gz +share/man/man7/ipfixcol2-ipfix-input.7.gz +share/man/man7/ipfixcol2-ipfix-output.7.gz +share/man/man7/ipfixcol2-json-kafka-output.7.gz +share/man/man7/ipfixcol2-json-output.7.gz +share/man/man7/ipfixcol2-tcp-input.7.gz +share/man/man7/ipfixcol2-timecheck-output.7.gz +share/man/man7/ipfixcol2-udp-input.7.gz +share/man/man7/ipfixcol2-viewer-output.7.gz +@sample etc/ipfixcol2/startup.xml.sample +@dir(ipfixcol2,ipfixcol2) /var/run/ipfixcol2