You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
669 B
39 lines
669 B
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools toolchain-funcs
|
|
|
|
DESCRIPTION="top-like program for network activity"
|
|
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
|
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm ~arm64 ppc x86"
|
|
|
|
RDEPEND="
|
|
sys-libs/slang
|
|
net-libs/libpcap"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-gcc411.patch
|
|
"${FILESDIR}"/${P}-offbyone.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
eautoreconf #871408
|
|
sed -i 's/configure.in/configure.ac/' Makefile.in || die
|
|
|
|
tc-export CC
|
|
}
|
|
|
|
src_install() {
|
|
dosbin nettop
|
|
einstalldocs
|
|
}
|