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.
49 lines
975 B
49 lines
975 B
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
4 years ago
|
inherit optfeature toolchain-funcs
|
||
5 years ago
|
|
||
|
DESCRIPTION="Stress test for a computer system with various selectable ways"
|
||
|
HOMEPAGE="https://kernel.ubuntu.com/~cking/stress-ng/"
|
||
|
SRC_URI="https://kernel.ubuntu.com/~cking/tarballs/${PN}/${P}.tar.xz"
|
||
|
|
||
4 years ago
|
LICENSE="GPL-2+"
|
||
5 years ago
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||
5 years ago
|
|
||
|
DEPEND="
|
||
|
dev-libs/libaio
|
||
|
dev-libs/libbsd
|
||
|
dev-libs/libgcrypt:0=
|
||
|
sys-apps/attr
|
||
5 years ago
|
sys-apps/keyutils:=
|
||
5 years ago
|
sys-libs/libcap
|
||
4 years ago
|
sys-libs/zlib
|
||
5 years ago
|
"
|
||
|
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
DOCS=( "README" "README.Android" "TODO" "syscalls.txt" )
|
||
|
|
||
3 years ago
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
# Don't install compressed man page.
|
||
|
# Respect users CFLAGS.
|
||
|
sed -e 's/stress-ng.1.gz/stress-ng.1/' -e 's/-O2//' -i Makefile
|
||
|
}
|
||
5 years ago
|
|
||
|
src_compile() {
|
||
3 years ago
|
export VERBOSE=1
|
||
5 years ago
|
tc-export CC
|
||
5 years ago
|
|
||
5 years ago
|
default
|
||
|
}
|
||
4 years ago
|
|
||
|
pkg_postinst() {
|
||
|
optfeature "AppArmor support" sys-libs/libapparmor
|
||
|
optfeature "SCTP support" net-misc/lksctp-tools
|
||
|
}
|