1 |
ssuominen 12/07/02 16:29:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: polkit-0.106-r7.ebuild |
5 |
Log: |
6 |
RESTRICT="multilib-strict" since it's not compatible with the whole /usr/libexec -> u/usr/lib/$package migration wrt #424423. This will move polkit-agent-helper-1 and polkitd back to /usr/lib/polkit-1. |
7 |
|
8 |
(Portage version: 2.2.0_alpha114/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.96 sys-auth/polkit/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/ChangeLog?rev=1.96&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/ChangeLog?rev=1.96&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/ChangeLog?r1=1.95&r2=1.96 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-auth/polkit/ChangeLog,v |
20 |
retrieving revision 1.95 |
21 |
retrieving revision 1.96 |
22 |
diff -u -r1.95 -r1.96 |
23 |
--- ChangeLog 1 Jul 2012 13:30:22 -0000 1.95 |
24 |
+++ ChangeLog 2 Jul 2012 16:29:47 -0000 1.96 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for sys-auth/polkit |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/ChangeLog,v 1.95 2012/07/01 13:30:22 ssuominen Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/ChangeLog,v 1.96 2012/07/02 16:29:47 ssuominen Exp $ |
30 |
+ |
31 |
+*polkit-0.106-r7 (02 Jul 2012) |
32 |
+ |
33 |
+ 02 Jul 2012; Samuli Suominen <ssuominen@g.o> +polkit-0.106-r7.ebuild: |
34 |
+ RESTRICT="multilib-strict" since it's not compatible with the whole |
35 |
+ /usr/libexec -> /usr/lib/$package migration wrt #424423. This will move |
36 |
+ polkit-agent-helper-1 and polkitd back to /usr/lib/polkit-1. |
37 |
|
38 |
*polkit-0.106-r6 (01 Jul 2012) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-auth/polkit/polkit-0.106-r7.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/polkit-0.106-r7.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/polkit-0.106-r7.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: polkit-0.106-r7.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/polkit-0.106-r7.ebuild,v 1.1 2012/07/02 16:29:47 ssuominen Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
inherit eutils multilib pam pax-utils systemd user |
56 |
|
57 |
DESCRIPTION="Policy framework for controlling privileges for system-wide services" |
58 |
HOMEPAGE="http://www.freedesktop.org/wiki/Software/polkit" |
59 |
SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz" |
60 |
|
61 |
LICENSE="LGPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
64 |
IUSE="debug examples gtk +introspection kde nls pam selinux systemd" |
65 |
|
66 |
RESTRICT="multilib-strict" #424423 |
67 |
|
68 |
RDEPEND=">=dev-lang/spidermonkey-1.8.5 |
69 |
>=dev-libs/glib-2.32 |
70 |
>=dev-libs/expat-2 |
71 |
introspection? ( >=dev-libs/gobject-introspection-1 ) |
72 |
pam? ( |
73 |
sys-auth/pambase |
74 |
virtual/pam |
75 |
) |
76 |
selinux? ( sec-policy/selinux-policykit ) |
77 |
systemd? ( sys-apps/systemd )" |
78 |
DEPEND="${RDEPEND} |
79 |
app-text/docbook-xml-dtd:4.1.2 |
80 |
app-text/docbook-xsl-stylesheets |
81 |
dev-libs/libxslt |
82 |
dev-util/intltool |
83 |
virtual/pkgconfig" |
84 |
PDEPEND=" |
85 |
gtk? ( || ( |
86 |
>=gnome-extra/polkit-gnome-0.105 |
87 |
lxde-base/lxpolkit |
88 |
) ) |
89 |
kde? ( sys-auth/polkit-kde-agent ) |
90 |
pam? ( |
91 |
systemd? ( sys-auth/pambase[systemd] ) |
92 |
!systemd? ( sys-auth/pambase[consolekit] ) |
93 |
) |
94 |
!systemd? ( >=sys-auth/consolekit-0.4.5_p2012[policykit] )" |
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 |
sed -i -e 's|unix-group:wheel|unix-user:0|' src/polkitbackend/*-default.rules || die #401513 |
108 |
has_version ">=dev-lang/spidermonkey-1.8.7" && { sed -i -e '/mozjs/s:185:187:g' configure || die; } |
109 |
} |
110 |
|
111 |
src_configure() { |
112 |
econf \ |
113 |
--localstatedir="${EPREFIX}"/var \ |
114 |
--disable-static \ |
115 |
$(use_enable debug verbose-mode) \ |
116 |
--enable-man-pages \ |
117 |
--disable-gtk-doc \ |
118 |
$(use_enable systemd libsystemd-login) \ |
119 |
$(use_enable introspection) \ |
120 |
--disable-examples \ |
121 |
$(use_enable nls) \ |
122 |
"$(systemd_with_unitdir)" \ |
123 |
--with-authfw=$(usex pam pam shadow) \ |
124 |
$(use pam && echo --with-pam-module-dir="$(getpam_mod_dir)") \ |
125 |
--with-os-type=gentoo |
126 |
} |
127 |
|
128 |
src_install() { |
129 |
emake DESTDIR="${D}" install |
130 |
|
131 |
dodoc docs/TODO HACKING NEWS README |
132 |
|
133 |
fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d |
134 |
|
135 |
diropts -m0700 -o polkitd -g polkitd |
136 |
keepdir /var/lib/polkit-1 |
137 |
|
138 |
if use examples; then |
139 |
insinto /usr/share/doc/${PF}/examples |
140 |
doins src/examples/{*.c,*.policy*} |
141 |
fi |
142 |
|
143 |
prune_libtool_files |
144 |
rm -f "${ED}"/usr/lib*/pkgconfig/polkit-backend-1.pc #423431 |
145 |
|
146 |
# Required for polkitd on hardened/PaX due to spidermonkey's JIT |
147 |
if has_version '<dev-lang/spidermonkey-1.8.7'; then |
148 |
pax-mark mr "${ED}"/usr/lib/polkit-1/polkitd |
149 |
elif has_version '>=dev-lang/spidermonkey-1.8.7[jit]'; then |
150 |
pax-mark m "${ED}"/usr/lib/polkit-1/polkitd |
151 |
fi |
152 |
} |
153 |
|
154 |
pkg_postinst() { |
155 |
chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d |
156 |
chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1 |
157 |
} |