postrm is in checkbox-gtk 0.13.7.
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 | #! /bin/sh -e
name=`basename $0 .postrm`
base=`echo $name | cut -d "-" -f "1"`
file="/etc/$base.d/$name.ini"
case "$1" in
purge)
# mimic dpkg as closely as possible, so remove configuration
# files with dpkg backup extensions too:
for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do
rm -f $file$ext
done
# remove the configuration file itself
rm -f $file
;;
remove|disappear|upgrade|failed-upgrade|abort-install|abort-upgrade)
;;
*)
echo "$0: didn't understand being called with \`$1'" 1>&2
exit 0
;;
esac
|