Install this version:
emerge -a =app-admin/polkit-systemd-ollama-control-0-r1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-admin/polkit-systemd-ollama-control-0-r1
Or alternatively:
emerge --autounmask-write -a =app-admin/polkit-systemd-ollama-control-0-r1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0-r1 | 8 | ~amd64 | 0 |
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Polkit rules for systemctl control of ollama.service"
HOMEPAGE="https://github.com/arran4/arrans-overlay"
SRC_URI=""
S="${WORKDIR}"
LICENSE="metapackage"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
sys-auth/polkit
acct-group/systemctl-operators
"
src_install() {
insinto /etc/polkit-1/rules.d
doins "${FILESDIR}/50-systemctl-ollama.rules"
}
pkg_postinst() {
elog "The Polkit policy for ollama.service was installed."
elog "To allow a user to use these delegated rules, add them to the systemctl-operators group:"
elog "gpasswd -a <username> systemctl-operators"
elog ""
elog "Users must log out and log back in for group membership to apply."
}
sys-auth/polkit acct-group/systemctl-operators