Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > 4e1638e011e516c3846f2ae03a1a5665 > scriptlet

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