301
|
1 #!/bin/sh
|
317
|
2 # $Id: postrm 451 2003-02-20 10:57:54Z 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"
|
317
|
18 update-rc.d noffle remove > /dev/null
|
311
|
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
|