301
|
1 #!/bin/sh
|
325
|
2 # $Id: postrm 460 2003-02-23 15:16:46Z godisch $
|
301
|
3
|
|
4 set -e
|
325
|
5 . /usr/share/debconf/confmodule
|
|
6 db_version 2.0
|
301
|
7
|
|
8 server_config=/etc/news/noffle.conf
|
|
9 debian_config=/etc/default/noffle
|
|
10
|
324
|
11 if [ "$1" = remove -o "$1" = purge ]; then
|
311
|
12 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc
|
314
|
13 rm -rf /var/lock/noffle
|
324
|
14 fi
|
|
15
|
|
16 if [ "$1" = purge ]; then
|
311
|
17 update-inetd --remove "/usr/bin/noffle -r"
|
317
|
18 update-rc.d noffle remove > /dev/null
|
324
|
19 rm -f /etc/noffle.conf /etc/noffle.conf.old \
|
301
|
20 $server_config $server_config.old \
|
324
|
21 $debian_config $debian_config.old
|
|
22 rm -rf /etc/noffle /var/spool/noffle
|
325
|
23 db_purge
|
324
|
24 fi
|
301
|
25
|
325
|
26 db_stop
|
301
|
27 exit 0
|