Skip to content

Commit

Permalink
games-util/gamemode: Depend on polkit for pkexec
Browse files Browse the repository at this point in the history
GameMode runs pkexec to start elevated processes.

Package-Manager: Portage-2.3.49, Repoman-2.3.10
Signed-off-by: Kai Krakow <[email protected]>
Signed-off-by: Michał Górny <[email protected]>
Closes: gentoo#10040
  • Loading branch information
kakra authored and mgorny committed Oct 11, 2018
1 parent 31847f8 commit 3533bc9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions games-util/gamemode/gamemode-1.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ IUSE=""

RDEPEND="
>=sys-apps/systemd-236[${MULTILIB_USEDEP}]
sys-auth/polkit
"
DEPEND="${RDEPEND}"

Expand Down Expand Up @@ -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() {
Expand Down
11 changes: 7 additions & 4 deletions games-util/gamemode/gamemode-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ IUSE=""

RDEPEND="
>=sys-apps/systemd-236[${MULTILIB_USEDEP}]
sys-auth/polkit
"
DEPEND="${RDEPEND}"

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 3533bc9

Please sign in to comment.