forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-benchmarks/stress-ng: add 0.13.09
Signed-off-by: Conrad Kostecki <[email protected]>
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST stress-ng-0.13.08.tar.gz 1035973 BLAKE2B e9571c8e8cea9341d69d576d9716bbb884b220bb3489fa08e5eae54812467ce5a5ca6f41f4af0547a059a10d78394794a73c3da810a6e64217626d9d669f9b7b SHA512 15882d455422bd631de67d012b3f9395e78968af3fcdc5aecff86779e1d20adafbdb189414007ae7639cd9936d1c3a1d392a97e86077ed12097edc63a99025c4 | ||
DIST stress-ng-0.13.09.tar.gz 1038381 BLAKE2B 8680bccd0a97a80edaa7995577222b3d90fe3132a99d36c94101fdbfeddfa4a6f02b155cdc59c4abcc71fddba6daeef3a050368cb04fc9d31db921bbb1a9d985 SHA512 a65654f56056ff9876a6afff139e35d9a53a8368122fb24bd372e6a28fdd625f74d0775f6111300161bc36aa9012892cc9a0ed77386b6ba0c10eb17cba90670d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# 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 | ||
|
||
export MAN_COMPRESS="0" | ||
|
||
local myemakeopts=( | ||
HAVE_APPARMOR="$(usex apparmor 1 0)" | ||
HAVE_LIB_SCTP="$(usex sctp 1 0)" | ||
VERBOSE="1" | ||
) | ||
|
||
emake "${myemakeopts[@]}" | ||
} |