From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F123A1382C5 for ; Mon, 15 Mar 2021 23:30:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31D38E0848; Mon, 15 Mar 2021 23:30:58 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1D0CFE0848 for ; Mon, 15 Mar 2021 23:30:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 37EF7340F6D for ; Mon, 15 Mar 2021 23:30:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 222525B8 for ; Mon, 15 Mar 2021 23:30:54 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1615850710.8c4cdd5880de5f8ea6c65e360cfb21537fa14cf4.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nethogs/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/nethogs/nethogs-0.8.6-r1.ebuild X-VCS-Directories: net-analyzer/nethogs/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8c4cdd5880de5f8ea6c65e360cfb21537fa14cf4 X-VCS-Branch: master Date: Mon, 15 Mar 2021 23:30:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c3bfb996-2526-4e64-800c-e64e16d12933 X-Archives-Hash: 9dd9af667e353a5b8cc03f5ed6edd585 commit: 8c4cdd5880de5f8ea6c65e360cfb21537fa14cf4 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Feb 22 11:04:21 2021 +0000 Commit: Sam James gentoo 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 gmail.com> Closes: https://github.com/gentoo/gentoo/pull/19587 Signed-off-by: Sam James 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" +}