diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2023-02-21 00:59:00 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2023-02-21 01:09:28 +0100 |
commit | ba9790d61196d52ebfaa5e841a79d1e39e6ae6f7 (patch) | |
tree | 4a0b21ad97a3a2fa8c5f57ab6242a528dacea634 /app-benchmarks/stress-ng | |
parent | app-dicts/aspell-lv: add 0.9.3 (diff) | |
download | gentoo-ba9790d61196d52ebfaa5e841a79d1e39e6ae6f7.tar.gz gentoo-ba9790d61196d52ebfaa5e841a79d1e39e6ae6f7.tar.bz2 gentoo-ba9790d61196d52ebfaa5e841a79d1e39e6ae6f7.zip |
app-benchmarks/stress-ng: add 0.15.04
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks/stress-ng')
-rw-r--r-- | app-benchmarks/stress-ng/Manifest | 1 | ||||
-rw-r--r-- | app-benchmarks/stress-ng/stress-ng-0.15.04.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest index 933f850cceae..e69b5df70cca 100644 --- a/app-benchmarks/stress-ng/Manifest +++ b/app-benchmarks/stress-ng/Manifest @@ -1 +1,2 @@ DIST stress-ng-0.15.03.tar.gz 3782622 BLAKE2B e980ba366e3729e6bf5ed7c13383ffd1a237a6fa01bc33037f7ad28a5e84b57cf2d75cba83143c99c8c2294e49498b0d9db9ecc83e5047d68130d593001a33f2 SHA512 67d8fc47bc8c31e4b01c7ddffe2797889380317e57b1cafec34314b78425fd371a016fd1519278ddb9f04f0c6f9f4783cde98eaadb39fbd62fd1ffa1ce0166f2 +DIST stress-ng-0.15.04.tar.gz 3797315 BLAKE2B 32e1aa2e2d9ab42e9b5c3829c4cc313688158089d0caccc275df4dcd3160830313acae8cd4ba9a3e513627714124669f7181566485373ac77b86591ae1bcb729 SHA512 8b757b7983cda4101016699bdf2181cf3fcdefc3d0439ea0e965e660b4fbcca655d6b18633395dec243066ede9c52879e74728057f2573618a0721d9dbbf9628 diff --git a/app-benchmarks/stress-ng/stress-ng-0.15.04.ebuild b/app-benchmarks/stress-ng/stress-ng-0.15.04.ebuild new file mode 100644 index 000000000000..12a6f5017085 --- /dev/null +++ b/app-benchmarks/stress-ng/stress-ng-0.15.04.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info toolchain-funcs + +DESCRIPTION="Stress test for a computer system with various selectable ways" +HOMEPAGE="https://github.com/ColinIanKing/stress-ng" +SRC_URI="https://github.com/ColinIanKing/${PN}/archive/refs/tags/V${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc64 ~riscv ~sparc ~x86" +IUSE="apparmor sctp" + +DEPEND=" + dev-libs/libaio + dev-libs/libbsd + dev-libs/libgcrypt:0= + sys-apps/attr + sys-apps/keyutils:= + sys-libs/libcap + sys-libs/zlib + virtual/libcrypt:= + apparmor? ( + sys-apps/apparmor-utils + sys-libs/libapparmor + ) + sctp? ( net-misc/lksctp-tools ) +" + +RDEPEND="${DEPEND}" + +DOCS=( "README.md" "README.Android" "TODO" "syscalls.txt" ) + +pkg_pretend() { + if use apparmor; then + CONFIG_CHECK="SECURITY_APPARMOR" + check_extra_config + fi +} + +src_compile() { + tc-export CC + + export MAN_COMPRESS="0" + + local myemakeopts=( + HAVE_APPARMOR="$(usex apparmor 1 0)" + HAVE_LIB_SCTP="$(usex sctp 1 0)" + VERBOSE="1" + ) + + emake "${myemakeopts[@]}" +} |