postrm is in mixmaster 3.0.0-4build1.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | #!/bin/sh -e
# postrm for Mixmaster
REMAILCONFIGFILE=/etc/mixmaster/remailer.conf
case "$1" in
purge)
rm -rf /var/lib/mixmaster/Mix
rm -rf /var/log/mixmaster/*
rm -rf /var/lib/mixmaster/stats
rm -rf /var/lib/mixmaster/used-stats
rm -f /var/lib/mixmaster/.Mix
rmdir /var/lib/mixmaster 2>/dev/null || true
rmdir /etc/mixmaster/remailer 2>/dev/null || true
rmdir /etc/mixmaster 2>/dev/null || true
dpkg-statoverride --remove /var/lib/mixmaster >/dev/null 2>&1 || true
dpkg-statoverride --remove /var/log/mixmaster >/dev/null 2>&1 || true
dpkg-statoverride --remove /var/run/mixmaster >/dev/null 2>&1 || true
dpkg-statoverride --remove $REMAILCONFIGFILE >/dev/null 2>&1 || true
# we mimic dpkg as closely as possible, so we remove configuration
# files with dpkg backup extensions too:
for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist .ucf-new .ucf-old .ucf-dist; do
rm -f /etc/mixmaster/update.conf$ext
rm -f /etc/mixmaster/network.conf$ext
done
rm -f /etc/mixmaster/update.conf
rm -f /etc/mixmaster/network.conf
if which ucf >/dev/null; then
ucf --purge /etc/mixmaster/update.conf
ucf --purge /etc/mixmaster/network.conf
fi
;;
remove|upgrade|deconfigure)
;;
failed-upgrade)
;;
abort-upgrade)
;;
*)
echo "unknown argument --> $1" >&2
exit 0
;;
esac
# 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
# Automatically added by dh_installmenu
if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
update-rc.d mixmaster remove >/dev/null
fi
# End automatically added section
# vim:set ts=2:
# vim:set shiftwidth=2:
|