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