commit:     3ab635a3efb70b2e94b806b103655b8a50c02511
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 19 22:03:26 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Mar 19 22:12:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ab635a3

app-benchmarks/stress-ng: add 0.15.06

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-benchmarks/stress-ng/Manifest                 |  1 +
 app-benchmarks/stress-ng/stress-ng-0.15.06.ebuild | 56 +++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/app-benchmarks/stress-ng/Manifest 
b/app-benchmarks/stress-ng/Manifest
index 85f5170b3f7d..5587cf1338a0 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
 DIST stress-ng-0.15.05.tar.gz 3811699 BLAKE2B 
e156251163a9d1788a09cb957dd75c05770cd69fb2674b54fb8fe10ea94eb7d62dc4bfd38a8628b201bc5d260fd140bee78cd5ad7220a1e35dc51334ec2fca1e
 SHA512 
654fff49ade6bc44c1f855cf5869255ef626180ca9b9d83374cd18c000a1b3f2e9c8b3b653592d2896d66d4cbb7dc0d60e67233af73fdc8039c2ba530d45fad4
+DIST stress-ng-0.15.06.tar.gz 3813785 BLAKE2B 
ebed2b6b087afc615e3a94ae239df32a7847f1ddc5db83a733ce8415d76818000bb742604643ebdd06d13e584a66c6814feb660752738f3fe7e714670e4ad396
 SHA512 
a999ecb813504cdcd56cb3f9ac6633c91ee3df2c203866d29fb04b61c41ee5e7738ca84cdbdb2cb8c6fe969f29a64d21a8df17419901266efc7f1170eb18013a

diff --git a/app-benchmarks/stress-ng/stress-ng-0.15.06.ebuild 
b/app-benchmarks/stress-ng/stress-ng-0.15.06.ebuild
new file mode 100644
index 000000000000..12a6f5017085
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.15.06.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 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[@]}"
+}

Reply via email to