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/consolekit: ChangeLog consolekit-0.4.2-r1.ebuild consolekit-0.4.2.ebuild
Date: Thu, 09 Sep 2010 21:13:23
Message-Id: 20100909211316.965A420051@flycatcher.gentoo.org
1 ssuominen 10/09/09 21:13:16
2
3 Modified: ChangeLog
4 Added: consolekit-0.4.2-r1.ebuild
5 Removed: consolekit-0.4.2.ebuild
6 Log:
7 Revert upstream "Only set sessions to be is-local=true if set by a trusted party" wrt #336634.
8
9 (Portage version: 2.2_rc78/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.76 sys-auth/consolekit/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/consolekit/ChangeLog?rev=1.76&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/consolekit/ChangeLog?rev=1.76&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/consolekit/ChangeLog?r1=1.75&r2=1.76
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-auth/consolekit/ChangeLog,v
21 retrieving revision 1.75
22 retrieving revision 1.76
23 diff -u -r1.75 -r1.76
24 --- ChangeLog 7 Sep 2010 14:22:36 -0000 1.75
25 +++ ChangeLog 9 Sep 2010 21:13:16 -0000 1.76
26 @@ -1,6 +1,13 @@
27 # ChangeLog for sys-auth/consolekit
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/consolekit/ChangeLog,v 1.75 2010/09/07 14:22:36 ssuominen Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/consolekit/ChangeLog,v 1.76 2010/09/09 21:13:16 ssuominen Exp $
31 +
32 +*consolekit-0.4.2-r1 (09 Sep 2010)
33 +
34 + 09 Sep 2010; Samuli Suominen <ssuominen@g.o>
35 + +consolekit-0.4.2-r1.ebuild, +files/consolekit-0.4.2-revert.patch:
36 + Revert upstream "Only set sessions to be is-local=true if set by a trusted
37 + party" wrt #336634.
38
39 *consolekit-0.4.2 (07 Sep 2010)
40
41
42
43
44 1.1 sys-auth/consolekit/consolekit-0.4.2-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/consolekit/consolekit-0.4.2-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/consolekit/consolekit-0.4.2-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: consolekit-0.4.2-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2010 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.4.2-r1.ebuild,v 1.1 2010/09/09 21:13:16 ssuominen Exp $
54
55 EAPI=3
56 inherit autotools eutils multilib pam
57
58 MY_PN=ConsoleKit
59 MY_P=${MY_PN}-${PV}
60
61 DESCRIPTION="Framework for defining and tracking users, login sessions and seats."
62 HOMEPAGE="http://www.freedesktop.org/wiki/Software/ConsoleKit"
63 SRC_URI="http://www.freedesktop.org/software/${MY_PN}/dist/${MY_P}.tar.bz2"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
68 IUSE="debug doc pam policykit test"
69
70 RDEPEND=">=dev-libs/dbus-glib-0.80
71 >=dev-libs/glib-2.20
72 sys-libs/zlib
73 x11-libs/libX11
74 pam? ( virtual/pam )
75 policykit? ( >=sys-auth/polkit-0.96 )"
76 DEPEND="${RDEPEND}
77 dev-util/pkgconfig
78 dev-libs/libxslt
79 doc? ( app-text/xmlto )
80 test? ( app-text/docbook-xml-dtd:4.1.2 )"
81
82 S=${WORKDIR}/${MY_P}
83
84 src_prepare() {
85 epatch \
86 "${FILESDIR}"/${PN}-0.2.10-cleanup_console_tags.patch \
87 "${FILESDIR}"/${PN}-0.4.0-polkit-automagic.patch \
88 "${FILESDIR}"/${PN}-0.4.0-multilib.patch \
89 "${FILESDIR}"/${PN}-0.4.1-shutdown-reboot-without-policies.patch \
90 "${FILESDIR}"/${PN}-0.4.2-revert.patch
91
92 eautoreconf
93 }
94
95 src_configure() {
96 econf \
97 XMLTO_FLAGS="--skip-validation" \
98 --localstatedir="${EPREFIX}"/var \
99 $(use_enable pam pam-module) \
100 $(use_enable doc docbook-docs) \
101 $(use_enable debug) \
102 $(use_enable policykit polkit) \
103 --with-dbus-services="${EPREFIX}"/usr/share/dbus-1/services \
104 --with-pam-module-dir=$(getpam_mod_dir)
105 }
106
107 src_install() {
108 emake \
109 DESTDIR="${D}" \
110 htmldocdir="${EPREFIX}"/usr/share/doc/${PF}/html \
111 install || die
112
113 dodoc AUTHORS ChangeLog HACKING NEWS README TODO
114
115 newinitd "${FILESDIR}"/${PN}-0.1.rc consolekit
116
117 keepdir /usr/$(get_libdir)/ConsoleKit/run-session.d
118 keepdir /etc/ConsoleKit/run-session.d
119 keepdir /var/run/ConsoleKit
120 keepdir /var/log/ConsoleKit
121
122 exeinto /etc/X11/xinit/xinitrc.d
123 doexe "${FILESDIR}"/90-consolekit || die
124
125 exeinto /usr/$(get_libdir)/ConsoleKit/run-session.d
126 doexe "${FILESDIR}"/pam-foreground-compat.ck || die
127
128 find "${ED}" -name '*.la' -exec rm -f '{}' +
129 }
130
131 pkg_postinst() {
132 ewarn
133 ewarn "You need to restart ConsoleKit to get the new features."
134 ewarn "This can be done with /etc/init.d/consolekit restart"
135 ewarn "but make sure you do this and then restart your session"
136 ewarn "otherwise you will get access denied for certain actions"
137 }