POSTIN
/bin/sh
/usr/sbin/update-alternatives --install /usr/libexec/samba/cups_backend_smb \
cups_backend_smb \
/usr/bin/smbspool 10
POSTUN
/bin/sh
if [ $1 -eq 0 ] ; then
/usr/sbin/update-alternatives --remove cups_backend_smb /usr/libexec/samba/smbspool
fi
# Until this is addressed in the cups package (mdv#21164), symlink the above to the cups
# backend directory on installation of cups or installation of -client when cups is present
Triggers
cups
/bin/sh
ln -sf /usr/libexec/samba/cups_backend_smb /usr/lib/cups/backend/smb || :
# Remove the symlink if either samba-client or cups is removed
cups
/bin/sh
[[ $1 == 0 || $2 == 0 ]] && rm -f /usr/lib/cups/backend/smb || :
# Clean up alternatives from 3.x dropped with 4.x:
samba-client <
4.10.9
/bin/sh
/usr/sbin/update-alternatives --remove smbclient /usr/bin/smbclient3 || :
# There seems to be no other way to do this:
rm -f /var/lib/alternatives/smbclient
### KRB5-PRINTING