Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/polkit/
Date: Sun, 28 Apr 2019 20:31:24
Message-Id: 1556483475.5c252ab647184d01d0dcb747c3af63a7bcb3fdee.polynomial-c@gentoo
1 commit: 5c252ab647184d01d0dcb747c3af63a7bcb3fdee
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 28 20:31:02 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 28 20:31:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c252ab6
7
8 sys-auth/polkit: Bump to version 0.116
9
10 Package-Manager: Portage-2.3.65, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-auth/polkit/Manifest | 1 +
14 sys-auth/polkit/polkit-0.116.ebuild | 141 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 142 insertions(+)
16
17 diff --git a/sys-auth/polkit/Manifest b/sys-auth/polkit/Manifest
18 index 3883c904ad8..9a714611499 100644
19 --- a/sys-auth/polkit/Manifest
20 +++ b/sys-auth/polkit/Manifest
21 @@ -1,2 +1,3 @@
22 DIST polkit-0.113.tar.gz 1448865 BLAKE2B 93cb6abf03d0de193e9f64b953bee40faf3bd07cf6f86beb4f84edd740dedc0bcf7a1ffd6b3a1a816e5adad0ee59536dacae3d991add4c4965cc6a98566b7470 SHA512 ab177c89a20eeb2978ddbe28afb205d3619f9c5defe833eb68a85e71a0f2c905367f1295cbbfb85da5eafdd661bce474d5d84aca9195cd425a18c9b4170eb5f9
23 DIST polkit-0.115.tar.gz 1550932 BLAKE2B 3185ebed46209f88a9ffccbbcaf1bf180d1ae6d5ec53cf3c66d867ad43910b47a1123a3db190991ebb382a0d28fc5a119ea4bab942db324e9af5663056cf6ee1 SHA512 1153011fa93145b2c184e6b3446d3ca21b38918641aeccd8fac3985ac3e30ec6bc75be6973985fde90f2a24236592f1595be259155061c2d33358dd17c4ee4fc
24 +DIST polkit-0.116.tar.gz 1548311 BLAKE2B e9761a2934136d453a47b81dd1f132f9fc96c45b731d5fceb2aa7706f5325b6499f6acbb68032befc1b21878b1b54754685607c916ca8e02a8accca3ca014b31 SHA512 b66b01cc2bb4349de70147f41f161f0f6f41e7230b581dfb054058b48969ec57041ab05b51787c749ccfc36aa5f317952d7e7ba337b4f6f6c0a923ed5866c2d5
25
26 diff --git a/sys-auth/polkit/polkit-0.116.ebuild b/sys-auth/polkit/polkit-0.116.ebuild
27 new file mode 100644
28 index 00000000000..b3fdcd99dd8
29 --- /dev/null
30 +++ b/sys-auth/polkit/polkit-0.116.ebuild
31 @@ -0,0 +1,141 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools pam pax-utils systemd user xdg-utils
38 +
39 +DESCRIPTION="Policy framework for controlling privileges for system-wide services"
40 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/polkit https://gitlab.freedesktop.org/polkit/polkit"
41 +SRC_URI="https://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz"
42 +
43 +LICENSE="LGPL-2"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
46 +IUSE="consolekit elogind examples gtk +introspection jit kde nls pam selinux systemd test"
47 +
48 +REQUIRED_USE="^^ ( consolekit elogind systemd )"
49 +
50 +BDEPEND="
51 + app-text/docbook-xml-dtd:4.1.2
52 + app-text/docbook-xsl-stylesheets
53 + dev-libs/gobject-introspection-common
54 + dev-libs/libxslt
55 + dev-util/glib-utils
56 + dev-util/gtk-doc-am
57 + dev-util/intltool
58 + sys-devel/gettext
59 + virtual/pkgconfig
60 + introspection? ( dev-libs/gobject-introspection )
61 +"
62 +DEPEND="
63 + dev-lang/spidermonkey:60[-debug]
64 + dev-libs/glib:2
65 + dev-libs/expat
66 + elogind? ( sys-auth/elogind )
67 + pam? (
68 + sys-auth/pambase
69 + virtual/pam
70 + )
71 + systemd? ( sys-apps/systemd:0=[policykit] )
72 +"
73 +RDEPEND="${DEPEND}
74 + selinux? ( sec-policy/selinux-policykit )
75 +"
76 +PDEPEND="
77 + consolekit? ( sys-auth/consolekit[policykit] )
78 + gtk? ( || (
79 + >=gnome-extra/polkit-gnome-0.105
80 + >=lxde-base/lxsession-0.5.2
81 + ) )
82 + kde? ( kde-plasma/polkit-kde-agent )
83 +"
84 +
85 +DOCS=( docs/TODO HACKING NEWS README )
86 +
87 +PATCHES=(
88 + # bug 660880
89 + "${FILESDIR}"/polkit-0.115-elogind.patch
90 +)
91 +
92 +QA_MULTILIB_PATHS="
93 + usr/lib/polkit-1/polkit-agent-helper-1
94 + usr/lib/polkit-1/polkitd"
95 +
96 +pkg_setup() {
97 + local u=polkitd
98 + local g=polkitd
99 + local h=/var/lib/polkit-1
100 +
101 + enewgroup ${g}
102 + enewuser ${u} -1 -1 ${h} ${g}
103 + esethome ${u} ${h}
104 +}
105 +
106 +src_prepare() {
107 + default
108 +
109 + sed -i -e 's|unix-group:wheel|unix-user:0|' src/polkitbackend/*-default.rules || die #401513
110 +
111 + # Workaround upstream hack around standard gtk-doc behavior, bug #552170
112 + sed -i -e 's/@ENABLE_GTK_DOC_TRUE@\(TARGET_DIR\)/\1/' \
113 + -e '/install-data-local:/,/uninstall-local:/ s/@ENABLE_GTK_DOC_TRUE@//' \
114 + -e 's/@ENABLE_GTK_DOC_FALSE@install-data-local://' \
115 + docs/polkit/Makefile.in || die
116 +
117 + # disable broken test - bug #624022
118 + sed -i -e "/^SUBDIRS/s/polkitbackend//" test/Makefile.am || die
119 +
120 + # Fix cross-building, bug #590764, elogind patch, bug #598615
121 + eautoreconf
122 +}
123 +
124 +src_configure() {
125 + xdg_environment_reset
126 +
127 + local myeconfargs=(
128 + --localstatedir="${EPREFIX}"/var
129 + --disable-static
130 + --enable-man-pages
131 + --disable-gtk-doc
132 + --disable-examples
133 + $(use_enable elogind libelogind)
134 + $(use_enable introspection)
135 + $(use_enable nls)
136 + $(usex pam "--with-pam-module-dir=$(getpam_mod_dir)" '')
137 + --with-authfw=$(usex pam pam shadow)
138 + $(use_enable systemd libsystemd-login)
139 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
140 + $(use_enable test)
141 + --with-os-type=gentoo
142 + )
143 + econf "${myeconfargs[@]}"
144 +}
145 +
146 +src_compile() {
147 + default
148 +
149 + # Required for polkitd on hardened/PaX due to spidermonkey's JIT
150 + pax-mark mr src/polkitbackend/.libs/polkitd test/polkitbackend/.libs/polkitbackendjsauthoritytest
151 +}
152 +
153 +src_install() {
154 + default
155 +
156 + fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d
157 +
158 + diropts -m0700 -o polkitd -g polkitd
159 + keepdir /var/lib/polkit-1
160 +
161 + if use examples; then
162 + insinto /usr/share/doc/${PF}/examples
163 + doins src/examples/{*.c,*.policy*}
164 + fi
165 +
166 + find "${ED}" -name '*.la' -delete || die
167 +}
168 +
169 +pkg_postinst() {
170 + chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
171 + chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1
172 +}