summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Krakow <kai@kaishome.de>2018-10-02 01:54:13 +0200
committerMichał Górny <mgorny@gentoo.org>2018-10-11 10:14:03 +0200
commit3533bc923a96ab77eaff45207bce6fe1a15f8cdf (patch)
tree07f22357eedcaca9f7c6ee5c1425576731c5260f
parentnet-proxy/trojan: new package (diff)
downloadgentoo-3533bc923a96ab77eaff45207bce6fe1a15f8cdf.tar.gz
gentoo-3533bc923a96ab77eaff45207bce6fe1a15f8cdf.tar.bz2
gentoo-3533bc923a96ab77eaff45207bce6fe1a15f8cdf.zip
games-util/gamemode: Depend on polkit for pkexec
GameMode runs pkexec to start elevated processes. Package-Manager: Portage-2.3.49, Repoman-2.3.10 Signed-off-by: Kai Krakow <kai@kaishome.de> Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/10040
-rw-r--r--games-util/gamemode/gamemode-1.2.ebuild11
-rw-r--r--games-util/gamemode/gamemode-9999.ebuild11
2 files changed, 14 insertions, 8 deletions
diff --git a/games-util/gamemode/gamemode-1.2.ebuild b/games-util/gamemode/gamemode-1.2.ebuild
index 6ac471006aa..45b778ba90e 100644
--- a/games-util/gamemode/gamemode-1.2.ebuild
+++ b/games-util/gamemode/gamemode-1.2.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() {
diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild
index 6ac471006aa..45b778ba90e 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() {