Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > media > contrib-release > by-pkgid > f0a84bb09a971be240c623b439d162c5 > scriptlet

seamonkey-enigmime-1.0.5-1mdv2007.0.i586.rpm

POSTIN

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

POSTUN

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

if [ -f /usr/lib/seamonkey-1.0.5/seamonkey-rebuild-databases.pl ]; then
    /usr/lib/seamonkey-1.0.5/seamonkey-rebuild-databases.pl
fi