summaryrefslogtreecommitdiff
path: root/games-util/gamemode/gamemode-9999.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-10-22 11:09:47 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-10-22 11:09:47 +0100
commit64e107b9b6058580ff0432107eb37cefb0b2a7d8 (patch)
tree9a44e603e2ae365e2b1fe35ac37f73e830cdee1d /games-util/gamemode/gamemode-9999.ebuild
parent957235cf19a691360c720f7913672adda4258ed0 (diff)
gentoo resync : 22.10.2018
Diffstat (limited to 'games-util/gamemode/gamemode-9999.ebuild')
-rw-r--r--games-util/gamemode/gamemode-9999.ebuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild
index 6ac471006aa0..45b778ba90e2 100644
--- a/games-util/gamemode/gamemode-9999.ebuild
+++ b/games-util/gamemode/gamemode-9999.ebuild
@@ -26,6 +26,7 @@ IUSE=""
RDEPEND="
>=sys-apps/systemd-236[${MULTILIB_USEDEP}]
+ sys-auth/polkit
"
DEPEND="${RDEPEND}"
@@ -79,10 +80,12 @@ multilib_src_compile() {
multilib_src_install() {
DESTDIR="${D}" eninja install
- insinto /etc/security/limits.d
- newins - 45-gamemode.conf <<-EOF
- @gamemode - nice -10
- EOF
+ if multilib_is_native_abi; then
+ insinto /etc/security/limits.d
+ newins - 45-gamemode.conf <<-EOF
+ @gamemode - nice -10
+ EOF
+ fi
}
pkg_postinst() {