301
|
1 #!/bin/sh
|
314
|
2 # $Id: postrm 448 2003-02-19 19:16:04Z godisch $
|
301
|
3
|
|
4 set -e
|
|
5 . /usr/share/debconf/confmodule
|
|
6 db_version 2.0
|
|
7
|
|
8 server_config=/etc/news/noffle.conf
|
|
9 debian_config=/etc/default/noffle
|
|
10
|
|
11 case "$1" in
|
311
|
12 remove)
|
|
13 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc
|
314
|
14 rm -rf /var/lock/noffle
|
311
|
15 ;;
|
301
|
16 purge)
|
311
|
17 update-inetd --remove "/usr/bin/noffle -r"
|
|
18 update-rc.d noffle remove
|
|
19 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc \
|
301
|
20 $server_config $server_config.old \
|
|
21 $debian_config $debian_config.old \
|
311
|
22 /etc/noffle.conf /etc/noffle.conf.old
|
|
23 rm -rf /etc/noffle /var/spool/noffle /var/lock/noffle
|
301
|
24 db_purge
|
|
25 ;;
|
313
|
26 upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
301
|
27 ;;
|
|
28 *)
|
|
29 echo "postrm called with unknown argument '$1'" >&2
|
|
30 exit 1
|
|
31 ;;
|
|
32 esac
|
|
33
|
|
34 exit 0
|