mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-analyzer/nfdump: add 1.7.6
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST nfdump-1.7.2.tar.gz 697405 BLAKE2B cf52f2cca5d80070bc00c7a7a87cc4820f04904ddeeebd4fc93cf3a2433bcf5798191daa86f0bfc7ee1f2f92e5d8bb087114d2c17e32b641a224189aeb54f822 SHA512 858d0aaae24f2e38f3708db9fd5cd40e99a6a50d5da5738c8ce4bf898fb153ce439c504d5fe8fb3c296d0069511a6f229ebdfc117f849a482e5ffdf457f06003
|
||||
DIST nfdump-1.7.4.tar.gz 756319 BLAKE2B 441fb5d3fcb4b83bfc42861eac67bf96ac7c7d6a44afd47c4e16615b22261e1628a1bffc645071817eb9085857ca3a3b632fd265dc897cf9af8fce2999f86787 SHA512 be65aeee9b982b30633102b3ca0f84eab280ca4fda4544be458a2387d051e62517127a2625bbc4329a844550a613df67f5015cc5a90a8e4b6a8c65d045650ee2
|
||||
DIST nfdump-1.7.5.tar.gz 835261 BLAKE2B 60b92395c7c3ccdd7b7d5a1b05bc2b69aeef872a40eb32cad76b99f6fd9e5960c1433812063ee7135f23f13031d5cde08ed60918bbb8688448515eabc97fc79e SHA512 80223a5bb28ccedd955bee94771284e845bbd76520cefb70f7c87bad2fb209885ae170fc710f03edabe06c61f4776c3789493358187cb3273bd4217ebcbbe1dd
|
||||
DIST nfdump-1.7.6.tar.gz 844753 BLAKE2B 7a87aa9fe8c6ab71d9ce7921720b38244d7f289f904a468325ce3071b0f11934d89763fefdb21bfc402251253ba15aff831cb6e4147a77a089347364b7f8bacd SHA512 28a925d66f1c189560f69a28c8eb0798e6cfa903e17b0b89bb3b686f096d882b4c2ac6d9c22e6643560fa552bcec89b326bc7cb1ab2eda92f514e7dea36e75b9
|
||||
|
||||
105
net-analyzer/nfdump/nfdump-1.7.6.ebuild
Normal file
105
net-analyzer/nfdump/nfdump-1.7.6.ebuild
Normal file
@@ -0,0 +1,105 @@
|
||||
# Copyright 1999-2025 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/yacc
|
||||
sys-devel/flex
|
||||
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() {
|
||||
# Needs flex
|
||||
unset LEX
|
||||
|
||||
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=${EPREFIX}/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" "${EPREFIX}/usr")
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test(){
|
||||
pushd src/test || die
|
||||
emake -j1 check-TESTS
|
||||
popd || die
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user