Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-updates > by-pkgid > ab32e7be023962d12dccf81c010eb137 > scriptlet

seamonkey-enigmime-1.1.16-1mdv2008.1.x86_64.rpm

POSTIN

/bin/sh
if [ -f /usr/lib64/seamonkey-1.1.16/chrome/installed-chrome.txt ]; then
# make sure we don't have old registration info around
   perl -pi -e 's/.*enigmime.*\n//' /usr/lib64/seamonkey-1.1.16/chrome/installed-chrome.txt
  cat << EOF >> /usr/lib64/seamonkey-1.1.16/chrome/installed-chrome.txt
content,install,url,jar:resource:/chrome/enigmime.jar!/content/enigmime/
EOF
fi
if [ -f /usr/lib64/seamonkey-1.1.16/seamonkey-rebuild-databases.pl ]; then
    /usr/lib64/seamonkey-1.1.16/seamonkey-rebuild-databases.pl
fi

POSTUN

/bin/sh
# only remove on uninstall
if [ "$1" = "0" ]; then 
 if [ -f /usr/lib64/seamonkey-1.1.16/chrome/installed-chrome.txt ]; then
   perl -pi -e 's/.*enigmime.*\n//' /usr/lib64/seamonkey-1.1.16/chrome/installed-chrome.txt
 fi
fi

if [ -f /usr/lib64/seamonkey-1.1.16/seamonkey-rebuild-databases.pl ]; then
    /usr/lib64/seamonkey-1.1.16/seamonkey-rebuild-databases.pl
fi