summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-01-21 00:06:22 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-01-21 00:56:17 +0100
commit691cdc7fdddfcfc3d11c50f733f824e0a300bd8a (patch)
treede7ea36dd8298249655284e4a2516d46d5d8fbdd /app-benchmarks
parentapp-forensics/lynis: Do not install cron scripts when not appropiate (diff)
downloadgentoo-691cdc7fdddfcfc3d11c50f733f824e0a300bd8a.tar.gz
gentoo-691cdc7fdddfcfc3d11c50f733f824e0a300bd8a.tar.bz2
gentoo-691cdc7fdddfcfc3d11c50f733f824e0a300bd8a.zip
app-benchmarks/stress-ng: add 0.13.10
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.13.10.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest
index 2644b12a0abb..f8d800b6faa8 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
DIST stress-ng-0.13.09.tar.gz 1038381 BLAKE2B 8680bccd0a97a80edaa7995577222b3d90fe3132a99d36c94101fdbfeddfa4a6f02b155cdc59c4abcc71fddba6daeef3a050368cb04fc9d31db921bbb1a9d985 SHA512 a65654f56056ff9876a6afff139e35d9a53a8368122fb24bd372e6a28fdd625f74d0775f6111300161bc36aa9012892cc9a0ed77386b6ba0c10eb17cba90670d
+DIST stress-ng-0.13.10.tar.gz 1044430 BLAKE2B 2b5c7ad42d31382ea236bfaf9b16ee5a5fb85e10eb9bde6bf2dead4fa1d5e52bb4df006a528b52706f6aa3b605502ac801f8ffcc37528f5233afb98310e9eaeb SHA512 9605545c241ee13bc94781b2676bc2a4e1aa5c94acd3f7e2826fd7a75fd6717f6de6f657aba0566bf66d709e53bcc4f5349496bdbfe9498cf3e1a576858cd8f1
diff --git a/app-benchmarks/stress-ng/stress-ng-0.13.10.ebuild b/app-benchmarks/stress-ng/stress-ng-0.13.10.ebuild
new file mode 100644
index 000000000000..c997ff6e3d0c
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.13.10.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 ~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[@]}"
+}