dbus: remove /var/run/dbus if pkg is purged. Bumprev.

This commit is contained in:
Juan RP 2010-11-04 14:23:53 +01:00
parent f22c765450
commit c48ad0c535
3 changed files with 12 additions and 4 deletions

View File

@ -4,8 +4,6 @@
dbus_launch=usr/libexec/dbus-daemon-launch-helper
case "${ACTION}" in
pre)
;;
post)
chown root:dbus ${dbus_launch}
chmod 4750 ${dbus_launch}

10
srcpkgs/dbus/REMOVE Normal file
View File

@ -0,0 +1,10 @@
#
# This script removes pre-created dirs required for dbus-daemon.
#
case "${ACTION}" in
post)
if [ -d var/run/dbus ]; then
rm -rf var/run/dbus
fi
;;
esac

View File

@ -1,7 +1,7 @@
# Template file for 'dbus'
pkgname=dbus
version=1.4.0
revision=1
revision=2
distfiles="http://dbus.freedesktop.org/releases/dbus/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--disable-selinux --enable-userdb-cache --with-xml=expat
@ -38,7 +38,7 @@ Add_dependency build coreutils
pre_configure()
{
# XXX: use coreutils, somethings fails with busybox.
# XXX: use coreutils, not ready for busybox yet.
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:$PATH"
}