/[gentoo-x86]/x11-apps/xinit/xinit-1.0.8-r4.ebuild
Gentoo

Contents of /x11-apps/xinit/xinit-1.0.8-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Sat Nov 14 14:18:45 2009 UTC (9 years, 11 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Version bump. Drop old.
(Portage version: 2.2_rc49/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/xinit-1.0.8-r4.ebuild,v 1.13 2009/08/28 14:29:46 betelgeuse Exp $
4
5 EAPI="2"
6
7 # Must be before x-modular eclass is inherited
8 # This is enabled due to modified Makefile.am from the patches
9 SNAPSHOT="yes"
10
11 inherit x-modular pam
12
13 DESCRIPTION="X Window System initializer"
14
15 LICENSE="${LICENSE} GPL-2"
16 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
17 IUSE="hal minimal pam"
18
19 RDEPEND="x11-apps/xauth
20 x11-libs/libX11
21 hal? ( sys-auth/consolekit sys-apps/dbus[X] )"
22 DEPEND="${RDEPEND}"
23 PDEPEND="!minimal? ( x11-wm/twm
24 x11-apps/xclock
25 x11-apps/xrdb
26 x11-apps/xsm
27 x11-terms/xterm )"
28
29 PATCHES=( "${FILESDIR}"/nolisten-tcp-and-black-background.patch
30 "${FILESDIR}"/gentoo-startx-customization-1.0.8.patch
31 "${FILESDIR}"/xinit-1.0.4-console-kit.patch )
32
33 pkg_setup() {
34 CONFIGURE_OPTIONS="$(use_with hal consolekit)"
35 }
36
37 src_prepare() {
38 x-modular_patch_source
39
40 sed -i -e "s:^XINITDIR.*:XINITDIR = \$(sysconfdir)/X11/xinit:g" "${S}/Makefile.am"
41
42 x-modular_reconf_source
43 }
44
45 src_install() {
46 x-modular_src_install
47 exeinto /etc/X11
48 doexe "${FILESDIR}"/chooser.sh "${FILESDIR}"/startDM.sh || die
49 exeinto /etc/X11/Sessions
50 doexe "${FILESDIR}"/Xsession || die
51 exeinto /etc/X11/xinit
52 doexe "${FILESDIR}"/xinitrc || die
53 newinitd "${FILESDIR}"/xdm.initd-2 xdm
54 newconfd "${FILESDIR}"/xdm.confd-1 xdm
55 newpamd "${FILESDIR}"/xserver.pamd xserver
56 }
57
58 pkg_postinst() {
59 x-modular_pkg_postinst
60 ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
61 ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
62 ewarn "any executable. When you run startx, it will run this as the login session."
63 ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
64 ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
65 ewarn "Here's an example of setting it for the whole system:"
66 ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
67 ewarn " env-update && source /etc/profile"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20