summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-06-23 23:51:13 +0200
committerConrad Kostecki <conikost@gentoo.org>2023-06-24 23:35:39 +0200
commit5e7037c7592588c35a19041e4623d138a1a86643 (patch)
tree56803e520e76301c9e53cc944325d5d97f7b5a45 /app-benchmarks
parentgames-arcade/shovel-knight: Work around crash when a controller is connected (diff)
downloadgentoo-5e7037c7592588c35a19041e4623d138a1a86643.tar.gz
gentoo-5e7037c7592588c35a19041e4623d138a1a86643.tar.bz2
gentoo-5e7037c7592588c35a19041e4623d138a1a86643.zip
app-benchmarks/stress-ng: add 0.15.10
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.15.10.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest
index 4b6ebe5b93e6..b8e99654799f 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
DIST stress-ng-0.15.08.tar.gz 3839684 BLAKE2B 2e2337d26d882abf0c2cdb8451e6fe358c059dd6ab14c3ca13e9da3a83ba29309bdf339a074bc7808a535f8ce892aad09a30cabbec1093b976166e52de6d24ac SHA512 2f5c1ddbe8d2e281bca5b7668a86aebd0836bc9c8023d2553aff4f2216b91cd1c3da9142df5e270c13c4ab7bc6778bc3d699750963107e5f2c127448a3e52298
+DIST stress-ng-0.15.10.tar.gz 3878529 BLAKE2B 94f1047d497e3a293d45a3f64060f850cb0b4192d4bd59ae2895fc8e1d17e62f2e3d0b3b36a21e39232984257862a40e2aa1360bc77a56185a43b13ada68907e SHA512 1aef11b1ad238e5c34fab3eb588ee3295f819d33eb769df963f89b2f3932ea69c3cf5036cd000dbb478c3b1c58aaf5c80ff52fcef38fc1b6a4da96fa740745d9
diff --git a/app-benchmarks/stress-ng/stress-ng-0.15.10.ebuild b/app-benchmarks/stress-ng/stress-ng-0.15.10.ebuild
new file mode 100644
index 000000000000..002dc1ebe61c
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.15.10.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[@]}"
+}