/[gentoo-x86]/sys-auth/consolekit/consolekit-0.4.5-r2.ebuild
Gentoo

Contents of /sys-auth/consolekit/consolekit-0.4.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri May 4 18:57:21 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
Changes since 1.1: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 jdhore 1.2 # Copyright 1999-2012 Gentoo Foundation
2 axs 1.1 # Distributed under the terms of the GNU General Public License v2
3 jdhore 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-auth/consolekit/consolekit-0.4.5-r2.ebuild,v 1.1 2011/10/20 19:14:47 axs Exp $
4 axs 1.1
5     EAPI=4
6     inherit autotools eutils linux-info multilib pam systemd
7    
8     MY_PN=ConsoleKit
9     MY_P=${MY_PN}-${PV}
10    
11     DESCRIPTION="Framework for defining and tracking users, login sessions and seats."
12     HOMEPAGE="http://www.freedesktop.org/wiki/Software/ConsoleKit"
13     SRC_URI="http://www.freedesktop.org/software/${MY_PN}/dist/${MY_P}.tar.bz2"
14    
15     LICENSE="GPL-2"
16     SLOT="0"
17     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
18     IUSE="debug doc kernel_linux pam policykit test"
19    
20     RDEPEND=">=dev-libs/dbus-glib-0.88
21     >=dev-libs/glib-2.20:2
22     sys-libs/zlib
23     x11-libs/libX11
24     pam? ( virtual/pam )
25     policykit? ( >=sys-auth/polkit-0.101-r1 )"
26     DEPEND="${RDEPEND}
27 jdhore 1.2 virtual/pkgconfig
28 axs 1.1 dev-libs/libxslt
29     doc? ( app-text/xmlto )
30     test? ( app-text/docbook-xml-dtd:4.1.2 )"
31    
32     S=${WORKDIR}/${MY_P}
33    
34     pkg_setup() {
35     # This is required to get login-session-id string with pam_ck_connector.so
36     if use pam && use kernel_linux; then
37     CONFIG_CHECK="~AUDITSYSCALL"
38     linux-info_pkg_setup
39     fi
40     }
41    
42     src_prepare() {
43     epatch \
44     "${FILESDIR}"/${PN}-0.2.10-cleanup_console_tags.patch \
45     "${FILESDIR}"/${PN}-0.4.0-polkit-automagic.patch \
46     "${FILESDIR}"/${PN}-0.4.0-multilib.patch \
47     "${FILESDIR}"/${PN}-0.4.1-shutdown-reboot-without-policies.patch
48    
49     eautoreconf
50     }
51    
52     src_configure() {
53     econf \
54     XMLTO_FLAGS="--skip-validation" \
55     --localstatedir="${EPREFIX}"/var \
56     $(use_enable pam pam-module) \
57     $(use_enable doc docbook-docs) \
58     $(use_enable debug) \
59     $(use_enable policykit polkit) \
60     --with-dbus-services="${EPREFIX}"/usr/share/dbus-1/services \
61     --with-pam-module-dir=$(getpam_mod_dir) \
62     "$(systemd_with_unitdir)"
63     }
64    
65     src_install() {
66     emake \
67     DESTDIR="${D}" \
68     htmldocdir="${EPREFIX}"/usr/share/doc/${PF}/html \
69     install
70    
71     dodoc AUTHORS ChangeLog HACKING NEWS README TODO
72    
73     newinitd "${FILESDIR}"/${PN}-0.2.rc consolekit
74    
75     keepdir /usr/$(get_libdir)/ConsoleKit/run-seat.d
76     keepdir /usr/$(get_libdir)/ConsoleKit/run-session.d
77     keepdir /etc/ConsoleKit/run-session.d
78     keepdir /var/log/ConsoleKit
79    
80     exeinto /etc/X11/xinit/xinitrc.d
81     newexe "${FILESDIR}"/90-consolekit-3 90-consolekit
82    
83     exeinto /usr/$(get_libdir)/ConsoleKit/run-session.d
84     doexe "${FILESDIR}"/pam-foreground-compat.ck
85    
86     find "${ED}" -name '*.la' -exec rm -f {} +
87     }
88    
89     pkg_postinst() {
90     ewarn "You need to restart ConsoleKit to get the new features."
91     ewarn "This can be done with /etc/init.d/consolekit restart"
92     ewarn "but make sure you do this and then restart your session"
93     ewarn "otherwise you will get access denied for certain actions"
94     }

  ViewVC Help
Powered by ViewVC 1.1.20