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