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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20