postrm is in dictionaries-common 1.12.1ubuntu2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #! /bin/sh
# postrm script for dictionaries-common
set -e
# Once wamerican is the only standard dict package and it does not
# depend on dictionaries-common it will provide an own
# /usr/share/dict/words pointing to american wordlist. This was
# diverted if dictionaries-common is used. We need to remove that
# diversion if dictionaries-common is removed
if [ "$1" = "remove" ]; then
dpkg-divert --package dictionaries-common \
--rename --remove /usr/share/dict/words
fi
# Make sure /etc/openoffice myspell stuff is removed on purge
if [ "$1" = "purge" ]; then
rm -f /etc/openoffice/dictionary.lst /etc/openoffice/dictionary.lst.old
fi
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section
exit 0
|