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/polkit: metadata.xml ChangeLog polkit-0.94.ebuild
Date: Thu, 29 Oct 2009 23:28:03
Message-Id: E1N3ePR-00026M-NZ@stork.gentoo.org
1 eva 09/10/29 23:28:01
2
3 Added: metadata.xml ChangeLog polkit-0.94.ebuild
4 Log:
5 Initial ebuild for GNOME 2.28.
6 (Portage version: 2.2_rc46/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sys-auth/polkit/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/polkit/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/polkit/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <maintainer>
20 <email>nirbheek@g.o</email>
21 <name>Nirbheek Chauhan</name>
22 </maintainer>
23 <herd>freedesktop</herd>
24 </pkgmetadata>
25
26
27
28
29 1.1 sys-auth/polkit/ChangeLog
30
31 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/polkit/ChangeLog?rev=1.1&view=markup
32 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/polkit/ChangeLog?rev=1.1&content-type=text/plain
33
34 Index: ChangeLog
35 ===================================================================
36 # ChangeLog for sys-auth/polkit
37 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
38 # $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/ChangeLog,v 1.1 2009/10/29 23:28:01 eva Exp $
39
40 *polkit-0.94 (29 Oct 2009)
41
42 29 Oct 2009; Gilles Dartiguelongue <eva@g.o>
43 +files/polkit-0.92-zsh-completions.patch,
44 +files/polkit-0.93-fix-daemon-name.patch, +polkit-0.94.ebuild,
45 +metadata.xml:
46 Initial ebuild for GNOME 2.28.
47
48
49
50
51 1.1 sys-auth/polkit/polkit-0.94.ebuild
52
53 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/polkit/polkit-0.94.ebuild?rev=1.1&view=markup
54 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/polkit/polkit-0.94.ebuild?rev=1.1&content-type=text/plain
55
56 Index: polkit-0.94.ebuild
57 ===================================================================
58 # Copyright 1999-2009 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 # $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/polkit-0.94.ebuild,v 1.1 2009/10/29 23:28:01 eva Exp $
61
62 EAPI="2"
63
64 inherit autotools eutils multilib pam
65
66 DESCRIPTION="Policy framework for controlling privileges for system-wide services"
67 HOMEPAGE="http://hal.freedesktop.org/docs/PolicyKit"
68 SRC_URI="http://hal.freedesktop.org/releases/${P}.tar.gz"
69
70 LICENSE="GPL-2"
71 SLOT="0"
72 KEYWORDS="~amd64 ~x86"
73 IUSE="debug doc expat pam zsh-completion nls"
74 # introspection
75
76 # not mature enough
77 # introspection? ( dev-libs/gobject-introspection )
78 RDEPEND=">=dev-libs/glib-2.21.4
79 >=dev-libs/eggdbus-0.5
80 expat? ( dev-libs/expat )
81 pam? ( virtual/pam )"
82 DEPEND="${RDEPEND}
83 !!>=sys-auth/policykit-0.92
84 dev-libs/libxslt
85 app-text/docbook-xsl-stylesheets
86 >=dev-util/pkgconfig-0.18
87 >=dev-util/intltool-0.36
88 dev-util/gtk-doc-am
89 doc? ( >=dev-util/gtk-doc-1.10 )"
90
91 pkg_setup() {
92 enewgroup polkituser
93 enewuser polkituser -1 "-1" /dev/null polkituser
94 }
95
96 src_prepare() {
97 # Add zsh completions
98 if use zsh-completion; then
99 epatch "${FILESDIR}/${PN}-0.92-zsh-completions.patch"
100 fi
101
102 # Fix daemon binary collision with <=policykit-0.9, fdo bug 22951
103 epatch "${FILESDIR}/${PN}-0.93-fix-daemon-name.patch"
104
105 intltoolize --force --copy --automake || die "intltoolize failed"
106 eautoreconf
107 }
108
109 src_configure() {
110 local conf
111
112 if use pam ; then
113 conf="--with-authfw=pam --with-pam-module-dir=$(getpam_mod_dir)"
114 else
115 conf="--with-authfw=none"
116 fi
117
118 if use expat; then
119 conf="--with-expat=/usr"
120 fi
121
122 econf ${conf} \
123 --disable-introspection \
124 --disable-ansi \
125 --enable-fast-install \
126 --enable-libtool-lock \
127 --enable-man-pages \
128 --disable-dependency-tracking \
129 --with-os-type=gentoo \
130 --with-polkit-user=polkituser \
131 --localstatedir=/var \
132 $(use_enable debug verbose-mode) \
133 $(use_enable doc gtk-doc) \
134 $(use_enable nls)
135 #$(use_enable introspection)
136 }
137
138 src_install() {
139 emake DESTDIR="${D}" install || die "emake install failed"
140
141 dodoc NEWS README AUTHORS ChangeLog || die "dodoc failed"
142
143 if use zsh-completion ; then
144 insinto /usr/share/zsh/site-functions
145 doins "${S}/tools/_polkit" || die "zsh completion died"
146 doins "${S}/tools/_polkit_auth" || die "zsh completion died"
147 doins "${S}/tools/_polkit_action" || die "zsh completion died"
148 fi
149
150 # Need to keep a few directories around...
151 diropts -m0700 -o root -g polkituser
152 keepdir /var/run/polkit-1
153 keepdir /var/lib/polkit-1
154 }