blob: 47a5c48a0a0e1c3edd9762b4b941f2498d1363a5 (
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
|
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
EGIT_REPO_URI="https://github.com/Tomas-M/iotop"
inherit fcaps git-r3 linux-info toolchain-funcs
DESCRIPTION="top utility for IO (C port)"
HOMEPAGE="https://github.com/Tomas-M/iotop"
LICENSE="GPL-2+"
SLOT="0"
RDEPEND="sys-libs/ncurses:=
!sys-process/iotop"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS ~VM_EVENT_COUNTERS"
FILECAPS=(
cap_net_admin=eip usr/bin/iotop
)
src_prepare() {
sed -e 's/-D_FORTIFY_SOURCE=2//' -i Makefile || die
default
}
src_compile() {
emake V=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" NO_FLTO=1
}
src_install() {
dobin iotop
dodoc README.md
doman iotop.8
}
|