blob: 81de0538eb1f125bde4d8f694e8fcd612cf48f4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# $NetBSD: DEINSTALL,v 1.2 2011/10/29 15:17:17 dholland 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
|