Сравнение nethogs-0.8.7 с nethogs-0.8.8
| /usr/portage/net-analyzer/nethogs/nethogs-0.8.8.ebuild 2025-07-29 16:22:17.244467379 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2023 Gentoo Authors |
|
| 1 |
# Copyright 1999-2025 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 | 5 | |
| 6 |
inherit fcaps toolchain-funcs |
|
| 6 |
inherit fcaps meson |
|
| 7 | 7 | |
| 8 |
DESCRIPTION="A small 'net top' tool, grouping bandwidth by process" |
|
| 8 |
DESCRIPTION="Small 'net top' tool, grouping bandwidth by process" |
|
| 9 | 9 |
HOMEPAGE="https://github.com/raboof/nethogs" |
| 10 | 10 |
SRC_URI="https://github.com/raboof/nethogs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
| 11 | 11 | |
| ... | ... | |
| 13 | 13 |
SLOT="0" |
| 14 | 14 |
KEYWORDS="amd64 ~arm ~arm64 x86" |
| 15 | 15 | |
| 16 |
RDEPEND="net-libs/libpcap |
|
| 17 |
sys-libs/ncurses:=" |
|
| 16 |
RDEPEND=" |
|
| 17 |
net-libs/libpcap |
|
| 18 |
sys-libs/ncurses:=[cxx] |
|
| 19 |
" |
|
| 18 | 20 |
DEPEND="${RDEPEND}"
|
| 19 |
BDEPEND="virtual/pkgconfig" |
|
| 20 | 21 | |
| 21 | 22 |
DOCS=( DESIGN README.decpcap.txt README.md ) |
| 22 | 23 | |
| 23 | 24 |
FILECAPS=( |
| 24 |
cap_net_admin,cap_net_raw usr/sbin/nethogs |
|
| 25 |
cap_net_admin,cap_net_raw usr/bin/nethogs |
|
| 25 | 26 |
) |
| 26 | 27 | |
| 27 |
src_compile() {
|
|
| 28 |
tc-export CC CXX |
|
| 28 |
PATCHES=( |
|
| 29 |
"${FILESDIR}"/${PN}-0.8.8-meson.patch
|
|
| 30 |
) |
|
| 29 | 31 | |
| 30 |
emake NCURSES_LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses )" ${PN}
|
|
| 31 |
} |
|
| 32 |
src_prepare() {
|
|
| 33 |
default |
|
| 32 | 34 | |
| 33 |
src_install() {
|
|
| 34 |
emake DESTDIR="${ED}" PREFIX="/usr" install
|
|
| 35 |
einstalldocs |
|
| 35 |
cat <<-EOF > determineVersion.sh || die |
|
| 36 |
#!/bin/sh |
|
| 37 |
printf "${PV}"
|
|
| 38 |
EOF |
|
| 39 |
chmod +x determineVersion.sh || die |
|
| 36 | 40 |
} |