#!/bin/sh
#
# Copyright 2008-2009 Dropline GNOME
# Available under the terms of the GNU GPL.
#

NAME="polkit"
VERSION="0.95"
REVISION="2"

PKG_SOURCEURL='http://hal.freedesktop.org/releases/$NAME-$VERSION.tar.gz'

PKG_PATCH[0]='pkit-slack.patch'

PKG_PATCH[1]='org.freedesktop.hal.device-access.policy'
PKG_PATCH[2]='org.freedesktop.hal.dockstation.policy'
PKG_PATCH[3]='org.freedesktop.hal.killswitch.policy'
PKG_PATCH[4]='org.freedesktop.hal.policy'
PKG_PATCH[5]='org.freedesktop.hal.power-management.policy'
PKG_PATCH[6]='org.freedesktop.hal.storage.policy'
PKG_PATCH[7]='org.freedesktop.hal.wol.policy'

PKG_PATCH[8]='PolicyKit.conf'

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

PKG_LOCALSTATEDIR=/var

cflags
cxxflags
prepare
applypatch 0 1

cd $PKG_SRCROOT
autoreconf
analyzesource
spewdo "libtoolize --force"
spewdo "autoreconf -vif"

configure --with-pam-module-dir=/usr/lib$LIBSUFFIX/security \

make
makeinstall install-strip


tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
