summaryrefslogtreecommitdiff
path: root/sysutils/dbus
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2011-10-29 13:26:59 +0000
committermarino <marino@pkgsrc.org>2011-10-29 13:26:59 +0000
commit499509fc4d98b970e0d2ce939fc1b833e9bf9b80 (patch)
treef3aae5c070066993412a0270a3a670be2cb9b1c9 /sysutils/dbus
parent727bc69d4a558d46c402fee57289903fee6548b5 (diff)
downloadpkgsrc-499509fc4d98b970e0d2ce939fc1b833e9bf9b80.tar.gz
sysutils/dbus: Fix pkg_delete errors
Fixes the following errors: > pkg_delete dbus-1.2.4.6nb4 pkg_delete: Directory '/usr/pkg/share/dbus-1/system-services' disappeared, skipping pkg_delete: Directory '/usr/pkg/share/dbus-1/service' disappeared, skipping
Diffstat (limited to 'sysutils/dbus')
-rw-r--r--sysutils/dbus/DEINSTALL20
-rw-r--r--sysutils/dbus/PLIST5
2 files changed, 21 insertions, 4 deletions
diff --git a/sysutils/dbus/DEINSTALL b/sysutils/dbus/DEINSTALL
new file mode 100644
index 00000000000..0fc5772e490
--- /dev/null
+++ b/sysutils/dbus/DEINSTALL
@@ -0,0 +1,20 @@
+# $NetBSD: DEINSTALL,v 1.1 2011/10/29 13:26:59 marino Exp $
+
+# DEINSTALL is used rather than @pkgdir because the automatic directory
+# deletion mechanism makes dbus services remove these directories first,
+# and thus "Directory disappeared" messages will likely appear under @pkgdir
+
+case ${STAGE} in
+POST-DEINSTALL)
+ CYCLE="@PREFIX@/share/dbus-1/system-services \
+ @PREFIX@/share/dbus-1/services \
+ @PREFIX@/libexec/dbus-1"
+ for dbuspath in ${CYCLE}; do
+ if [ -d ${dbuspath} ]; then
+ if [ -n `${LS} -A ${$dbuspath}` ]; then
+ ${RMDIR} ${dbuspath}
+ fi
+ fi
+ done
+ ;;
+esac
diff --git a/sysutils/dbus/PLIST b/sysutils/dbus/PLIST
index 48fb9eeb006..689a3545453 100644
--- a/sysutils/dbus/PLIST
+++ b/sysutils/dbus/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2009/06/14 21:28:47 joerg Exp $
+@comment $NetBSD: PLIST,v 1.14 2011/10/29 13:26:59 marino Exp $
bin/dbus-cleanup-sockets
bin/dbus-daemon
bin/dbus-launch
@@ -36,6 +36,3 @@ share/examples/dbus/system.conf
share/examples/rc.d/dbus
${PLIST.linux}share/examples/rc.d/messagebus.redhat
${PLIST.linux}share/examples/rc.d/rc.messagebus.slackware
-@pkgdir share/dbus-1/system-services
-@pkgdir share/dbus-1/services
-@pkgdir libexec/dbus-1