Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 40711
Collapse All | Expand All

(-)gdm-2.4.4.5.ebuild (-8 / +48 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2003 Gentoo Technologies, Inc.
1
# Copyright 1999-2003 Gentoo Technologies, Inc.
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /home/cvsroot/gentoo-x86/gnome-base/gdm/gdm-2.4.4.5.ebuild,v 1.2 2003/12/06 21:59:49 foser Exp $
3
# $Header: /home/cvsroot/gentoo-x86/gnome-base/gdm/gdm-2.4.4.7.ebuild,v 1.0 2004/02/10 21:12:23 darkcoder Exp $
4
4
5
inherit gnome2
5
inherit eutils gnome2
6
6
7
DESCRIPTION="GNOME2 Display Manager"
7
DESCRIPTION="GNOME2 Display Manager"
8
HOMEPAGE="http://www.jirka.org/gdm.html"
8
HOMEPAGE="http://www.jirka.org/gdm.html"
Lines 10-33 Link Here
10
SLOT="0"
10
SLOT="0"
11
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64"
11
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64"
12
LICENSE="GPL-2"
12
LICENSE="GPL-2"
13
IUSE="tcpd xinerama"
13
IUSE="tcpd X xinerama"
14
14
SRC_URI="${SRC_URI}
15
	mirror://gentoo/gentoo-gdm-theme.tar.bz2"
15
MY_V="`echo ${PV} |cut -b -5`"
16
MY_V="`echo ${PV} |cut -b -5`"
16
17
17
RDEPEND=">=sys-libs/pam-0.72
18
RDEPEND=">=sys-libs/pam-0.72
19
	tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
18
	>=x11-libs/gtk+-2
20
	>=x11-libs/gtk+-2
19
	>=gnome-base/libglade-2
21
	>=gnome-base/libglade-2
20
	>=gnome-base/librsvg-2
22
	>=gnome-base/librsvg-2
21
	>=media-libs/libart_lgpl-2.3.11
22
	>=dev-libs/libxml2-2.4.12
23
	>=dev-libs/libxml2-2.4.12
23
	>=gnome-base/libgnome-2
24
	>=gnome-base/libgnome-2
24
	>=gnome-base/libgnomeui-2
25
	>=gnome-base/libgnomeui-2
25
	>=gnome-base/libgnomecanvas-2"
26
	>=gnome-base/libgnomecanvas-2
27
	virtual/x11"
26
28
27
DEPEND="${RDEPEND}
29
DEPEND="${RDEPEND}
28
	dev-util/pkgconfig
30
	dev-util/pkgconfig
29
	>=app-text/scrollkeeper-0.3.11
31
	>=app-text/scrollkeeper-0.3.11
30
	tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
32
	X? ( virtual/x11
33
		xinerama? ( virtual/x11 ) )"
31
34
32
G2CONF="${G2CONF} \
35
G2CONF="${G2CONF} \
33
	--sysconfdir=/etc/X11 \
36
	--sysconfdir=/etc/X11 \
Lines 36-48 Link Here
36
	`use_with tcpd tcp-wrappers` \
39
	`use_with tcpd tcp-wrappers` \
37
	`use_with xinerama`"
40
	`use_with xinerama`"
38
41
42
src_unpack() {
43
	unpack ${A}
44
45
	cd ${S}/daemon
46
	cp gdm.h gdm.h.orig
47
	sed -e "s:/usr/bin/X11:/usr/X11R6/bin:g" \
48
		gdm.h.orig > gdm.h
49
	rm -f gdm.h.orig
50
51
	# Make Gentoo theme default
52
	cd ${S}/config
53
	cp gdm.conf.in gdm.conf.in.orig
54
	sed -e "s:/usr/bin/X11:/usr/X11R6/bin:g" \
55
		-e "s:#GraphicalTheme=circles:GraphicalTheme=gentoo-emergence:" \
56
		-e "s:command=/usr/X11R6/bin/X:command=/usr/X11R6/bin/X -nolisten tcp:" \
57
		gdm.conf.in.orig > gdm.conf.in
58
59
	rm -f gdm.conf.in.orig
60
}
61
39
src_install() {
62
src_install() {
40
63
41
	gnome2_src_install PAM_PREFIX=${D}/etc sysconfdir=${D}/etc/X11
64
	gnome2_src_install PAM_PREFIX=${D}/etc sysconfdir=${D}/etc/X11
42
65
43
	# gdm-binary should be gdm to work with our init (#5598)
66
	# gdm-binary should be gdm to work with our init (#5598)
44
	rm -f ${D}/usr/bin/gdm
67
	rm -f ${D}/usr/bin/gdm
45
	cp ${D}/usr/bin/gdm-binary ${D}/usr/bin/gdm
68
	mv ${D}/usr/bin/gdm-binary ${D}/usr/bin/gdm
46
69
47
	# log, etc.
70
	# log, etc.
48
	dodir /var/lib/gdm
71
	dodir /var/lib/gdm
Lines 69-77 Link Here
69
	insinto /etc/security/console.apps
92
	insinto /etc/security/console.apps
70
	doins ${FILESDIR}/${MY_V}/security/console.apps/gdmconfig
93
	doins ${FILESDIR}/${MY_V}/security/console.apps/gdmconfig
71
94
95
	# gnomerc
96
	dodir /etc/X11/gdm
97
	exeinto /etc/X11/gdm
98
	doexe ${FILESDIR}/${MY_V}/gnomerc
99
100
	cd ${D}/etc/X11/gdm
101
	for i in Init/Default PostSession/Default PreSession/Default gdm.conf
102
	do
103
		cp ${i} ${i}.orig
104
		sed -e s:/usr/bin/X11:/usr/X11R6/bin:g \
105
			${i}.orig > ${i}
106
		rm ${i}.orig
107
	done
108
72
	# use graphical greeter local
109
	# use graphical greeter local
73
	dosed "s:#Greeter=/usr/bin/gdmlogin:Greeter=/usr/bin/gdmgreeter:" /etc/X11/gdm/gdm.conf
110
	dosed "s:#Greeter=/usr/bin/gdmlogin:Greeter=/usr/bin/gdmgreeter:" /etc/X11/gdm/gdm.conf
74
111
112
	# Move Gentoo theme in
113
	mv ${WORKDIR}/gentoo-emergence  ${D}/usr/share/gdm/themes
114
75
	dodoc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO
115
	dodoc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO
76
116
77
}
117
}

Return to bug 40711