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/consolekit: ChangeLog consolekit-0.3.0-r1.ebuild
Date: Mon, 27 Apr 2009 19:31:47
Message-Id: E1LyWYK-0006cM-4R@stork.gentoo.org
1 dang 09/04/27 19:31:44
2
3 Modified: ChangeLog
4 Added: consolekit-0.3.0-r1.ebuild
5 Log:
6 Add SetIdleHint to dbus policy
7 (Portage version: 2.2_rc31/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.46 sys-auth/consolekit/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/consolekit/ChangeLog?rev=1.46&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/consolekit/ChangeLog?rev=1.46&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/consolekit/ChangeLog?r1=1.45&r2=1.46
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-auth/consolekit/ChangeLog,v
19 retrieving revision 1.45
20 retrieving revision 1.46
21 diff -u -r1.45 -r1.46
22 --- ChangeLog 17 Mar 2009 22:48:43 -0000 1.45
23 +++ ChangeLog 27 Apr 2009 19:31:44 -0000 1.46
24 @@ -1,6 +1,15 @@
25 # ChangeLog for sys-auth/consolekit
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/consolekit/ChangeLog,v 1.45 2009/03/17 22:48:43 loki_val Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/consolekit/ChangeLog,v 1.46 2009/04/27 19:31:44 dang Exp $
29 +
30 +*consolekit-0.3.0-r1 (27 Apr 2009)
31 +
32 + 27 Apr 2009; Daniel Gryniewicz <dang@g.o>
33 + +files/consolekit-0.3.0-allow-setidle.patch, +consolekit-0.3.0-r1.ebuild:
34 + Bump to consolekit-0.3.0-r1
35 +
36 + - Add SetIdleHint to the dbus policy to handle the new default-deny on
37 + dbus
38
39 17 Mar 2009; Peter Alfredsen <loki_val@g.o>
40 consolekit-0.2.10.ebuild, consolekit-0.2.10-r1.ebuild,
41
42
43
44 1.1 sys-auth/consolekit/consolekit-0.3.0-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/consolekit/consolekit-0.3.0-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/consolekit/consolekit-0.3.0-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: consolekit-0.3.0-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-auth/consolekit/consolekit-0.3.0-r1.ebuild,v 1.1 2009/04/27 19:31:44 dang Exp $
54
55 EAPI="2"
56
57 inherit autotools eutils multilib pam
58
59 MY_PN="ConsoleKit"
60 MY_PV="${PV//_pre*/}"
61 MY_P="${MY_PN}-${MY_PV}"
62
63 DESCRIPTION="Framework for defining and tracking users, login sessions and seats."
64 HOMEPAGE="http://www.freedesktop.org/wiki/Software/ConsoleKit"
65 SRC_URI="http://people.freedesktop.org/~mccann/dist/${MY_P}.tar.bz2"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
70 IUSE="debug doc pam policykit"
71
72 RDEPEND=">=dev-libs/glib-2.16
73 >=dev-libs/dbus-glib-0.61
74 >=x11-libs/libX11-1.0.0
75 pam? ( virtual/pam )
76 policykit? ( >=sys-auth/policykit-0.7 )
77 elibc_glibc? ( !=sys-libs/glibc-2.4* )
78 sys-libs/zlib"
79 DEPEND="${RDEPEND}
80 dev-util/pkgconfig
81 dev-libs/libxslt
82 doc? ( app-text/xmlto )"
83
84 S="${WORKDIR}/${MY_PN}-${MY_PV}"
85
86 src_prepare() {
87 # Fix directory leaks, bug #258685
88 epatch "${FILESDIR}/${PN}-0.2.10-directory-leak.patch"
89
90 # Clean up at_console compat files, bug #257761
91 epatch "${FILESDIR}/${PN}-0.2.10-cleanup_console_tags.patch"
92
93 # Add nox11 option to no interfere with Xsession script, bug #257763
94 epatch "${FILESDIR}/${PN}-0.2.10-pam-add-nox11.patch"
95
96 # Fix automagic dependency on policykit
97 epatch "${FILESDIR}/${PN}-0.2.10-polkit-automagic.patch"
98
99 # Fix inability to shutdown/restart
100 epatch "${FILESDIR}/${P}-shutdown.patch"
101
102 # Add SetIdleHint policy to handle new default deny on dbus
103 epatch "${FILESDIR}/${P}-allow-setidle.patch"
104
105 eautoreconf
106 }
107
108 src_configure() {
109 econf \
110 $(use_enable debug) \
111 $(use_enable doc docbook-docs) \
112 $(use_enable pam pam-module) \
113 $(use_enable policykit polkit) \
114 --with-pam-module-dir=/$(getpam_mod_dir) \
115 --with-dbus-services=/usr/share/dbus-1/services/ \
116 --localstatedir=/var
117 }
118
119 src_install() {
120 emake DESTDIR="${D}" install || die "emake install failed"
121
122 # crappy Redhat init script
123 rm -f "${D}/etc/rc.d/init.d/ConsoleKit"
124
125 # Portage barfs on .la files
126 rm -f "${D}/$(get_libdir)/security/pam_ck_connector.la"
127
128 # Gentoo style init script
129 newinitd "${FILESDIR}"/${PN}-0.1.rc consolekit
130
131 # Some PM drop empty dirs, bug #257164
132 keepdir /usr/$(get_libdir)/ConsoleKit/run-session.d
133 keepdir /etc/ConsoleKit/run-session.d
134 keepdir /var/run/ConsoleKit
135 keepdir /var/log/ConsoleKit
136
137 insinto /etc/X11/xinit/xinitrc.d/
138 doins "${FILESDIR}/90-consolekit" || die "doins failed"
139
140 exeinto /usr/$(get_libdir)/ConsoleKit/run-session.d/
141 doexe "${FILESDIR}/pam-foreground-compat.ck" || die "doexe failed"
142 }
143
144 pkg_postinst() {
145 ewarn
146 ewarn "You need to restart ConsoleKit to get the new features."
147 ewarn "This can be done with /etc/init.d/consolekit restart"
148 ewarn "but make sure you do this and then restart your session"
149 ewarn "otherwise you will get access denied for certain actions"
150
151 ewarn
152 ewarn "You need to chmod +x /etc/X11/xinit/xinitrc.d/90-consolekit"
153 ewarn "to benefit of consolekit if you are not using gdm or pam integration."
154 }