From 808f68f830d56713ad5d09c3817b97708892afdf Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 12 Aug 2011 09:27:10 +0200 Subject: [PATCH] dbus: create/remove etc/dbus-1/session.d, bumprev. --- srcpkgs/dbus/INSTALL | 1 + srcpkgs/dbus/REMOVE | 5 ++++- srcpkgs/dbus/template | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/dbus/INSTALL b/srcpkgs/dbus/INSTALL index 7ac848b3955..c1273a41495 100644 --- a/srcpkgs/dbus/INSTALL +++ b/srcpkgs/dbus/INSTALL @@ -5,6 +5,7 @@ dbus_launch=usr/libexec/dbus-daemon-launch-helper case "${ACTION}" in post) + [ ! -d etc/dbus-1/session.d ] && install -d etc/dbus-1/session.d chown root:dbus ${dbus_launch} chmod 4750 ${dbus_launch} ;; diff --git a/srcpkgs/dbus/REMOVE b/srcpkgs/dbus/REMOVE index 7fa2b9ab520..d483da401df 100644 --- a/srcpkgs/dbus/REMOVE +++ b/srcpkgs/dbus/REMOVE @@ -2,9 +2,12 @@ # This script removes pre-created dirs required for dbus-daemon. # case "${ACTION}" in -post) +purge) if [ -d var/run/dbus ]; then rm -rf var/run/dbus fi + if [ -d etc/dbus-1/session.d ]; then + rm -rf etc/dbus-1/session.d + fi ;; esac diff --git a/srcpkgs/dbus/template b/srcpkgs/dbus/template index 270cb0d3391..332c6c68685 100644 --- a/srcpkgs/dbus/template +++ b/srcpkgs/dbus/template @@ -1,6 +1,7 @@ # Template file for 'dbus' pkgname=dbus version=1.4.14 +revision=1 homepage="http://dbus.freedesktop.org/" distfiles="${homepage}/releases/dbus/$pkgname-$version.tar.gz" build_style=gnu_configure