summaryrefslogtreecommitdiff
blob: eea0458d95e41c8bc21a6a98fc7d21c0e24c696f (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-2.0_beta4-r2.ebuild,v 1.3 2001/06/11 08:11:28 hallski Exp $

P=gdm-2.0beta4
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="gdm"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/"${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"

RDEPEND=">=sys-libs/pam-0.72
	>=gnome-base/gnome-libs-1.2.4"

src_unpack() {
  unpack ${A}
  cd ${S}/daemon
  cp gdm.h gdm.h.orig
  sed -e "s:/var/gdm:/var/lib/gdm:" \
      -e "s:/usr/bin/X11:/usr/X11R6/bin:g" \
	gdm.h.orig > gdm.h
}

src_compile() {                           
  try ./configure --host=${CHOST} --prefix=/opt/gnome \
	--sysconfdir=/etc/X11 --localstatedir=/var/lib

  try pmake
}

src_install() {                               
  try make prefix=${D}/opt/gnome sysconfdir=${D}/etc/X11 \
	localstatedir=${D}/var/lib install
  mv ${D}/etc/X11/pam.d ${D}/etc
  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
  rm Sessions/*
  exeinto /etc/X11/gdm/Sessions
  doexe ${FILESDIR}/wm/{afterstep,blackbox,enlightenment,fvwm,gnome,icewm,kde,pwm,windowmaker,xfce}
  cd ${S}
  dodoc AUTHORS COPYING ChangeLog NEWS README* RELEASENOTES TODO
  docinto sgml
  dodoc docs/C/gdm.sgml
  docinto html
  dodoc docs/C/gdm.html
  docinto html/gdm
  dodoc docs/C/gdm/*.html

}