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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Sep 15 00:24:06 2009 UTC (10 years, 1 month ago) by williamh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
renamed x-setup to xdm-setup to avoid collission with livecd-tools and fixed a typo.
(Portage version: 2.2_rc40/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-r5.ebuild,v 1.1 2009/09/14 16:19:02 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="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-3 xdm
54 newinitd "${FILESDIR}"/x-setup.initd-1 x-setup
55 newconfd "${FILESDIR}"/xdm.confd-1 xdm
56 newpamd "${FILESDIR}"/xserver.pamd xserver
57 }
58
59 pkg_postinst() {
60 x-modular_pkg_postinst
61 ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
62 ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
63 ewarn "any executable. When you run startx, it will run this as the login session."
64 ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
65 ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
66 ewarn "Here's an example of setting it for the whole system:"
67 ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
68 ewarn " env-update && source /etc/profile"
69 }

  ViewVC Help
Powered by ViewVC 1.1.20