1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/sysutils/hal/files/pkg-deinstall.in
Joe Marcus Clarke fa11efae69 One more fix for hal and PolicyKit. Apparently haldaemon requires
org.freedesktop.policykit.read privilege to read the PK config.  It's
great they document this so well.  This, plus the last PK fix should
fix the various mounting problems some people have been seeing.
2009-03-31 02:19:58 +00:00

18 lines
339 B
Bash

#!/bin/sh
[ "$2" != DEINSTALL ] && exit 0
USER=haldaemon
%%LOCALBASE%%/bin/polkit-auth --user ${USER} --revoke \
org.freedesktop.policykit.read
for pair in %%RC_FILES%%; do
file=`echo $pair | cut -f 1 -d :`
destdir=`echo $pair | cut -f 2 -d :`
if cmp -s %%DATADIR%%/dist/$file $destdir/$file; then
rm -f $destdir/$file
fi
done