Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/polkit/
Date: Fri, 09 Aug 2019 18:27:58
Message-Id: 1565375269.db5be9ad1db918407163716fdda4e5b0ada01775.floppym@gentoo
1 commit: db5be9ad1db918407163716fdda4e5b0ada01775
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 9 17:27:59 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 9 18:27:49 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db5be9ad
7
8 sys-auth/polkit: depend on acc-user/polkitd
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.16_p24
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 ...{polkit-0.116.ebuild => polkit-0.116-r1.ebuild} | 26 +++++++---------------
14 1 file changed, 8 insertions(+), 18 deletions(-)
15
16 diff --git a/sys-auth/polkit/polkit-0.116.ebuild b/sys-auth/polkit/polkit-0.116-r1.ebuild
17 similarity index 87%
18 rename from sys-auth/polkit/polkit-0.116.ebuild
19 rename to sys-auth/polkit/polkit-0.116-r1.ebuild
20 index b3fdcd99dd8..4b9c7900a5f 100644
21 --- a/sys-auth/polkit/polkit-0.116.ebuild
22 +++ b/sys-auth/polkit/polkit-0.116-r1.ebuild
23 @@ -3,7 +3,7 @@
24
25 EAPI=7
26
27 -inherit autotools pam pax-utils systemd user xdg-utils
28 +inherit autotools pam pax-utils systemd xdg-utils
29
30 DESCRIPTION="Policy framework for controlling privileges for system-wide services"
31 HOMEPAGE="https://www.freedesktop.org/wiki/Software/polkit https://gitlab.freedesktop.org/polkit/polkit"
32 @@ -17,6 +17,7 @@ IUSE="consolekit elogind examples gtk +introspection jit kde nls pam selinux sys
33 REQUIRED_USE="^^ ( consolekit elogind systemd )"
34
35 BDEPEND="
36 + acct-user/polkitd
37 app-text/docbook-xml-dtd:4.1.2
38 app-text/docbook-xsl-stylesheets
39 dev-libs/gobject-introspection-common
40 @@ -40,6 +41,7 @@ DEPEND="
41 systemd? ( sys-apps/systemd:0=[policykit] )
42 "
43 RDEPEND="${DEPEND}
44 + acct-user/polkitd
45 selinux? ( sec-policy/selinux-policykit )
46 "
47 PDEPEND="
48 @@ -62,16 +64,6 @@ QA_MULTILIB_PATHS="
49 usr/lib/polkit-1/polkit-agent-helper-1
50 usr/lib/polkit-1/polkitd"
51
52 -pkg_setup() {
53 - local u=polkitd
54 - local g=polkitd
55 - local h=/var/lib/polkit-1
56 -
57 - enewgroup ${g}
58 - enewuser ${u} -1 -1 ${h} ${g}
59 - esethome ${u} ${h}
60 -}
61 -
62 src_prepare() {
63 default
64
65 @@ -122,20 +114,18 @@ src_compile() {
66 src_install() {
67 default
68
69 - fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d
70 -
71 - diropts -m0700 -o polkitd -g polkitd
72 - keepdir /var/lib/polkit-1
73 -
74 if use examples; then
75 insinto /usr/share/doc/${PF}/examples
76 doins src/examples/{*.c,*.policy*}
77 fi
78
79 + diropts -m 0700 -o polkitd
80 + keepdir /usr/share/polkit-1/rules.d
81 +
82 find "${ED}" -name '*.la' -delete || die
83 }
84
85 pkg_postinst() {
86 - chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
87 - chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1
88 + chmod 0700 "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
89 + chown polkitd "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
90 }