diff options
Diffstat (limited to 'net-analyzer/nfdump')
-rw-r--r-- | net-analyzer/nfdump/Manifest | 3 | ||||
-rw-r--r-- | net-analyzer/nfdump/files/nfdump.service | 16 | ||||
-rw-r--r-- | net-analyzer/nfdump/nfdump-1.7.4.ebuild | 96 |
3 files changed, 115 insertions, 0 deletions
diff --git a/net-analyzer/nfdump/Manifest b/net-analyzer/nfdump/Manifest index ea46e8059406..6127300f820c 100644 --- a/net-analyzer/nfdump/Manifest +++ b/net-analyzer/nfdump/Manifest @@ -1,6 +1,9 @@ AUX nfcapd.confd 230 BLAKE2B b4ef656a10aeedf1ee9b11b2ac3d429fcf91e2cc6a84ca220e2adaa6a54536358e919065d1bd98a62b530ef698fed65be77749780320685f4f457718648bbcd3 SHA512 c9afa1d1629505e77f3a0ee282b0dec79572a9ac4dd31bb3161b36ed6036dd6a8345280c2db4a8f1fc763f88f86857d96edae997ecff8e540db448fbd9a4b101 AUX nfcapd.initd 1261 BLAKE2B 092b65523720ab0f4790650764e758da8504234dc888aadf8e6512b73f0c934eee27b00ccd717bd0944d2d4aa9574b9d2afe0f3aa7e071ab59e168c7e0cc0cf3 SHA512 5e4fff0829b992be9b1a318da4a77bdc87922a6f5257c87eff41590e32995b52b27efc7fa4e56aedf844c509430cb46103d902017cb3fc5f4885b8117e58feab AUX nfdump-1.6.19-libft.patch 815 BLAKE2B 8b82ce3c93214e016b63fa593e7e8d3c8960e1d2636a9ad0cebd75e9945c73d9d42ebfcf5afe82ec10d62ed3d4bc8334670aaf46f543782b5c86ac2f60d57db1 SHA512 884458ac127497e9c3c7b5f8ed4eca60278d052ba2749efad1d267446c6a62da4417a018aca758bac6633d09ab08e699b54163300ed176510271aabf0769d3c4 +AUX nfdump.service 365 BLAKE2B aae0d69b77b01e822430585988c148c0a497123b9a90421b8a3fda5c716b9022063aec9af1d3e6c302ba64d9b57421a3e5224eb6662374ac8277661543e1b076 SHA512 41eba6c45230957bb29c9d3325f5188c10a3123fe8580bf5da843757031ff930cede410ddb337c0899f70010d2b4937ab8a57831f395c80f40fc101e8f158a3c DIST nfdump-1.7.2.tar.gz 697405 BLAKE2B cf52f2cca5d80070bc00c7a7a87cc4820f04904ddeeebd4fc93cf3a2433bcf5798191daa86f0bfc7ee1f2f92e5d8bb087114d2c17e32b641a224189aeb54f822 SHA512 858d0aaae24f2e38f3708db9fd5cd40e99a6a50d5da5738c8ce4bf898fb153ce439c504d5fe8fb3c296d0069511a6f229ebdfc117f849a482e5ffdf457f06003 +DIST nfdump-1.7.4.tar.gz 756319 BLAKE2B 441fb5d3fcb4b83bfc42861eac67bf96ac7c7d6a44afd47c4e16615b22261e1628a1bffc645071817eb9085857ca3a3b632fd265dc897cf9af8fce2999f86787 SHA512 be65aeee9b982b30633102b3ca0f84eab280ca4fda4544be458a2387d051e62517127a2625bbc4329a844550a613df67f5015cc5a90a8e4b6a8c65d045650ee2 EBUILD nfdump-1.7.2.ebuild 1764 BLAKE2B 2926473aa8b71c4e1cc515174410fc8b67b5d82034e9c971a7c0d67172f3d03b933062fe91568c84fea23ef1c3a7519782ba69c460b09254ba090cd1f6bb55e1 SHA512 2d833098bfb8722079e54e29bb6448c7fe7657012d68e86099721d851f2bbd6570488499b93e73e45c558ead6a2e73ca5c892ba509e305bedc868ccfe5e7cbf9 +EBUILD nfdump-1.7.4.ebuild 2034 BLAKE2B cd5cbb4da3d87aa8b2e11e0636a469ae99411bf2ac0811ee83823b3b72a0aceb936a74dea34189b9c0529224b47bf2783112c97f08c6b6d0575521e3a95b801a SHA512 4a24a6fa5839d6738069df17c767e331f12a0ff684ac26ee47aaa51d968ab8f63311e202450a6f447f18cb2e5cd5bfde866f0b92ea66d5d2c0146ebe2ba07e51 MISC metadata.xml 1278 BLAKE2B ad9d73532114eb0942a2b5262fe8e5f2b787993950fcd7c8bcb926f9e9e8d93ab94476265976b2e0cc41f3ea46fc6699a0bbb591d0c929208ec5e85d1b399617 SHA512 0bdbda9ccce4611ab88b746f4907dbb0c96d1e5f0dac909e2318c8bdf77de87321f65baadbb886f0c2e1b231cc30c50c70e5363cc9084285d1eaf5897c6f38cd diff --git a/net-analyzer/nfdump/files/nfdump.service b/net-analyzer/nfdump/files/nfdump.service new file mode 100644 index 000000000000..03e8443077ae --- /dev/null +++ b/net-analyzer/nfdump/files/nfdump.service @@ -0,0 +1,16 @@ +[Unit] +Description=netflow capture daemon, %I instance +Documentation=man:nfcapd(1) +After=network.target auditd.service +PartOf=nfdump.service + +[Service] +Type=forking +Environment=options="-l /var/cache/nfdump -p 2055" +ExecStart=/usr/bin/nfcapd -D -P %t/nfcapd.%I.pid $options +PIDFile=%t/nfcapd.%I.pid +KillMode=process +Restart=no + +[Install] +WantedBy=multi-user.target diff --git a/net-analyzer/nfdump/nfdump-1.7.4.ebuild b/net-analyzer/nfdump/nfdump-1.7.4.ebuild new file mode 100644 index 000000000000..5bb38c317ad6 --- /dev/null +++ b/net-analyzer/nfdump/nfdump-1.7.4.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic toolchain-funcs systemd + +DESCRIPTION="A set of tools to collect and process netflow data" +HOMEPAGE="https://github.com/phaag/nfdump" +SRC_URI="https://github.com/phaag/nfdump/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc jnat ftconv nfpcapd nfprofile nftrack nsel readpcap sflow zstd" + +REQUIRED_USE="?? ( jnat nsel )" + +RDEPEND=" + app-arch/bzip2 + app-arch/lz4:= + sys-libs/zlib + elibc_musl? ( sys-libs/fts-standalone ) + ftconv? ( net-analyzer/flow-tools ) + nfpcapd? ( net-libs/libpcap ) + nfprofile? ( net-analyzer/rrdtool ) + nftrack? ( net-analyzer/rrdtool ) + readpcap? ( net-libs/libpcap ) + zstd? ( app-arch/zstd:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-alternatives/lex + app-alternatives/yacc + doc? ( + app-text/doxygen + media-gfx/graphviz + ) +" + +QA_CONFIG_IMPL_DECL_SKIP=( + # Not available on Linux, with fallback at src/libnffile/util.h, bug #904952 + htonll +) + +PATCHES=( + "${FILESDIR}"/${PN}-1.6.19-libft.patch +) + +DOCS=( AUTHORS ChangeLog README.md ) + +src_prepare() { + default + + eautoreconf + + if use doc; then + doxygen -u doc/Doxyfile.in || die + fi +} + +src_configure() { + tc-export CC + + # bug #853763 + use elibc_musl && append-libs "-lfts" + + # --without-ftconf is not handled well, bug #322201 + local myeconfargs=( + $(usex ftconv "--enable-ftconv --with-ftpath=/usr") + $(usex nfpcapd --enable-nfpcapd) + $(usex nfprofile --enable-nfprofile) + $(usex nftrack --enable-nftrack) + $(use_enable debug devel) + $(use_enable jnat) + $(use_enable nsel) + $(use_enable readpcap) + $(use_enable sflow) + $(use_with zstd zstdpath) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + find "${ED}" -name '*.la' -type f -delete || die + + newinitd "${FILESDIR}"/nfcapd.initd nfcapd + newconfd "${FILESDIR}"/nfcapd.confd nfcapd + systemd_newunit "${FILESDIR}/nfdump.service" nfdump@.service + + if use doc; then + dodoc -r doc/html + fi +} |