Add lintian-overrides file; silence lintian message "no-upstream-changelog"
[aiccu.git] / debian / aiccu.postrm
blob9f3b4292cbedf11de3e64a5324ed48e75e1b0ce2
1 #!/bin/sh
2 # postrm script for aiccu
4 set -e
6 case "$1" in
7 remove)
8 # This package is being removed, but its configuration has not yet
9 # been purged.
13 purge)
14 # This package has previously been removed and is now having
15 # its configuration purged from the system.
18 # we mimic dpkg as closely as possible, so we remove configuration
19 # files with dpkg backup extensions too:
20 ### Some of the following is from Tore Anderson:
21 for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist; do
22 rm -f /etc/aiccu.conf$ext
23 done
25 # remove the configuration file itself
26 rm -f /etc/aiccu.conf
28 # and finally clear it out from the ucf database
29 if which ucf >/dev/null; then
30 ucf --purge /etc/aiccu.conf
31 fi
32 if which ucfr >/dev/null; then
33 ucfr --purge aiccu /etc/aiccu.conf
34 fi
38 upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
42 echo "postrm called with unknown argument \`$1'" >&2
43 exit 1
45 esac
47 # dh_installdeb will replace this with shell code automatically
48 # generated by other debhelper scripts.
50 #DEBHELPER#
52 exit 0