From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2BCAD158087 for ; Tue, 16 Nov 2021 22:18:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46BCFE07D1; Tue, 16 Nov 2021 22:18:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA18AE07C9 for ; Tue, 16 Nov 2021 22:18:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6515A342CF0 for ; Tue, 16 Nov 2021 22:18:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ECA3B163 for ; Tue, 16 Nov 2021 22:18:06 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1637100238.a5aca55815bd5692e581311599f68a6f0aa972d6.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/stress-ng/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-benchmarks/stress-ng/metadata.xml app-benchmarks/stress-ng/stress-ng-0.13.06-r1.ebuild X-VCS-Directories: app-benchmarks/stress-ng/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: a5aca55815bd5692e581311599f68a6f0aa972d6 X-VCS-Branch: master Date: Tue, 16 Nov 2021 22:18:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4691e4c1-bee1-4b25-9e78-3584ee36201c X-Archives-Hash: c41382290b65cad598701b434016fe83 commit: a5aca55815bd5692e581311599f68a6f0aa972d6 Author: Conrad Kostecki gentoo org> AuthorDate: Tue Nov 16 22:03:58 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Tue Nov 16 22:03:58 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5aca558 app-benchmarks/stress-ng: fix automagic Closes: https://bugs.gentoo.org/824050 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Conrad Kostecki gentoo.org> app-benchmarks/stress-ng/metadata.xml | 3 ++ .../stress-ng/stress-ng-0.13.06-r1.ebuild | 55 ++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/app-benchmarks/stress-ng/metadata.xml b/app-benchmarks/stress-ng/metadata.xml index cf330e398b38..70cc32340938 100644 --- a/app-benchmarks/stress-ng/metadata.xml +++ b/app-benchmarks/stress-ng/metadata.xml @@ -13,6 +13,9 @@ that exercise floating point, integer, bit manipulation and control flow and over 20 virtual memory stress tests. + + Add support for AppArmor. + https://github.com/ColinIanKing/stress-ng/issues ColinIanKing/stress-ng diff --git a/app-benchmarks/stress-ng/stress-ng-0.13.06-r1.ebuild b/app-benchmarks/stress-ng/stress-ng-0.13.06-r1.ebuild new file mode 100644 index 000000000000..108507d2ca81 --- /dev/null +++ b/app-benchmarks/stress-ng/stress-ng-0.13.06-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 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 + + local myemakeopts=( + HAVE_APPARMOR="$(usex apparmor 1 0)" + HAVE_LIB_SCTP="$(usex sctp 1 0)" + MAN_COMPRESS="0" + VERBOSE="1" + ) + + emake "${myemakeopts[@]}" +}