summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-10-02 01:19:09 +0200
committerConrad Kostecki <conikost@gentoo.org>2022-10-02 01:19:09 +0200
commit58dfd927a07ec26d265e0b491a6a9a1eedf461d4 (patch)
tree083e8956ad81c4408c8b26f32a4ab9b5bd8dd9ac /app-benchmarks
parentsys-apps/cpuid: add 20220927 (diff)
downloadgentoo-58dfd927a07ec26d265e0b491a6a9a1eedf461d4.tar.gz
gentoo-58dfd927a07ec26d265e0b491a6a9a1eedf461d4.tar.bz2
gentoo-58dfd927a07ec26d265e0b491a6a9a1eedf461d4.zip
app-benchmarks/stress-ng: add 0.14.06
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.06.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest
index 7d13607b593a..434e79e354d7 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
DIST stress-ng-0.14.05.tar.gz 3697305 BLAKE2B f3ce81f93d5a080f62fb1bf0822447b5b09c4cce8601259c15f203d0dbcce40d0b601dc7448e925bfcaf3ea9f28a9c0e606afa9faec7af94814c6c1d68181424 SHA512 b1d1be23ace46d87d4cdef1e7915aaa2e74ac5314ef0cc584ef07fd1533107896c65245fadfb5d4367b935e04583c7fd2f90a3d2a76bdf96dffa4af04a367891
+DIST stress-ng-0.14.06.tar.gz 3705069 BLAKE2B fbc7b73cf85f82bb4c7172c4a275c793f553b95b0db36324d83cef2f6fb7e548b9a9222319a5a3ca5aae857916dd0cdd804cae275c575ec2bac912a37917e8a6 SHA512 8d670fe7cc10106839cde891149ad92f0ec025aa2ec4c7d7f60f19728fc2b68f47245303d47ceddc5f17607766a0fe4cfceea83275c7d9c8093f12cc827112b4
diff --git a/app-benchmarks/stress-ng/stress-ng-0.14.06.ebuild b/app-benchmarks/stress-ng/stress-ng-0.14.06.ebuild
new file mode 100644
index 000000000000..261e754e1065
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.14.06.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 ~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[@]}"
+}