summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-09-14 23:49:16 +0200
committerConrad Kostecki <conikost@gentoo.org>2022-09-14 23:49:22 +0200
commit5eba5df40fe17b9ae428e1ff9b52c257bfcbdd05 (patch)
tree200f138ede62803a9a95815b8857a55964c836d1 /app-benchmarks
parentnet-libs/accounts-qml: Fix build with GCC-12 (diff)
downloadgentoo-5eba5df40fe17b9ae428e1ff9b52c257bfcbdd05.tar.gz
gentoo-5eba5df40fe17b9ae428e1ff9b52c257bfcbdd05.tar.bz2
gentoo-5eba5df40fe17b9ae428e1ff9b52c257bfcbdd05.zip
app-benchmarks/stress-ng: add 0.14.05
Bug: https://bugs.gentoo.org/865983 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.14.05.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest
index 63f86698e32f..eae7d97b6f2c 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
DIST stress-ng-0.14.03.tar.gz 3630312 BLAKE2B d0c9c543402abcc4b771c0810d0900c4d0a478d40205ca56f8b59bfd2d1faa05381495a25e9e7cc6048cf45fef6bd27957fe72390d0be3e5592b97d161755556 SHA512 48373f2facf0c080e134835c975370aae4d0693c7c2de4b3db21b91e215ad10be6e3701751df41a09669ce66446039e7d97ee1e8bda06fa563831752d61c52c5
+DIST stress-ng-0.14.05.tar.gz 3697305 BLAKE2B f3ce81f93d5a080f62fb1bf0822447b5b09c4cce8601259c15f203d0dbcce40d0b601dc7448e925bfcaf3ea9f28a9c0e606afa9faec7af94814c6c1d68181424 SHA512 b1d1be23ace46d87d4cdef1e7915aaa2e74ac5314ef0cc584ef07fd1533107896c65245fadfb5d4367b935e04583c7fd2f90a3d2a76bdf96dffa4af04a367891
diff --git a/app-benchmarks/stress-ng/stress-ng-0.14.05.ebuild b/app-benchmarks/stress-ng/stress-ng-0.14.05.ebuild
new file mode 100644
index 000000000000..20d7652d4d57
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.14.05.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 ~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[@]}"
+}