summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-07-21 19:43:53 +0200
committerConrad Kostecki <conikost@gentoo.org>2022-07-22 21:33:59 +0200
commit773c1fa502f00b1d1b9eba4ca997703a5fd8632f (patch)
tree9f2c3e6592473b19175c7ee5399e4305e1bd4445
parentapp-misc/lcd4linux: add python3_11 support (diff)
downloadgentoo-773c1fa502f00b1d1b9eba4ca997703a5fd8632f.tar.gz
gentoo-773c1fa502f00b1d1b9eba4ca997703a5fd8632f.tar.bz2
gentoo-773c1fa502f00b1d1b9eba4ca997703a5fd8632f.zip
app-benchmarks/stress-ng: add 0.14.03
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
-rw-r--r--app-benchmarks/stress-ng/Manifest1
-rw-r--r--app-benchmarks/stress-ng/stress-ng-0.14.03.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest
index bcde8cb01468..fa43b04ad527 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
DIST stress-ng-0.14.02.tar.gz 3610303 BLAKE2B a21ac2c3b67b2ec7522c020d01ae50c51b1cfc7d357dde4bd1585fcf0eed77bb9b664805eec5b8cf84cf72383d444da91ed587d113d727c762b9611be4171c39 SHA512 80d6f6d9a8e521f2c58b6aa3680bf22f5e0e75e267f49cb3c30512e3387d1d71a31a932b2e6568166f77c7f2a36bed7902a1ed4cb6aded35f48372e916d64590
+DIST stress-ng-0.14.03.tar.gz 3630312 BLAKE2B d0c9c543402abcc4b771c0810d0900c4d0a478d40205ca56f8b59bfd2d1faa05381495a25e9e7cc6048cf45fef6bd27957fe72390d0be3e5592b97d161755556 SHA512 48373f2facf0c080e134835c975370aae4d0693c7c2de4b3db21b91e215ad10be6e3701751df41a09669ce66446039e7d97ee1e8bda06fa563831752d61c52c5
diff --git a/app-benchmarks/stress-ng/stress-ng-0.14.03.ebuild b/app-benchmarks/stress-ng/stress-ng-0.14.03.ebuild
new file mode 100644
index 000000000000..e112cd3fe456
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.14.03.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 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 ~loong ~ppc64 ~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[@]}"
+}