Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net-analyzer/nfdump: various fixes #14958

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions net-analyzer/nfdump/metadata.xml
Expand Up @@ -6,14 +6,19 @@
<name>Gentoo network monitoring and analysis project</name>
</maintainer>
<use>
<flag name="readpcap">Build nfcapd collector to read from pcap file instead ofnetwork data</flag>
<flag name="compat15">Enable read support for nfdump data files created with nfdump 1.5.x</flag>
<flag name="ftconv">Build the flow-tools to nfdump converter</flag>
<flag name="jnat">Build nfudmp to support JunOS NAT event logging</flag>
<flag name="nfpcapd">Build nfpcapd collector to create netflow data from precollected pcap traffic</flag>
<flag name="nfprofile">Build nfprofile used by NfSen</flag>
<flag name="nftrack">Build nfprofile used by PortTracker</flag>
<flag name="nsel">Build nfudmp to support NSEL/NEL event data</flag>
<flag name="readpcap">Build nfcapd collector to read from pcap file instead ofnetwork data</flag>
<flag name="sflow">Build sflow collector sfcpad</flag>
</use>
<longdescription>The nfdump tools collect and process netflow data on the command line</longdescription>
<longdescription>nfdump is a toolset to collect and process netflow and sflow
data, sent from netflow/sflow compatible devices. The toolset supports
netflow v1, v5/v7,v9,IPFIX and SFLOW.</longdescription>
<upstream>
<remote-id type="sourceforge">nfdump</remote-id>
<remote-id type="github">phaag/nfdump</remote-id>
Expand Down
71 changes: 71 additions & 0 deletions net-analyzer/nfdump/nfdump-1.6.19-r1.ebuild
@@ -0,0 +1,71 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit autotools

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/1.6.19"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc jnat ftconv nfpcapd nfprofile nftrack nsel readpcap sflow
static-libs"
REQUIRED_USE="?? ( jnat nsel )"

COMMON_DEPEND="
app-arch/bzip2
sys-libs/zlib
ftconv? ( net-analyzer/flow-tools )
nfpcapd? ( net-libs/libpcap )
nfprofile? ( net-analyzer/rrdtool )
nftrack? ( net-analyzer/rrdtool )
readpcap? ( net-libs/libpcap )
"
DEPEND="
${COMMON_DEPEND}
sys-devel/flex
virtual/yacc
doc? ( app-doc/doxygen[dot] )
"
RDEPEND="
${COMMON_DEPEND}
dev-lang/perl
"
DOCS=( AUTHORS ChangeLog README.md )

src_prepare() {
default

sed -i -e 's/AM_CFLAGS = -ggdb//' bin/Makefile.am || die

eautoreconf

if use doc; then
doxygen -u doc/Doxyfile.in || die
fi
}

src_configure() {
econf \
$(use ftconv && echo "--enable-ftconv --with-ftpath=/usr") \
$(use nfprofile && echo --enable-nfprofile) \
$(use nftrack && echo --enable-nftrack) \
$(use_enable debug devel) \
$(use_enable jnat) \
$(use_enable nfpcapd) \
$(use_enable nsel) \
$(use_enable readpcap) \
$(use_enable sflow) \
$(use_enable static-libs static)
}

src_install() {
default

use doc && dodoc -r doc/html

find "${ED}" -name '*.la' -delete || die
}