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: metadata.xml ChangeLog polkit-0.104.ebuild
Date: Thu, 05 Jan 2012 11:09:52
Message-Id: 20120105110942.D55602004B@flycatcher.gentoo.org
1 ssuominen 12/01/05 11:09:42
2
3 Modified: metadata.xml ChangeLog
4 Added: polkit-0.104.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.4 sys-auth/polkit/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/metadata.xml?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/metadata.xml?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/metadata.xml?r1=1.3&r2=1.4
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-auth/polkit/metadata.xml,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- metadata.xml 7 Oct 2010 23:58:31 -0000 1.3
24 +++ metadata.xml 5 Jan 2012 11:09:42 -0000 1.4
25 @@ -7,6 +7,7 @@
26 <name>Nirbheek Chauhan</name>
27 </maintainer>
28 <use>
29 - <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg> for introspection</flag>
30 + <flag name='introspection'>Use <pkg>dev-libs/gobject-introspection</pkg> for introspection</flag>
31 + <flag name='systemd'>Use <pkg>sys-apps/systemd</pkg> instead of <pkg>sys-auth/consolekit</pkg> for session tracking</flag>
32 </use>
33 </pkgmetadata>
34
35
36
37 1.62 sys-auth/polkit/ChangeLog
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/ChangeLog?rev=1.62&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/ChangeLog?rev=1.62&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/ChangeLog?r1=1.61&r2=1.62
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/sys-auth/polkit/ChangeLog,v
46 retrieving revision 1.61
47 retrieving revision 1.62
48 diff -u -r1.61 -r1.62
49 --- ChangeLog 8 Dec 2011 15:42:02 -0000 1.61
50 +++ ChangeLog 5 Jan 2012 11:09:42 -0000 1.62
51 @@ -1,6 +1,12 @@
52 # ChangeLog for sys-auth/polkit
53 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/ChangeLog,v 1.61 2011/12/08 15:42:02 ssuominen Exp $
55 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
56 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/ChangeLog,v 1.62 2012/01/05 11:09:42 ssuominen Exp $
57 +
58 +*polkit-0.104 (05 Jan 2012)
59 +
60 + 05 Jan 2012; Samuli Suominen <ssuominen@g.o> +polkit-0.104.ebuild,
61 + metadata.xml:
62 + Version bump.
63
64 08 Dec 2011; Samuli Suominen <ssuominen@g.o> -polkit-0.101-r1.ebuild:
65 old
66
67
68
69 1.1 sys-auth/polkit/polkit-0.104.ebuild
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/polkit-0.104.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/polkit-0.104.ebuild?rev=1.1&content-type=text/plain
73
74 Index: polkit-0.104.ebuild
75 ===================================================================
76 # Copyright 1999-2012 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/polkit-0.104.ebuild,v 1.1 2012/01/05 11:09:42 ssuominen Exp $
79
80 EAPI=4
81 inherit pam
82
83 DESCRIPTION="Policy framework for controlling privileges for system-wide services"
84 HOMEPAGE="http://hal.freedesktop.org/docs/polkit/"
85 SRC_URI="http://hal.freedesktop.org/releases/${P}.tar.gz"
86
87 LICENSE="GPL-2"
88 SLOT="0"
89 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
90 IUSE="debug doc examples gtk +introspection kde nls pam systemd"
91
92 RDEPEND=">=dev-libs/glib-2.30
93 dev-libs/expat
94 introspection? ( >=dev-libs/gobject-introspection-0.6.2 )
95 pam? ( virtual/pam )
96 systemd? ( sys-apps/systemd )"
97 DEPEND="${RDEPEND}
98 app-text/docbook-xml-dtd:4.1.2
99 app-text/docbook-xsl-stylesheets
100 dev-libs/libxslt
101 dev-util/intltool
102 dev-util/pkgconfig
103 doc? ( >=dev-util/gtk-doc-1.13 )"
104 PDEPEND="!systemd? ( >=sys-auth/consolekit-0.4.5[policykit] )
105 pam? ( sys-auth/pambase[consolekit] )
106 gtk? ( || ( >=gnome-extra/polkit-gnome-${PV} lxde-base/lxpolkit ) )
107 kde? ( sys-auth/polkit-kde-agent )"
108
109 DOCS=( docs/TODO HACKING NEWS README )
110
111 src_configure() {
112 local myauth="--with-authfw=shadow"
113 use pam && myauth="--with-authfw=pam --with-pam-module-dir=$(getpam_mod_dir)"
114
115 econf \
116 --localstatedir="${EPREFIX}"/var \
117 --disable-static \
118 $(use_enable debug verbose-mode) \
119 --enable-man-pages \
120 $(use_enable doc gtk-doc) \
121 $(use_enable systemd) \
122 $(use_enable introspection) \
123 --disable-examples \
124 $(use_enable nls) \
125 --with-os-type=gentoo \
126 ${myauth}
127 }
128
129 src_install() {
130 default
131
132 find "${ED}" -name '*.la' -exec rm -f {} +
133
134 # We disable example compilation above, and handle it here
135 if use examples; then
136 insinto /usr/share/doc/${PF}/examples
137 doins src/examples/{*.c,*.policy*}
138 fi
139
140 # Need to keep a few directories around...
141 diropts -m0700 -o root -g root
142 keepdir /var/lib/polkit-1
143 #keepdir /var/run/polkit-1 #387903
144 }
145
146 pkg_postinst() {
147 # Make sure that the user has consolekit sessions working so that the
148 # 'allow_active' directive in polkit action policies works
149 if has_version 'gnome-base/gdm' && ! has_version 'gnome-base/gdm[consolekit]'; then
150 # If user has GDM installed, but USE=-consolekit, warn them
151 ewarn "You have GDM installed, but it does not have USE=consolekit"
152 ewarn "If you login using GDM, polkit authorizations will not work"
153 ewarn "unless you enable USE=consolekit"
154 einfo
155 fi
156 if has_version 'kde-base/kdm' && ! has_version 'kde-base/kdm[consolekit]'; then
157 # If user has KDM installed, but USE=-consolekit, warn them
158 ewarn "You have KDM installed, but it does not have USE=consolekit"
159 ewarn "If you login using KDM, polkit authorizations will not work"
160 ewarn "unless you enable USE=consolekit"
161 einfo
162 fi
163 if ! has_version 'gnome-base/gdm[consolekit]' && \
164 ! has_version 'kde-base/kdm[consolekit]'; then
165 # Inform user about the alternative method
166 ewarn "If you don't use GDM or KDM for logging in,"
167 ewarn "you must start your desktop environment (DE) as follows:"
168 ewarn " ck-launch-session \$STARTGUI"
169 ewarn "Where \$STARTGUI is a DE-starting command such as 'gnome-session'."
170 ewarn "You should add this to your ~/.xinitrc if you use startx."
171 fi
172 }