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