Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-auth/policykit: metadata.xml ChangeLog policykit-0.9.ebuild
Date: Mon, 01 Dec 2008 22:14:08
Message-Id: E1L7H1R-0000if-1X@stork.gentoo.org
1 eva 08/12/01 22:13:41
2
3 Modified: metadata.xml ChangeLog
4 Added: policykit-0.9.ebuild
5 Log:
6 Bump to 0.9. Fix bug #214801.
7 (Portage version: 2.2_rc16/cvs/Linux 2.6.24-gentoo-r8-mactel x86_64)
8
9 Revision Changes Path
10 1.2 sys-auth/policykit/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/policykit/metadata.xml?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/policykit/metadata.xml?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/policykit/metadata.xml?r1=1.1&r2=1.2
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-auth/policykit/metadata.xml,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- metadata.xml 23 Nov 2007 06:06:22 -0000 1.1
23 +++ metadata.xml 1 Dec 2008 22:13:40 -0000 1.2
24 @@ -6,6 +6,9 @@
25 <name>Saleem Abdulrasool</name>
26 </maintainer>
27 <herd>gentopia</herd>
28 + <use>
29 + <flag name="zsh-completion">Install zsh command completion.</flag>
30 + </use>
31 <longdescription lang="en">
32 </longdescription>
33 </pkgmetadata>
34
35
36
37 1.7 sys-auth/policykit/ChangeLog
38
39 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/policykit/ChangeLog?rev=1.7&view=markup
40 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/policykit/ChangeLog?rev=1.7&content-type=text/plain
41 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/policykit/ChangeLog?r1=1.6&r2=1.7
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/sys-auth/policykit/ChangeLog,v
46 retrieving revision 1.6
47 retrieving revision 1.7
48 diff -u -r1.6 -r1.7
49 --- ChangeLog 25 Jan 2008 19:09:40 -0000 1.6
50 +++ ChangeLog 1 Dec 2008 22:13:40 -0000 1.7
51 @@ -1,6 +1,15 @@
52 # ChangeLog for sys-auth/policykit
53 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/policykit/ChangeLog,v 1.6 2008/01/25 19:09:40 corsair Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/policykit/ChangeLog,v 1.7 2008/12/01 22:13:40 eva Exp $
56 +
57 +*policykit-0.9 (01 Dec 2008)
58 +
59 + 01 Dec 2008; Gilles Dartiguelongue <eva@g.o>
60 + +files/policykit-0.7-completions.patch,
61 + +files/policykit-0.9-consolekit03.patch,
62 + +files/policykit-0.9-pam-headers.patch,
63 + +files/policykit-0.9-pk-debug.patch, +policykit-0.9.ebuild:
64 + Bump to 0.9. Fix bug #214801.
65
66 25 Jan 2008; Markus Rothe <corsair@g.o> policykit-0.6.ebuild:
67 Added ~ppc64; bug #200076
68
69
70
71 1.1 sys-auth/policykit/policykit-0.9.ebuild
72
73 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/policykit/policykit-0.9.ebuild?rev=1.1&view=markup
74 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/policykit/policykit-0.9.ebuild?rev=1.1&content-type=text/plain
75
76 Index: policykit-0.9.ebuild
77 ===================================================================
78 # Copyright 1999-2008 Gentoo Foundation
79 # Distributed under the terms of the GNU General Public License v2
80 # $Header: /var/cvsroot/gentoo-x86/sys-auth/policykit/policykit-0.9.ebuild,v 1.1 2008/12/01 22:13:40 eva Exp $
81
82 inherit autotools bash-completion eutils multilib pam
83
84 MY_PN="PolicyKit"
85
86 DESCRIPTION="Policy framework for controlling privileges for system-wide services"
87 HOMEPAGE="http://hal.freedesktop.org/docs/PolicyKit"
88 SRC_URI="http://hal.freedesktop.org/releases/${MY_PN}-${PV}.tar.gz"
89
90 LICENSE="MIT"
91 SLOT="0"
92 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
93 IUSE="bash-completion doc pam selinux zsh-completion"
94
95 RDEPEND=">=dev-libs/glib-2.6
96 >=dev-libs/dbus-glib-0.73
97 dev-libs/expat
98 pam? ( virtual/pam )
99 selinux? ( sys-libs/libselinux )"
100 DEPEND="${RDEPEND}
101 dev-libs/libxslt
102 app-text/docbook-xsl-stylesheets
103 >=dev-util/pkgconfig-0.18
104 >=dev-util/intltool-0.36
105 >=dev-util/gtk-doc-am-1.10-r1
106 doc? ( >=dev-util/gtk-doc-1.10 )"
107
108 S="${WORKDIR}/${MY_PN}-${PV}"
109
110 pkg_setup() {
111 enewgroup polkituser
112 enewuser polkituser -1 "-1" /dev/null polkituser
113 }
114
115 src_unpack() {
116 unpack ${A}
117 cd "${S}"
118
119 # Add zsh/bash completion
120 epatch "${FILESDIR}/${PN}-0.7-completions.patch"
121
122 # Fix use of undefined _pk_debug, bug #239573
123 epatch "${FILESDIR}/${P}-pk-debug.patch"
124
125 # Fix useless pam header inclusion, bug #239554
126 epatch "${FILESDIR}/${P}-pam-headers.patch"
127
128 # Fix API change in consolekit 0.3
129 epatch "${FILESDIR}/${P}-consolekit03.patch"
130
131 eautoreconf
132 }
133
134 src_compile() {
135 local authdb=
136
137 if use pam ; then
138 authdb="--with-authdb=default --with-authfw=pam --with-pam-module-dir=$(getpam_mod_dir)"
139 else
140 authdb="--with-authdb=dummy --with-authfw=none"
141 fi
142
143 econf ${authdb} \
144 --without-bash-completion \
145 --without-zsh-completion \
146 --enable-man-pages \
147 --with-os-type=gentoo \
148 --with-polkit-user=polkituser \
149 --with-polkit-group=polkituser \
150 $(use_enable doc gtk-doc) \
151 $(use_enable selinux) \
152 --localstatedir=/var
153 # won't install with tests
154 # $(use_enable test tests) \
155 emake || die "emake failed"
156 }
157
158 src_install() {
159 emake DESTDIR="${D}" install || die "emake install failed"
160
161 dodoc NEWS README AUTHORS ChangeLog
162
163 if use bash-completion; then
164 dobashcompletion "${S}/tools/polkit-bash-completion.sh"
165 fi
166
167 if use zsh-completion ; then
168 insinto /usr/share/zsh/site-functions
169 doins "${S}/tools/_polkit" || die "zsh completion died"
170 doins "${S}/tools/_polkit_auth" || die "zsh completion died"
171 doins "${S}/tools/_polkit_action" || die "zsh completion died"
172 fi
173
174 einfo "Installing basic PolicyKit.conf"
175 insinto /etc/PolicyKit
176 doins "${FILESDIR}"/PolicyKit.conf
177 # Need to keep a few directories around...
178
179 diropts -m0770 -o root -g polkituser
180 keepdir /var/run/PolicyKit
181 keepdir /var/lib/PolicyKit
182 }
183
184 pkg_preinst() {
185 # Stolen from vixie-cron ebuilds
186 has_version "<${CATEGORY}/${PN}-0.9"
187 fix_var_dir_perms=$?
188 }
189
190 pkg_postinst() {
191 # bug #239231
192 if [[ $fix_var_dir_perms = 0 ]] ; then
193 echo
194 ewarn "Previous version of PolicyKit handled /var/run and /var/lib"
195 ewarn "with different permissions. Proper permissions are"
196 ewarn "now being set on ${ROOT}var/lib/PolicyKit and ${ROOT}var/lib/PolicyKit"
197 ewarn "Look at these directories if you have a specific configuration"
198 ewarn "that needs special ownerships or permissions."
199 echo
200 chmod 0770 "${ROOT}"var/{lib,run}/PolicyKit || die "chmod failed"
201 chgrp -R polkituser "${ROOT}"var/{lib,run}/PolicyKit || die "chgrp failed"
202 fi
203 }