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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 7 16:59:41 2009 UTC (10 years ago) by williamh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
only check for .noxdm in /etc.  This is another update for #287913.
(Portage version: 2.2_rc44/cvs/Linux i686)

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-r9.ebuild,v 1.2 2009/10/06 20:42:58 williamh 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="consolekit minimal pam"
18
19 RDEPEND="
20 x11-apps/xauth
21 x11-libs/libX11
22 consolekit? (
23 sys-auth/consolekit
24 sys-apps/dbus[X]
25 )
26 "
27 DEPEND="${RDEPEND}"
28 PDEPEND="!minimal? (
29 x11-apps/xclock
30 x11-apps/xrdb
31 x11-apps/xsm
32 x11-terms/xterm
33 x11-wm/twm
34 )
35 "
36
37 PATCHES=( "${FILESDIR}"/nolisten-tcp-and-black-background.patch
38 "${FILESDIR}"/gentoo-startx-customization-1.0.8.patch
39 "${FILESDIR}"/xinit-1.0.4-console-kit.patch )
40
41 pkg_setup() {
42 CONFIGURE_OPTIONS="$(use_with consolekit)"
43 }
44
45 src_prepare() {
46 x-modular_patch_source
47
48 sed -i -e "s:^XINITDIR.*:XINITDIR = \$(sysconfdir)/X11/xinit:g" "${S}/Makefile.am"
49
50 x-modular_reconf_source
51 }
52
53 src_install() {
54 x-modular_src_install
55 exeinto /etc/X11
56 doexe "${FILESDIR}"/chooser.sh "${FILESDIR}"/startDM.sh || die
57 exeinto /etc/X11/Sessions
58 doexe "${FILESDIR}"/Xsession || die
59 exeinto /etc/X11/xinit
60 doexe "${FILESDIR}"/xinitrc || die
61 newinitd "${FILESDIR}"/xdm.initd-3 xdm
62 newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup
63 newconfd "${FILESDIR}"/xdm.confd-1 xdm
64 newpamd "${FILESDIR}"/xserver.pamd xserver
65 }
66
67 pkg_postinst() {
68 x-modular_pkg_postinst
69 ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
70 ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
71 ewarn "any executable. When you run startx, it will run this as the login session."
72 ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
73 ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
74 ewarn "Here's an example of setting it for the whole system:"
75 ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
76 ewarn " env-update && source /etc/profile"
77 ewarn
78 ewarn "If you use the nox boot option to prevent x from starting on boot,"
79 ewarn "you should now use gentoo=nox."
80 }

  ViewVC Help
Powered by ViewVC 1.1.20