diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2024-09-15 15:17:09 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2024-09-15 15:35:37 +0200 |
commit | 4faa66502a8d762940f2a0e35db4358678f188ba (patch) | |
tree | ac63547e5c76f43205249f96d86e5749b6b5cc7b /app-benchmarks/stress-ng | |
parent | net-wireless/iwd: add 2.22 (diff) | |
download | gentoo-4faa66502a8d762940f2a0e35db4358678f188ba.tar.gz gentoo-4faa66502a8d762940f2a0e35db4358678f188ba.tar.bz2 gentoo-4faa66502a8d762940f2a0e35db4358678f188ba.zip |
app-benchmarks/stress-ng: add 0.18.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.18.04.ebuild | 59 |
2 files changed, 60 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest index aeffe82a7d29..d33b012042f6 100644 --- a/app-benchmarks/stress-ng/Manifest +++ b/app-benchmarks/stress-ng/Manifest @@ -1 +1,2 @@ DIST stress-ng-0.18.02.tar.gz 6629284 BLAKE2B 3a3391080a375e1034f16731ef6dbb54288610403b4d420b729cf96a0ad700daedaff14a71316a9c5bd79eedc9f01b798311e19b15fb4416d2023bfd315c714d SHA512 6053dbe96e270a4689ecab013199805a33917434ec1fa09b4924577dc827abfda797c750ca3953d44f36df4ee3459d10ec2ea724bb7427d8f4d41203b57d23fe +DIST stress-ng-0.18.04.tar.gz 6649901 BLAKE2B 13ba5d177c21ec4ac7932a74bd28853e10a0f423b57454e6a2011ba5b8d7870e6a3d59240596bde2aefd95929f2eb538271df19eee28342980f9844bd1a05fc9 SHA512 5725e55e9b6fe03f75f2772b752a0c3ecb150c1f1215e44548f4d4dad1b027cd79abb6fd1f7db257a9398d0d5b8ecfd1a0a7eb10be087b75a8cf7723ce2760e0 diff --git a/app-benchmarks/stress-ng/stress-ng-0.18.04.ebuild b/app-benchmarks/stress-ng/stress-ng-0.18.04.ebuild new file mode 100644 index 000000000000..0dcbc1e87678 --- /dev/null +++ b/app-benchmarks/stress-ng/stress-ng-0.18.04.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 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 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="apparmor keyutils jpeg sctp" + +DEPEND=" + dev-libs/libaio + dev-libs/libbsd + dev-libs/libgcrypt:0= + sys-apps/attr + sys-libs/libcap + sys-libs/zlib + virtual/libcrypt:= + apparmor? ( + sys-apps/apparmor-utils + sys-libs/libapparmor + ) + jpeg? ( media-libs/libjpeg-turbo:= ) + keyutils? ( sys-apps/keyutils:= ) + 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_JPEG="$(usex jpeg 1 0)" + HAVE_KEYUTILS_H="$(usex keyutils 1 0)" + HAVE_LIB_SCTP="$(usex sctp 1 0)" + VERBOSE="1" + ) + + emake "${myemakeopts[@]}" +} |