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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20