#!/bin/sh
#
# Copyright 2004 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Available under the terms of the GNU GPL.
#

NAME="gnome-session"
VERSION="2.12.0"
REVISION="2"

PKG_SOURCEURL='http://ftp.gnome.org/pub/GNOME/sources/$NAME/$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.bz2'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

PKG_PATCH[0]='gnome-session-volume-manager.patch'
PKG_PATCH[1]='pleasegoaway.patch'
PKG_PATCH[2]='bug32721-smoothlogout.patch'

cflags
cxxflags
prepare
applypatch 0 1
applypatch 1 1
applypatch 2 0
analyzesource
configure --with-window-manager=metacity \
          --with-reboot-command=/usr/bin/reboot \
          --with-halt-command=/usr/bin/halt \
          --with-rsh-command=ssh

make
makeinstall install-strip
rm $PKG_STAGEROOT/usr/share/pixmaps/splash/gnome-splash.png
tidydocumentation
analyzebinaries
includescript
finalizepackage
packagize
cleanup
