postrm is in leafnode 1.11.10-3.
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
set -e
case "$1" in
purge)
if [ -e /var/spool/news ]; then
# we need the debconf library
. /usr/share/debconf/confmodule
# Prompt here rather than in configure since there may
# be a considerable gap between configuration and
# removal.
db_input high leafnode/purge || true
db_go
db_get leafnode/purge || true
answer=$RET
if [ "$answer" = "true" ]; then
rm -rf /var/spool/news
echo ""
fi
fi
rm -rf /var/lib/leafnode
rm -rf /etc/news/leafnode
if grep -q "#-- leafnode begin" /etc/hosts.allow 2>/dev/null; then
cp /etc/hosts.allow /etc/hosts.allow.new
sed -e '/#-- leafnode begin/,/#-- leafnode end/d' \
</etc/hosts.allow.new >/etc/hosts.allow
rm -f /etc/hosts.allow.new
fi
if grep -q "#-- leafnode begin" /etc/hosts.deny 2>/dev/null; then
cp /etc/hosts.deny /etc/hosts.deny.new
sed -e '/#-- leafnode begin/,/#-- leafnode end/d' \
</etc/hosts.deny.new >/etc/hosts.deny
rm -f /etc/hosts.deny.new
fi
;;
remove)
update-inetd --remove ".*leafnode.*"
update-inetd --comment-chars "#disabled#" --enable nntp
;;
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
|