dbus: remove /var/run/dbus if pkg is purged. Bumprev.
This commit is contained in:
parent
f22c765450
commit
c48ad0c535
3 changed files with 12 additions and 4 deletions
|
@ -4,8 +4,6 @@
|
||||||
dbus_launch=usr/libexec/dbus-daemon-launch-helper
|
dbus_launch=usr/libexec/dbus-daemon-launch-helper
|
||||||
|
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
pre)
|
|
||||||
;;
|
|
||||||
post)
|
post)
|
||||||
chown root:dbus ${dbus_launch}
|
chown root:dbus ${dbus_launch}
|
||||||
chmod 4750 ${dbus_launch}
|
chmod 4750 ${dbus_launch}
|
||||||
|
|
10
srcpkgs/dbus/REMOVE
Normal file
10
srcpkgs/dbus/REMOVE
Normal 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
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'dbus'
|
# Template file for 'dbus'
|
||||||
pkgname=dbus
|
pkgname=dbus
|
||||||
version=1.4.0
|
version=1.4.0
|
||||||
revision=1
|
revision=2
|
||||||
distfiles="http://dbus.freedesktop.org/releases/dbus/$pkgname-$version.tar.gz"
|
distfiles="http://dbus.freedesktop.org/releases/dbus/$pkgname-$version.tar.gz"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
configure_args="--disable-selinux --enable-userdb-cache --with-xml=expat
|
configure_args="--disable-selinux --enable-userdb-cache --with-xml=expat
|
||||||
|
@ -38,7 +38,7 @@ Add_dependency build coreutils
|
||||||
|
|
||||||
pre_configure()
|
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"
|
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:$PATH"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue