mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-analyzer/nfdump: add 1.7.0.1
Bug: https://bugs.gentoo.org/873745 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST nfdump-1.6.23.tar.gz 568879 BLAKE2B ca844f87e02fb3761d5b470cac11beada9873b0c7e3e9ca7ccc7899d57f0cfd96329698ac84467a55d683e83ce16c2b114a571845c7cb6069addcdd5d4a43903 SHA512 e3f79af69a170985fcbd1757fab86e90840d040cf7a6214c7f9851ed59695d3844a15269904c3ba989b6b6ed2ddf29fd19a493165d3037e49aa2bb69b831f168
|
||||
DIST nfdump-1.6.24.tar.gz 647945 BLAKE2B 6f054c7ccdbc6c5052d1c4655509414b9acc7de320152e932dd31d6cc9eb915b73efa29e42a212ea206c4619c9e025bfd751762808fd8136c38d4edb72f4fabf SHA512 b1e092663ce245247af721565139eb0a264918747e6c0695c59f0b70a99049e92d79674d75c248f60aa832949d7e13027887cc825e393fce7dc5571771bce1d7
|
||||
DIST nfdump-1.7.0.1.tar.gz 740435 BLAKE2B dd3d3e63aa076b32e0c9e897b40d3ee8368990792b1a483b69a448dadd7389c23df9800910baad0c5a241a480c5961616c70040fdce992b2a67e3be6680e715b SHA512 5b5da57016dc826650ba80a80a881ab89034778316f47c6797dbc902ed6af6d77cfb722356c3a1d92a4239a934178df56ff4c6cb3bf77e029232e02b905ec1a8
|
||||
|
||||
85
net-analyzer/nfdump/nfdump-1.7.0.1.ebuild
Normal file
85
net-analyzer/nfdump/nfdump-1.7.0.1.ebuild
Normal file
@@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools flag-o-matic toolchain-funcs
|
||||
|
||||
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"
|
||||
|
||||
REQUIRED_USE="?? ( jnat nsel )"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/bzip2
|
||||
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 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
sys-devel/flex
|
||||
virtual/yacc
|
||||
doc? (
|
||||
app-doc/doxygen
|
||||
media-gfx/graphviz
|
||||
)
|
||||
"
|
||||
|
||||
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
|
||||
econf \
|
||||
$(use ftconv && echo "--enable-ftconv --with-ftpath=/usr") \
|
||||
$(use nfpcapd && echo --enable-nfpcapd) \
|
||||
$(use nfprofile && echo --enable-nfprofile) \
|
||||
$(use nftrack && echo --enable-nftrack) \
|
||||
$(use_enable debug devel) \
|
||||
$(use_enable jnat) \
|
||||
$(use_enable nsel) \
|
||||
$(use_enable readpcap) \
|
||||
$(use_enable sflow)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
|
||||
newinitd "${FILESDIR}"/nfcapd.initd nfcapd
|
||||
newconfd "${FILESDIR}"/nfcapd.confd nfcapd
|
||||
|
||||
if use doc; then
|
||||
dodoc -r doc/html
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user