mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
fa11efae69
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.
18 lines
339 B
Bash
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
|