301
|
1 #!/bin/sh
|
486
|
2 # $Id: postrm 633 2004-11-28 09:46:27Z 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
|
486
|
21 ucf --purge --debconf-ok /etc/default/noffle
|
|
22 ucf --purge --debconf-ok /etc/news/noffle.conf
|
468
|
23 rmdir --ignore-fail-on-non-empty /etc/news/noffle /etc/news/noffle.old 2> /dev/null || true
|
466
|
24 rm -rf /var/spool/noffle
|
324
|
25 fi
|
301
|
26
|
|
27 exit 0
|