Gentoo Archives: gentoo-commits

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