Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nfdump/
Date: Sat, 01 Oct 2022 00:34:40
Message-Id: 1664584425.d28ec407eb8aa725f8aa961007a1d6afd4d1e5fd.sam@gentoo
1 commit: d28ec407eb8aa725f8aa961007a1d6afd4d1e5fd
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 00:32:22 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 00:33:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d28ec407
7
8 net-analyzer/nfdump: add 1.7.0.1
9
10 Bug: https://bugs.gentoo.org/873745
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 net-analyzer/nfdump/Manifest | 1 +
14 net-analyzer/nfdump/nfdump-1.7.0.1.ebuild | 85 +++++++++++++++++++++++++++++++
15 2 files changed, 86 insertions(+)
16
17 diff --git a/net-analyzer/nfdump/Manifest b/net-analyzer/nfdump/Manifest
18 index 00d4e7ade1ac..b3729d0617ac 100644
19 --- a/net-analyzer/nfdump/Manifest
20 +++ b/net-analyzer/nfdump/Manifest
21 @@ -1,2 +1,3 @@
22 DIST nfdump-1.6.23.tar.gz 568879 BLAKE2B ca844f87e02fb3761d5b470cac11beada9873b0c7e3e9ca7ccc7899d57f0cfd96329698ac84467a55d683e83ce16c2b114a571845c7cb6069addcdd5d4a43903 SHA512 e3f79af69a170985fcbd1757fab86e90840d040cf7a6214c7f9851ed59695d3844a15269904c3ba989b6b6ed2ddf29fd19a493165d3037e49aa2bb69b831f168
23 DIST nfdump-1.6.24.tar.gz 647945 BLAKE2B 6f054c7ccdbc6c5052d1c4655509414b9acc7de320152e932dd31d6cc9eb915b73efa29e42a212ea206c4619c9e025bfd751762808fd8136c38d4edb72f4fabf SHA512 b1e092663ce245247af721565139eb0a264918747e6c0695c59f0b70a99049e92d79674d75c248f60aa832949d7e13027887cc825e393fce7dc5571771bce1d7
24 +DIST nfdump-1.7.0.1.tar.gz 740435 BLAKE2B dd3d3e63aa076b32e0c9e897b40d3ee8368990792b1a483b69a448dadd7389c23df9800910baad0c5a241a480c5961616c70040fdce992b2a67e3be6680e715b SHA512 5b5da57016dc826650ba80a80a881ab89034778316f47c6797dbc902ed6af6d77cfb722356c3a1d92a4239a934178df56ff4c6cb3bf77e029232e02b905ec1a8
25
26 diff --git a/net-analyzer/nfdump/nfdump-1.7.0.1.ebuild b/net-analyzer/nfdump/nfdump-1.7.0.1.ebuild
27 new file mode 100644
28 index 000000000000..db24ffe43a66
29 --- /dev/null
30 +++ b/net-analyzer/nfdump/nfdump-1.7.0.1.ebuild
31 @@ -0,0 +1,85 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit autotools flag-o-matic toolchain-funcs
38 +
39 +DESCRIPTION="A set of tools to collect and process netflow data"
40 +HOMEPAGE="https://github.com/phaag/nfdump"
41 +SRC_URI="https://github.com/phaag/nfdump/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0/${PV}"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="debug doc jnat ftconv nfpcapd nfprofile nftrack nsel readpcap sflow"
47 +
48 +REQUIRED_USE="?? ( jnat nsel )"
49 +
50 +RDEPEND="
51 + app-arch/bzip2
52 + sys-libs/zlib
53 + elibc_musl? ( sys-libs/fts-standalone )
54 + ftconv? ( net-analyzer/flow-tools )
55 + nfpcapd? ( net-libs/libpcap )
56 + nfprofile? ( net-analyzer/rrdtool )
57 + nftrack? ( net-analyzer/rrdtool )
58 + readpcap? ( net-libs/libpcap )
59 +"
60 +DEPEND="${RDEPEND}"
61 +BDEPEND="
62 + sys-devel/flex
63 + virtual/yacc
64 + doc? (
65 + app-doc/doxygen
66 + media-gfx/graphviz
67 + )
68 +"
69 +
70 +PATCHES=(
71 + "${FILESDIR}"/${PN}-1.6.19-libft.patch
72 +)
73 +
74 +DOCS=( AUTHORS ChangeLog README.md )
75 +
76 +src_prepare() {
77 + default
78 +
79 + eautoreconf
80 +
81 + if use doc; then
82 + doxygen -u doc/Doxyfile.in || die
83 + fi
84 +}
85 +
86 +src_configure() {
87 + tc-export CC
88 +
89 + # bug #853763
90 + use elibc_musl && append-libs "-lfts"
91 +
92 + # --without-ftconf is not handled well, bug #322201
93 + econf \
94 + $(use ftconv && echo "--enable-ftconv --with-ftpath=/usr") \
95 + $(use nfpcapd && echo --enable-nfpcapd) \
96 + $(use nfprofile && echo --enable-nfprofile) \
97 + $(use nftrack && echo --enable-nftrack) \
98 + $(use_enable debug devel) \
99 + $(use_enable jnat) \
100 + $(use_enable nsel) \
101 + $(use_enable readpcap) \
102 + $(use_enable sflow)
103 +}
104 +
105 +src_install() {
106 + default
107 +
108 + find "${ED}" -name '*.la' -delete || die
109 +
110 + newinitd "${FILESDIR}"/nfcapd.initd nfcapd
111 + newconfd "${FILESDIR}"/nfcapd.confd nfcapd
112 +
113 + if use doc; then
114 + dodoc -r doc/html
115 + fi
116 +}