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