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