Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 0da526fa34bd73e8f7bf0afc85483cf0 > scriptlet

samba-client-4.10.8-3.mga7.armv7hl.rpm

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