#!/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.1"
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

cflags "-Os -march=i686"
cxxflags "-Os -march=i686"
prepare
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
