Gentoo Archives: gentoo-commits

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