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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (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.5: +1 -1 lines
FILE REMOVED
moved to gnome-base

1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Author Joerg Krause <joerg@epost.de>
4 # $Header: /home/cvsroot/gentoo-x86/gnome-apps/gdm/gdm-2.2.2.1.ebuild,v 1.5 2001/08/31 03:23:39 pm Exp $
5
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="gdm"
9 SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gdm/${P}.tar.gz"
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 sed -e "s:/var/gdm:/var/lib/gdm:" \
23 -e "s:/usr/bin/X11:/usr/X11R6/bin:g" \
24 gdm.h.orig > gdm.h
25 }
26
27 src_compile() {
28 try ./configure --host=${CHOST} --prefix=/opt/gnome \
29 --sysconfdir=/etc/X11 --localstatedir=/var/lib
30
31 try make
32 }
33
34 src_install() {
35 try make prefix=${D}/opt/gnome sysconfdir=${D}/etc/X11 \
36 localstatedir=${D}/var/lib install
37 #mv ${D}/etc/X11/pam.d ${D}/etc
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}/pam.d
51 insinto /etc/pam.d
52 doins gdm
53
54 cd ${D}/etc/X11/gdm
55 for i in Init/Default PostSession/Default PreSession/Default gdm.conf
56 do
57 cp $i $i.orig
58 sed -e "s:/usr/bin/X11:/usr/X11R6/bin:g" $i.orig > $i
59 rm $i.orig
60 done
61
62 # Background Picture
63 dodir /opt/gnome/share
64 dodir /opt/gnome/share/pixmaps
65 insinto /opt/gnome/share/pixmaps
66 doins ${FILESDIR}/gdm_background.jpg
67
68 cd ${D}/etc/X11/gdm
69 cp gdm.conf gdm.conf.orig
70 sed -e "s:BackgroundType=2:BackgroundType=1:g" \
71 -e "s:BackgroundImage=:BackgroundImage=/opt/gnome/share/pixmaps/gdm_background.jpg:g" \
72 -e "s:BackgroundScaleToFit=true:BackgroundScaleToFit=false:g" \
73 -e "s:GnomeDefaultSession:#GnomeDefaultSession:g" \
74 -e "s:0=/usr/X11R6/bin/X:0=/usr/X11R6/bin/X -depth 16 -dpi 100 dpms vt12:g" \
75 gdm.conf.orig > gdm.conf
76 rm gdm.conf.orig
77
78 rm Sessions/*
79 exeinto /etc/X11/gdm/Sessions
80 doexe ${FILESDIR}/wm/{afterstep,blackbox,enlightenment,fvwm,gnome,icewm,kde,pwm,windowmaker,xfce}
81 cd ${S}
82 dodoc AUTHORS COPYING ChangeLog NEWS README* RELEASENOTES TODO
83 }
84
85 pkg_postinst()
86 {
87 rc-update add xdm
88 }
89
90 pkg_prerm()
91 {
92 rc-update del xdm
93 }
94

  ViewVC Help
Powered by ViewVC 1.1.20