app-admin/polkit-systemd-mariadb-control - 0 (arrans-overlay)

Search

Install

Install this version:

emerge -a =app-admin/polkit-systemd-mariadb-control-0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-admin/polkit-systemd-mariadb-control-0

Or alternatively:

emerge --autounmask-write -a =app-admin/polkit-systemd-mariadb-control-0

Package Information

Description:
Polkit rules for systemctl control of mariadb.service
Homepage:
https://github.com/arran4/arrans-overlay
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
0 8 ~amd64 0
View Raw Ebuild
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Polkit rules for systemctl control of mariadb.service"
HOMEPAGE="https://github.com/arran4/arrans-overlay"
SRC_URI=""
S="${WORKDIR}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	sys-auth/polkit
	acct-group/systemctl-operators
"

src_install() {
	insinto /etc/polkit-1/rules.d
	doins "${FILESDIR}/50-systemctl-mariadb.rules"
}

pkg_postinst() {
	elog "The Polkit policy for mariadb.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."
}

Dependencies

RDEPEND

	sys-auth/polkit
	acct-group/systemctl-operators