public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nethogs/
Date: Mon, 15 Mar 2021 23:30:54 +0000 (UTC)	[thread overview]
Message-ID: <1615850710.8c4cdd5880de5f8ea6c65e360cfb21537fa14cf4.sam@gentoo> (raw)

commit:     8c4cdd5880de5f8ea6c65e360cfb21537fa14cf4
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Feb 22 11:04:21 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 15 23:25:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c4cdd58

net-analyzer/nethogs: added capabilities

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/19587
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/nethogs/nethogs-0.8.6-r1.ebuild | 38 ++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/net-analyzer/nethogs/nethogs-0.8.6-r1.ebuild b/net-analyzer/nethogs/nethogs-0.8.6-r1.ebuild
new file mode 100644
index 00000000000..4cf2b0092cb
--- /dev/null
+++ b/net-analyzer/nethogs/nethogs-0.8.6-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit fcaps toolchain-funcs
+
+DESCRIPTION="A small 'net top' tool, grouping bandwidth by process"
+HOMEPAGE="https://github.com/raboof/nethogs"
+SRC_URI="https://github.com/raboof/nethogs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~x86"
+DOCS=( DESIGN README.decpcap.txt README.md )
+
+RDEPEND="
+	net-libs/libpcap
+	sys-libs/ncurses:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	virtual/pkgconfig
+"
+
+src_compile() {
+	tc-export CC CXX
+	emake NCURSES_LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses )" "${PN}"
+}
+
+src_install() {
+	emake DESTDIR="${ED}" PREFIX="/usr" install
+	einstalldocs
+}
+
+pkg_postinst() {
+	ecaps cap_net_admin,cap_net_raw "${EROOT}/usr/bin/nethogs"
+}


             reply	other threads:[~2021-03-15 23:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-15 23:30 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-08 18:54 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nethogs/ Arthur Zamarin
2025-03-08 15:33 Sam James
2025-01-25 17:03 Sam James
2023-04-25 20:57 Sam James
2022-12-16  7:51 Sam James
2022-12-16  7:51 Sam James
2022-04-05  1:11 Sam James
2021-03-15 23:30 Sam James
2021-03-15 23:30 Sam James
2021-01-05 20:51 Sam James
2020-12-29 17:14 Sam James
2020-08-20  7:31 Jeroen Roovers
2019-08-22 15:13 Jeroen Roovers
2018-09-20 15:20 Jeroen Roovers
2017-11-26 23:11 David Seifert
2017-03-28 12:05 Lars Wendler
2017-01-15  8:02 Justin Lecher
2016-12-24 10:18 Agostino Sarubbo
2016-12-24  9:47 Agostino Sarubbo
2016-01-15  6:18 Jeroen Roovers
2015-08-21  8:34 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1615850710.8c4cdd5880de5f8ea6c65e360cfb21537fa14cf4.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox