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/nethogs/
Date: Tue, 05 Apr 2022 01:11:46
Message-Id: 1649120411.833ab329c6c662cd9133510c7617979fb9059881.sam@gentoo
1 commit: 833ab329c6c662cd9133510c7617979fb9059881
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 5 01:00:11 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 5 01:00:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=833ab329
7
8 net-analyzer/nethogs: add 0.8.7
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-analyzer/nethogs/Manifest | 1 +
13 net-analyzer/nethogs/nethogs-0.8.7.ebuild | 36 +++++++++++++++++++++++++++++++
14 2 files changed, 37 insertions(+)
15
16 diff --git a/net-analyzer/nethogs/Manifest b/net-analyzer/nethogs/Manifest
17 index b556b6df2f87..733e8a3e1c83 100644
18 --- a/net-analyzer/nethogs/Manifest
19 +++ b/net-analyzer/nethogs/Manifest
20 @@ -1 +1,2 @@
21 DIST nethogs-0.8.6.tar.gz 116720 BLAKE2B 2d3695c2138f4e88c11a8c515156a430015c2844e09dd599091ff090fd87a3c12a1c5a7d1d9d32d302512a4e027a739a6b864f8d1e549593c6f86ab749989662 SHA512 1116f2e57bbf4d9213080598d04ff41c9ae28bd3e5c45c99068c783beb109eff3ffb02f9c3610f20ef0aa53606b3c500917d5d6983496599904d8c5a35cf2a6f
22 +DIST nethogs-0.8.7.tar.gz 270631 BLAKE2B 179227d4b1fde5328e4885ce72bb28ac20482fa161afee7562546af5b403be1e851533e3861dfa2f514968aebe91a822e6b792520407853dfb1055c6d29ad121 SHA512 d965f3fa439ea9fbba83578b4272d03f396bf3cff9ae73a94936d47a3422d066d885c7f6f2a47fbe2f445a017bffa3fb3a1215976522ef0ad120fae3b95b31a2
23
24 diff --git a/net-analyzer/nethogs/nethogs-0.8.7.ebuild b/net-analyzer/nethogs/nethogs-0.8.7.ebuild
25 new file mode 100644
26 index 000000000000..67bfac5facf0
27 --- /dev/null
28 +++ b/net-analyzer/nethogs/nethogs-0.8.7.ebuild
29 @@ -0,0 +1,36 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit fcaps toolchain-funcs
36 +
37 +DESCRIPTION="A small 'net top' tool, grouping bandwidth by process"
38 +HOMEPAGE="https://github.com/raboof/nethogs"
39 +SRC_URI="https://github.com/raboof/nethogs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~ia64 ~x86"
44 +
45 +RDEPEND="net-libs/libpcap
46 + sys-libs/ncurses:="
47 +DEPEND="${RDEPEND}"
48 +BDEPEND="virtual/pkgconfig"
49 +
50 +DOCS=( DESIGN README.decpcap.txt README.md )
51 +
52 +FILECAPS=(
53 + cap_net_admin,cap_net_raw usr/sbin/nethogs
54 +)
55 +
56 +src_compile() {
57 + tc-export CC CXX
58 +
59 + emake NCURSES_LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses )" ${PN}
60 +}
61 +
62 +src_install() {
63 + emake DESTDIR="${ED}" PREFIX="/usr" install
64 + einstalldocs
65 +}