summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.14.01.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest
index 1d9777036329..78a41842624f 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
DIST stress-ng-0.14.00.tar.gz 1102022 BLAKE2B f682a1ff1935837761e7e2df8970c69d5c80af7a1d3d04650c1a070a31ff0f442d45dc1cd4e659919da10d81c29b36c3e00fd5d07265d9f03a6f6a163f301797 SHA512 2e26a2cd7445c4d204959d9ddc505019790cf3992ad85aa727323bb720f3bca4d3032b9e9ef987572356355f63dfbabd7863aa90da4c7e82f84426cbec005ecd
+DIST stress-ng-0.14.01.tar.gz 1113210 BLAKE2B 7fa5a499ef3aeaad9e5e78e9a564433c706618bbdc140e29e968d32a87c9740fdbac4175f9f6ca3002b31a82845e1598d5c18b2193e10b7db86cfa7bb9bd11fc SHA512 12dec034de738b77de2264b1d4202cc4966f1db5204bc10e3f43de54b50a577b3087b57ed4bc840dff39f0ea1ceeae47f50b25b6a391fa9ed231e422b5ccfef5
diff --git a/app-benchmarks/stress-ng/stress-ng-0.14.01.ebuild b/app-benchmarks/stress-ng/stress-ng-0.14.01.ebuild
new file mode 100644
index 000000000000..ada257041217
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.14.01.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 ~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[@]}"
+}