1 |
commit: 9507e28056579dbb7ada3176e719f68da606487f |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 10:30:00 2016 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 10:30:30 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9507e280 |
7 |
|
8 |
sys-auth/polkit: fix gtk-doc installation, bug #552170, add gettext to DEPEND, bug #555004 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
sys-auth/polkit/polkit-0.113-r1.ebuild | 119 +++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 119 insertions(+) |
14 |
|
15 |
diff --git a/sys-auth/polkit/polkit-0.113-r1.ebuild b/sys-auth/polkit/polkit-0.113-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..b3bbd00 |
18 |
--- /dev/null |
19 |
+++ b/sys-auth/polkit/polkit-0.113-r1.ebuild |
20 |
@@ -0,0 +1,119 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+inherit eutils multilib pam pax-utils systemd user |
27 |
+ |
28 |
+DESCRIPTION="Policy framework for controlling privileges for system-wide services" |
29 |
+HOMEPAGE="http://www.freedesktop.org/wiki/Software/polkit" |
30 |
+SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="LGPL-2" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
35 |
+IUSE="examples gtk +introspection jit kde nls pam selinux systemd test" |
36 |
+ |
37 |
+CDEPEND=" |
38 |
+ dev-lang/spidermonkey:0/mozjs185[-debug] |
39 |
+ >=dev-libs/glib-2.32:2 |
40 |
+ >=dev-libs/expat-2:= |
41 |
+ introspection? ( >=dev-libs/gobject-introspection-1:= ) |
42 |
+ pam? ( |
43 |
+ sys-auth/pambase |
44 |
+ virtual/pam |
45 |
+ ) |
46 |
+ systemd? ( sys-apps/systemd:0= ) |
47 |
+" |
48 |
+DEPEND="${CDEPEND} |
49 |
+ app-text/docbook-xml-dtd:4.1.2 |
50 |
+ app-text/docbook-xsl-stylesheets |
51 |
+ dev-libs/libxslt |
52 |
+ dev-util/gtk-doc-am |
53 |
+ dev-util/intltool |
54 |
+ sys-devel/gettext |
55 |
+ virtual/pkgconfig |
56 |
+" |
57 |
+RDEPEND="${CDEPEND} |
58 |
+ selinux? ( sec-policy/selinux-policykit ) |
59 |
+" |
60 |
+PDEPEND=" |
61 |
+ gtk? ( || ( |
62 |
+ >=gnome-extra/polkit-gnome-0.105 |
63 |
+ lxde-base/lxpolkit |
64 |
+ ) ) |
65 |
+ kde? ( || ( |
66 |
+ kde-plasma/polkit-kde-agent |
67 |
+ sys-auth/polkit-kde-agent |
68 |
+ ) ) |
69 |
+ !systemd? ( sys-auth/consolekit[policykit] ) |
70 |
+" |
71 |
+ |
72 |
+QA_MULTILIB_PATHS=" |
73 |
+ usr/lib/polkit-1/polkit-agent-helper-1 |
74 |
+ usr/lib/polkit-1/polkitd" |
75 |
+ |
76 |
+pkg_setup() { |
77 |
+ local u=polkitd |
78 |
+ local g=polkitd |
79 |
+ local h=/var/lib/polkit-1 |
80 |
+ |
81 |
+ enewgroup ${g} |
82 |
+ enewuser ${u} -1 -1 ${h} ${g} |
83 |
+ esethome ${u} ${h} |
84 |
+} |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ sed -i -e 's|unix-group:wheel|unix-user:0|' src/polkitbackend/*-default.rules || die #401513 |
88 |
+ |
89 |
+ # Drop upstream hack around standard gtk-doc behavior, bug #552170 |
90 |
+ sed -i -e 's/@ENABLE_GTK_DOC_TRUE@//' docs/polkit/Makefile.in || die |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ econf \ |
95 |
+ --localstatedir="${EPREFIX}"/var \ |
96 |
+ --disable-static \ |
97 |
+ --enable-man-pages \ |
98 |
+ --disable-gtk-doc \ |
99 |
+ $(use_enable systemd libsystemd-login) \ |
100 |
+ $(use_enable introspection) \ |
101 |
+ --disable-examples \ |
102 |
+ $(use_enable nls) \ |
103 |
+ --with-mozjs=mozjs185 \ |
104 |
+ "$(systemd_with_unitdir)" \ |
105 |
+ --with-authfw=$(usex pam pam shadow) \ |
106 |
+ $(use pam && echo --with-pam-module-dir="$(getpam_mod_dir)") \ |
107 |
+ $(use_enable test) \ |
108 |
+ --with-os-type=gentoo |
109 |
+} |
110 |
+ |
111 |
+src_compile() { |
112 |
+ default |
113 |
+ |
114 |
+ # Required for polkitd on hardened/PaX due to spidermonkey's JIT |
115 |
+ pax-mark mr src/polkitbackend/.libs/polkitd test/polkitbackend/.libs/polkitbackendjsauthoritytest |
116 |
+} |
117 |
+ |
118 |
+src_install() { |
119 |
+ emake DESTDIR="${D}" install |
120 |
+ |
121 |
+ dodoc docs/TODO HACKING NEWS README |
122 |
+ |
123 |
+ fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d |
124 |
+ |
125 |
+ diropts -m0700 -o polkitd -g polkitd |
126 |
+ keepdir /var/lib/polkit-1 |
127 |
+ |
128 |
+ if use examples; then |
129 |
+ insinto /usr/share/doc/${PF}/examples |
130 |
+ doins src/examples/{*.c,*.policy*} |
131 |
+ fi |
132 |
+ |
133 |
+ prune_libtool_files |
134 |
+} |
135 |
+ |
136 |
+pkg_postinst() { |
137 |
+ chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d |
138 |
+ chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1 |
139 |
+} |