/[gentoo-x86]/gnome-apps/gdm/gdm-2.2.3.2.ebuild
Gentoo

Contents of /gnome-apps/gdm/gdm-2.2.3.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Sep 4 20:59:47 2001 UTC (18 years, 1 month ago) by hallski
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
moved to gnome-base

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

  ViewVC Help
Powered by ViewVC 1.1.20