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