PREIN
/bin/sh
# Fix /usr/lib/cups directory, so that updates can be done
if [ -d /usr/lib64/cups ] && ! [ -h /usr/lib64/cups ]; then
if [ -h /usr/lib/cups ]; then
rm -f /usr/lib/cups
mv /usr/lib64/cups /usr/lib/cups
else
mv /usr/lib64/cups /usr/lib64/cups.rpmsave
#echo 'Moved /usr/lib64/cups to /usr/lib64/cups.rpmsave' 1>&2
fi
fi
/usr/share/rpm-helper/add-group cups $1 lpadmin
PREUN
/bin/sh
# Let CUPS daemon not be automatically started at boot time any more
/usr/share/rpm-helper/del-service cups $1 cups
POSTIN
/bin/sh
# Make sure group ownerships are correct
chgrp -R sys /etc/cups /var/*/cups
# We can't enforce this. Bug #35993
for d in /opt/share/ppd /opt/lib/printdriver /usr/local/share/ppd /usr/local/lib/printdriver
do
[ ! -e $d ] && mkdir -p $d || :
done
# End of 28383
# Let CUPS daemon be automatically started at boot time
/usr/share/rpm-helper/add-service cups $1 cups
POSTUN
/bin/sh
/usr/share/rpm-helper/del-group cups $1 lpadmin