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

Contents of /x11-apps/xinit/xinit-1.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Nov 17 08:45:48 2009 UTC (9 years, 11 months ago) by remi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
x11-apps/xinit: update Gentoo patch to fix bug #293342
(Portage version: 2.2_rc50/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.2.0.ebuild,v 1.2 2009/11/16 16:02:37 scarabeus Exp $
4
5 EAPI="2"
6
7 # Must be before x-modular eclass is inherited
8 SNAPSHOT="yes"
9
10 inherit x-modular pam
11
12 DESCRIPTION="X Window System initializer"
13
14 LICENSE="${LICENSE} GPL-2"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
16 IUSE="+minimal pam"
17
18 RDEPEND="
19 x11-apps/xauth
20 x11-libs/libX11
21 "
22 DEPEND="${RDEPEND}"
23 PDEPEND="x11-apps/xrdb
24 !minimal? (
25 x11-apps/xclock
26 x11-apps/xsm
27 x11-terms/xterm
28 x11-wm/twm
29 )
30 "
31
32 PATCHES=(
33 "${FILESDIR}/0001-Gentoo-specific-customizations.patch"
34 )
35
36 pkg_setup() {
37 CONFIGURE_OPTIONS="--with-xinitdir=/etc/X11/xinit"
38 }
39
40 src_install() {
41 x-modular_src_install
42 exeinto /etc/X11
43 doexe "${FILESDIR}"/chooser.sh "${FILESDIR}"/startDM.sh || die
44 exeinto /etc/X11/Sessions
45 doexe "${FILESDIR}"/Xsession || die
46 exeinto /etc/X11/xinit
47 doexe "${FILESDIR}"/xserverrc || die
48 newinitd "${FILESDIR}"/xdm.initd-4 xdm || die
49 newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup || die
50 newconfd "${FILESDIR}"/xdm.confd-2 xdm || die
51 newpamd "${FILESDIR}"/xserver.pamd xserver
52 dodir /etc/X11/xinit/xinitrc.d
53 exeinto /etc/X11/xinit/xinitrc.d/
54 doexe "${FILESDIR}/00-xhost"
55 }
56
57 pkg_postinst() {
58 x-modular_pkg_postinst
59 ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
60 ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
61 ewarn "any executable. When you run startx, it will run this as the login session."
62 ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
63 ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
64 ewarn "Here's an example of setting it for the whole system:"
65 ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
66 ewarn " env-update && source /etc/profile"
67 }

  ViewVC Help
Powered by ViewVC 1.1.20