Gentoo Archives: gentoo-commits

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