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