blob: d8b09622147dc4b902a20245c896886687dc13cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Mikael Hallendal <hallski@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-2.2.3.1.ebuild,v 1.6 2001/08/02 20:06:35 danarmak Exp $
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="gdm"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gdm/${A}"
HOMEPAGE="http://www.gnome.org/"
DEPEND=">=sys-libs/pam-0.72
>=sys-apps/tcp-wrappers-7.6
>=gnome-base/gnome-libs-1.2.4
>=gnome-base/libglade-0.16-r1
>=media-libs/gdk-pixbuf-0.11"
src_unpack() {
unpack ${A}
cd ${S}/daemon
cp gdm.h gdm.h.orig
sed -e "s:/usr/bin/X11:/usr/X11R6/bin:g" \
gdm.h.orig > gdm.h
rm gdm.h.orig
}
src_compile() {
try ./configure --host=${CHOST} --prefix=/opt/gnome \
--sysconfdir=/etc/X11 --localstatedir=/var/lib --with-pam-prefix=/usr
try pmake
}
src_install() {
try make DESTDIR=${D} sysconfdir=${D}/etc/X11 localstatedir=${D}/var/lib install
rm -rf ${D}/etc/X11/pam.d
# log
dodir /var
dodir /var/lib
dodir /var/lib/gdm
chown gdm:gdm ${D}/var/lib/gdm
chmod 750 ${D}/var/lib/gdm
# pam startup
dodir /etc/pam.d
cd ${FILESDIR}/2.2.3/pam.d
insinto /etc/pam.d
doins gdm
# gnomerc
dodir /etc/X11/gdm
cd ${FILESDIR}/2.2.3
exeinto /etc/X11/gdm
doexe gnomerc
cd ${D}/etc/X11/gdm
for i in Init/Default PostSession/Default PreSession/Default gdm.conf
do
cp $i $i.orig
sed -e "s:/usr/bin/X11:/usr/X11R6/bin:g" $i.orig > $i
rm $i.orig
done
cd ${D}/etc/X11/gdm
cp gdm.conf gdm.conf.orig
sed -e "s:0=/usr/X11R6/bin/X:0=/usr/X11R6/bin/X -dpi 100 dpms vt7:g" \
-e "s:GtkRC=/opt/gnome/share/themes/Default/gtk/gtkrc:GtkRC=/usr/X11R6/share/themes/gtk/gtkrc:g" \
-e "s:BackgroundColor=#007777:BackgroundColor=#2a3f5b:g" \
gdm.conf.orig > gdm.conf
rm gdm.conf.orig
cd ${S}
dodoc AUTHORS COPYING ChangeLog NEWS README* RELEASENOTES TODO
}
pkg_postinst()
{
rc-update add xdm
}
pkg_prerm()
{
rc-update del xdm
}
|