commit:     14ae476695e9fc4d699112aee7b769d65635e971
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed May  4 03:10:51 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed May  4 03:12:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14ae4766

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 <AT> gentoo.org>

 ...-0.1-r1.ebuild => polkit-pkla-compat-0.1-r2.ebuild} | 18 +++++++++++-------
 1 file 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
similarity index 59%
rename from sys-auth/polkit-pkla-compat/polkit-pkla-compat-0.1-r1.ebuild
rename to 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}
 }

Reply via email to