301
|
1 #!/bin/sh
|
466
|
2 # $Id: postrm 611 2003-07-26 07:37:07Z 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-*
|
392
|
17 if [ -e /usr/share/debconf/confmodule ]; then
|
|
18 . /usr/share/debconf/confmodule
|
|
19 db_purge
|
|
20 fi
|
425
|
21 ucf --purge /etc/default/noffle < /dev/tty
|
|
22 ucf --purge /etc/news/noffle.conf < /dev/tty
|
466
|
23 rmdir --ignore-fail-on-non-empty /etc/news/noffle /etc/news/noffle.old
|
|
24 rm -rf /var/spool/noffle
|
324
|
25 fi
|
301
|
26
|
|
27 exit 0
|