| 
301
 | 
     1 #!/bin/sh
 | 
| 
313
 | 
     2 # $Id: postrm 447 2003-02-19 19:13:50Z godisch $
 | 
| 
301
 | 
     3 
 | 
| 
 | 
     4 set -e
 | 
| 
 | 
     5 . /usr/share/debconf/confmodule
 | 
| 
 | 
     6 db_version 2.0
 | 
| 
 | 
     7 
 | 
| 
 | 
     8 server_config=/etc/news/noffle.conf
 | 
| 
 | 
     9 debian_config=/etc/default/noffle
 | 
| 
 | 
    10 
 | 
| 
 | 
    11 case "$1" in
 | 
| 
311
 | 
    12 remove)
 | 
| 
 | 
    13 	rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc
 | 
| 
 | 
    14 	;;
 | 
| 
301
 | 
    15 purge)
 | 
| 
311
 | 
    16 	update-inetd --remove "/usr/bin/noffle -r"
 | 
| 
 | 
    17 	update-rc.d noffle remove
 | 
| 
 | 
    18 	rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc \
 | 
| 
301
 | 
    19 		$server_config $server_config.old \
 | 
| 
 | 
    20 		$debian_config $debian_config.old \
 | 
| 
311
 | 
    21 		/etc/noffle.conf /etc/noffle.conf.old
 | 
| 
 | 
    22 	rm -rf /etc/noffle /var/spool/noffle /var/lock/noffle
 | 
| 
301
 | 
    23 	db_purge
 | 
| 
 | 
    24 	;;
 | 
| 
313
 | 
    25 upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 | 
| 
301
 | 
    26 	;;
 | 
| 
 | 
    27 *)
 | 
| 
 | 
    28 	echo "postrm called with unknown argument '$1'" >&2
 | 
| 
 | 
    29 	exit 1
 | 
| 
 | 
    30 	;;
 | 
| 
 | 
    31 esac
 | 
| 
 | 
    32 
 | 
| 
 | 
    33 exit 0
 |