summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-11-19 22:47:50 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-11-19 22:47:50 +0100
commit96b1a95b28bac822202dcc279d8eafcc5dda6979 (patch)
tree78ea23c55973b60c56f8800a72651edbc3d97ccf /app-benchmarks
parentnet-libs/libupnp: add 1.14.15 (diff)
downloadgentoo-96b1a95b28bac822202dcc279d8eafcc5dda6979.tar.gz
gentoo-96b1a95b28bac822202dcc279d8eafcc5dda6979.tar.bz2
gentoo-96b1a95b28bac822202dcc279d8eafcc5dda6979.zip
app-benchmarks/stress-ng: add 0.15.00
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.15.00.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest
index 89d8b77fafd3..d37c62acbab3 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
DIST stress-ng-0.14.06.tar.gz 3705069 BLAKE2B fbc7b73cf85f82bb4c7172c4a275c793f553b95b0db36324d83cef2f6fb7e548b9a9222319a5a3ca5aae857916dd0cdd804cae275c575ec2bac912a37917e8a6 SHA512 8d670fe7cc10106839cde891149ad92f0ec025aa2ec4c7d7f60f19728fc2b68f47245303d47ceddc5f17607766a0fe4cfceea83275c7d9c8093f12cc827112b4
+DIST stress-ng-0.15.00.tar.gz 3743762 BLAKE2B 8f09235129c8ac66ff0a384d6b1c9cbce2673fa6ccafff245676605d3730a81b9fd92f4186a591fbf6975c20c8ac28eb51f3aedaec5a1c74f738bc7030c07706 SHA512 bef6785848c46e39debfc0c4e05e20fe1f443518d619d1ae50b2f9952939e1db964cec0755986a1dd4917e25f979c43d5808b1ff686a4471e8e8be8df9355c05
diff --git a/app-benchmarks/stress-ng/stress-ng-0.15.00.ebuild b/app-benchmarks/stress-ng/stress-ng-0.15.00.ebuild
new file mode 100644
index 000000000000..261e754e1065
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.15.00.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[@]}"
+}