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" +}
