summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-09-08 17:53:58 +0200
committerConrad Kostecki <conikost@gentoo.org>2023-09-08 17:53:58 +0200
commitbe1c0f34d62b7ba8dd2ab069b4d7ede36c64a783 (patch)
tree014e49366384698ba416a3ca8a16b95a12ffdf1f /app-benchmarks
parentmedia-libs/rtmidi: drop 5.0.0 (diff)
downloadgentoo-be1c0f34d62b7ba8dd2ab069b4d7ede36c64a783.tar.gz
gentoo-be1c0f34d62b7ba8dd2ab069b4d7ede36c64a783.tar.bz2
gentoo-be1c0f34d62b7ba8dd2ab069b4d7ede36c64a783.zip
app-benchmarks/stress-ng: add 0.16.05
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks')
-rw-r--r--app-benchmarks/stress-ng/Manifest1
-rw-r--r--app-benchmarks/stress-ng/stress-ng-0.16.05.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest
index ec2c8e4f7b92..23449e1ca862 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
DIST stress-ng-0.16.04.tar.gz 3918769 BLAKE2B 5e2b457be2e38c583dcfc72719c5abacfaca658f7861a4faee5b709568ff4dd646e595b88be9542cf2b977e0184678c4c15a2aabfd421df8d92f8c18040a4773 SHA512 9c0ebcef697cb1fcf6f0836a8d0d88da0be20ed0683c35304e540bf040beff4152e231ba98c8a3ebe3c22bbde66a22ff8929397c35f7e070b9498ad1275e7a8d
+DIST stress-ng-0.16.05.tar.gz 3930948 BLAKE2B 41aabb35ac8f00899dfea144a368f0a7f625c4631d341bd456f3a9bdb1f28b1975ec960ebe81935fcb27df7019c07bbe8c3ad43a698a19e65a6ce2da7bac1bda SHA512 03c854a0b5028e43a826f8f2c721ed828731c0b52c0d15f4415807d885d3d81abe969820e27e2c40eb459c2c5a987c18ae9dd7923a755bac1aade923d71d71d8
diff --git a/app-benchmarks/stress-ng/stress-ng-0.16.05.ebuild b/app-benchmarks/stress-ng/stress-ng-0.16.05.ebuild
new file mode 100644
index 000000000000..002dc1ebe61c
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.16.05.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 ~hppa ~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[@]}"
+}