summaryrefslogtreecommitdiff
path: root/net-analyzer/nethogs/nethogs-0.8.8.ebuild
blob: a023076f3bac31bd500da2af6506e6172205ca09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit fcaps meson

DESCRIPTION="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 ~arm64 x86"

RDEPEND="
	net-libs/libpcap
	sys-libs/ncurses:=[cxx]
"
DEPEND="${RDEPEND}"

DOCS=( DESIGN README.decpcap.txt README.md )

FILECAPS=(
	cap_net_admin,cap_net_raw usr/bin/nethogs
)

PATCHES=(
	"${FILESDIR}"/${PN}-0.8.8-meson.patch
)

src_prepare() {
	default

	cat <<-EOF > determineVersion.sh || die
	#!/bin/sh
	printf "${PV}"
	EOF
	chmod +x determineVersion.sh || die
}