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

NAME="gnome-system-tools"
VERSION="1.4.0"
REVISION="1"

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]='boot-desktop.patch'
#PKG_PATCH[1]='network-desktop.patch'

cflags "-O2 -march=i686"
cxxflags "-O2 -march=i686"
prepare
#applypatch 0 1
#applypatch 1 1
analyzesource
configure --enable-boot --enable-services
make
makeinstall install-strip

#let's use console helper...
rm -rf $PKG_STAGEROOT/etc/X11/sysconfig
mkdir -p $PKG_STAGEROOT/usr/sbin
mv $PKG_STAGEROOT/usr/bin/time-admin $PKG_STAGEROOT/usr/sbin/time-admin
mkdir -p $PKG_STAGEROOT/etc/pam.d
cat $PKG_COREREPOS/pam.time-admin > $PKG_STAGEROOT/etc/pam.d/time-admin
mkdir -p $PKG_STAGEROOT/etc/security/console.apps
cat $PKG_COREREPOS/security.time-admin > $PKG_STAGEROOT/etc/security/console.apps/time-admin

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
