Sophie

Sophie

distrib > Mageia > cauldron > i586 > by-pkgid > e5c6cbe4a783767b93c424f41fa7770c > scriptlet

coolkey-1.1.0-7.mga9.i586.rpm

POSTIN

/bin/sh
isThere=`modutil -rawlist -dbdir /etc/pki/nssdb | grep "CoolKey PKCS #11 Module" || echo NO`
if [ "$isThere" == "NO" ]; then
   if [ -x /usr/bin/pk11install ]; then
      pk11install -p /etc/pki/nssdb 'name="CoolKey PKCS #11 Module" library=libcoolkeypk11.so' ||:
   fi
fi

POSTUN

/bin/sh
if [ $1 -eq 0 ]; then
   modutil -delete "CoolKey PKCS #11 Module" -dbdir /etc/pki/nssdb -force || :
fi