Gentoo Archives: gentoo-commits

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