diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2023-08-16 00:36:58 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2023-08-16 00:36:58 +0200 |
commit | 0ddad3868ae2b476ffd6d7e3802be486458bb5d6 (patch) | |
tree | 51655fff564a6a460c81256a58ef57b9cc174da6 /app-benchmarks | |
parent | games-server/bedrock-server: add 1.20.14.01 (diff) | |
download | gentoo-0ddad3868ae2b476ffd6d7e3802be486458bb5d6.tar.gz gentoo-0ddad3868ae2b476ffd6d7e3802be486458bb5d6.tar.bz2 gentoo-0ddad3868ae2b476ffd6d7e3802be486458bb5d6.zip |
app-benchmarks/stress-ng: add 0.16.04
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks')
-rw-r--r-- | app-benchmarks/stress-ng/Manifest | 1 | ||||
-rw-r--r-- | app-benchmarks/stress-ng/stress-ng-0.16.04.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest index e23bcf25998c..a1f789ca4935 100644 --- a/app-benchmarks/stress-ng/Manifest +++ b/app-benchmarks/stress-ng/Manifest @@ -1 +1,2 @@ DIST stress-ng-0.16.02.tar.gz 3896753 BLAKE2B 6db57f629b01b80e5b89febf56f00cb94611833002484f6fbe9b9afce3f4a6fd3cb9ef0631312a9924b5d24f50b9f4b5bbe54a7dadb9e98eeca0c2f0cc03ec81 SHA512 08290ca83da9124667a9e0794d88735f0281fea39b8ad6ddd6bdab602edd4a268ce5aa838c60ae8e98f654bd89c94ddca784dc126e10857539db480d77619539 +DIST stress-ng-0.16.04.tar.gz 3918769 BLAKE2B 5e2b457be2e38c583dcfc72719c5abacfaca658f7861a4faee5b709568ff4dd646e595b88be9542cf2b977e0184678c4c15a2aabfd421df8d92f8c18040a4773 SHA512 9c0ebcef697cb1fcf6f0836a8d0d88da0be20ed0683c35304e540bf040beff4152e231ba98c8a3ebe3c22bbde66a22ff8929397c35f7e070b9498ad1275e7a8d diff --git a/app-benchmarks/stress-ng/stress-ng-0.16.04.ebuild b/app-benchmarks/stress-ng/stress-ng-0.16.04.ebuild new file mode 100644 index 000000000000..002dc1ebe61c --- /dev/null +++ b/app-benchmarks/stress-ng/stress-ng-0.16.04.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 ~hppa ~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[@]}" +} |