summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2022-05-03 23:10:51 -0400
committerMike Gilbert <floppym@gentoo.org>2022-05-03 23:12:27 -0400
commit14ae476695e9fc4d699112aee7b769d65635e971 (patch)
tree0dcab8db2fb58a9a5319b207626225ab9b8e8ffe /sys-auth
parentapp-emulation/qemu: Stabilize 7.0.0-r1 ppc64, #839765 (diff)
downloadgentoo-14ae476695e9fc4d699112aee7b769d65635e971.tar.gz
gentoo-14ae476695e9fc4d699112aee7b769d65635e971.tar.bz2
gentoo-14ae476695e9fc4d699112aee7b769d65635e971.zip
sys-auth/polkit-pkla-compat: several fixes
Pass --localstatedir=/var to configure. Drop unnecessary chown calls. Depend on acct-group/polkitd. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/polkit-pkla-compat/polkit-pkla-compat-0.1-r2.ebuild (renamed from sys-auth/polkit-pkla-compat/polkit-pkla-compat-0.1-r1.ebuild)18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys-auth/polkit-pkla-compat/polkit-pkla-compat-0.1-r1.ebuild b/sys-auth/polkit-pkla-compat/polkit-pkla-compat-0.1-r2.ebuild
index 1f0ef021b4cf..05c4ed9e6222 100644
--- a/sys-auth/polkit-pkla-compat/polkit-pkla-compat-0.1-r1.ebuild
+++ b/sys-auth/polkit-pkla-compat/polkit-pkla-compat-0.1-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -11,19 +11,23 @@ LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~ppc x86"
-RDEPEND=">=dev-libs/glib-2.30
+RDEPEND="
+ acct-group/polkitd
+ >=dev-libs/glib-2.30
>=sys-auth/polkit-0.110"
DEPEND="${RDEPEND}"
BDEPEND="
+ acct-group/polkitd
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
virtual/pkgconfig"
-src_install() {
- default
- fowners -R root:polkitd /etc/polkit-1/localauthority
+src_configure() {
+ econf --localstatedir="${EPREFIX}/var"
}
-pkg_postinst() {
- chown -R root:polkitd "${EROOT}"/etc/polkit-1/localauthority || die
+src_install() {
+ default
+ keepdir /etc/polkit-1/localauthority.conf.d
+ keepdir /{etc,var/lib}/polkit-1/localauthority/{10-vendor.d,20-org.d,30-site.d,50-local.d,90-mandatory.d}
}