summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-01-31 03:56:18 +0100
committerConrad Kostecki <conikost@gentoo.org>2023-01-31 16:15:24 +0100
commitbe5bdc83f20e665f8074c063c6322baa1e21d607 (patch)
treec5037d7bd10da8fc96c8613f20ce208557b26d07 /app-benchmarks/stress-ng
parentapp-benchmarks/stress: add 1.0.7 (diff)
downloadgentoo-be5bdc83f20e665f8074c063c6322baa1e21d607.tar.gz
gentoo-be5bdc83f20e665f8074c063c6322baa1e21d607.tar.bz2
gentoo-be5bdc83f20e665f8074c063c6322baa1e21d607.zip
app-benchmarks/stress-ng: add 0.15.03
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks/stress-ng')
-rw-r--r--app-benchmarks/stress-ng/Manifest1
-rw-r--r--app-benchmarks/stress-ng/stress-ng-0.15.03.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest
index 04bc16ec7b8f..dbb00deb9d3a 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
DIST stress-ng-0.15.01.tar.gz 3758282 BLAKE2B 72eda17c45f232644cb070078df2b2e0221f13762bda0336f3e0ac2f69bd6a1b50f7f94009678943f007f58b76981de8eaa67272170e70c7631b3ba34f9a9dd7 SHA512 c2e062d9b5eb705344c58d39cb2ddb82b45f90dcf32cb343e8178ba7349e734a71e28807b88a7977cbed69c438e8a4f697f91b86245b8b4fe2041c5e0a0ca0e4
+DIST stress-ng-0.15.03.tar.gz 3782622 BLAKE2B e980ba366e3729e6bf5ed7c13383ffd1a237a6fa01bc33037f7ad28a5e84b57cf2d75cba83143c99c8c2294e49498b0d9db9ecc83e5047d68130d593001a33f2 SHA512 67d8fc47bc8c31e4b01c7ddffe2797889380317e57b1cafec34314b78425fd371a016fd1519278ddb9f04f0c6f9f4783cde98eaadb39fbd62fd1ffa1ce0166f2
diff --git a/app-benchmarks/stress-ng/stress-ng-0.15.03.ebuild b/app-benchmarks/stress-ng/stress-ng-0.15.03.ebuild
new file mode 100644
index 000000000000..12a6f5017085
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.15.03.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[@]}"
+}