Sophie

Sophie

distrib > Mageia > 6 > armv5tl > by-pkgid > bbeb0c3dc29041a56b9d85a4d1c2d9d3 > scriptlet

coolkey-1.1.0-3.mga6.armv5tl.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