Skip to content

Commit

Permalink
app-benchmarks/stress-ng: add 0.18.04
Browse files Browse the repository at this point in the history
Signed-off-by: Conrad Kostecki <[email protected]>
  • Loading branch information
ConiKost committed Sep 15, 2024
1 parent d206d43 commit 4faa665
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-benchmarks/stress-ng/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST stress-ng-0.18.02.tar.gz 6629284 BLAKE2B 3a3391080a375e1034f16731ef6dbb54288610403b4d420b729cf96a0ad700daedaff14a71316a9c5bd79eedc9f01b798311e19b15fb4416d2023bfd315c714d SHA512 6053dbe96e270a4689ecab013199805a33917434ec1fa09b4924577dc827abfda797c750ca3953d44f36df4ee3459d10ec2ea724bb7427d8f4d41203b57d23fe
DIST stress-ng-0.18.04.tar.gz 6649901 BLAKE2B 13ba5d177c21ec4ac7932a74bd28853e10a0f423b57454e6a2011ba5b8d7870e6a3d59240596bde2aefd95929f2eb538271df19eee28342980f9844bd1a05fc9 SHA512 5725e55e9b6fe03f75f2772b752a0c3ecb150c1f1215e44548f4d4dad1b027cd79abb6fd1f7db257a9398d0d5b8ecfd1a0a7eb10be087b75a8cf7723ce2760e0
59 changes: 59 additions & 0 deletions app-benchmarks/stress-ng/stress-ng-0.18.04.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Copyright 1999-2024 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 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="apparmor keyutils jpeg sctp"

DEPEND="
dev-libs/libaio
dev-libs/libbsd
dev-libs/libgcrypt:0=
sys-apps/attr
sys-libs/libcap
sys-libs/zlib
virtual/libcrypt:=
apparmor? (
sys-apps/apparmor-utils
sys-libs/libapparmor
)
jpeg? ( media-libs/libjpeg-turbo:= )
keyutils? ( sys-apps/keyutils:= )
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_JPEG="$(usex jpeg 1 0)"
HAVE_KEYUTILS_H="$(usex keyutils 1 0)"
HAVE_LIB_SCTP="$(usex sctp 1 0)"
VERBOSE="1"
)

emake "${myemakeopts[@]}"
}

0 comments on commit 4faa665

Please sign in to comment.