comparison debian/postrm @ 311:7c6035f8656f noffle

[svn] added removal of noffle.elc, code cleanup
author godisch
date Wed, 19 Feb 2003 19:04:45 +0000
parents 21ba70d6eb38
children 6e92a005ba27
comparison
equal deleted inserted replaced
310:150e75d3c785 311:7c6035f8656f
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: postrm 443 2003-02-19 06:26:09Z godisch $ 2 # $Id: postrm 445 2003-02-19 19:04:45Z godisch $
3 3
4 set -e 4 set -e
5 . /usr/share/debconf/confmodule 5 . /usr/share/debconf/confmodule
6 db_version 2.0 6 db_version 2.0
7 7
8 server_config=/etc/news/noffle.conf 8 server_config=/etc/news/noffle.conf
9 debian_config=/etc/default/noffle 9 debian_config=/etc/default/noffle
10 10
11 case "$1" in 11 case "$1" in
12 remove)
13 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc
14 ;;
12 purge) 15 purge)
13 update-inetd --remove "/usr/bin/noffle -r" || : 16 update-inetd --remove "/usr/bin/noffle -r"
14 echo "Removing /var/spool/noffle and contents..." 17 update-rc.d noffle remove
15 rm -rf /etc/noffle \ 18 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc \
16 /etc/noffle.conf /etc/noffle.conf.old \
17 $server_config $server_config.old \ 19 $server_config $server_config.old \
18 $debian_config $debian_config.old \ 20 $debian_config $debian_config.old \
19 /var/spool/noffle /var/lock/noffle || : 21 /etc/noffle.conf /etc/noffle.conf.old
20 update-rc.d noffle remove > /dev/null 22 rm -rf /etc/noffle /var/spool/noffle /var/lock/noffle
21 db_purge 23 db_purge
22 ;; 24 ;;
23 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) 25 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
24 ;; 26 ;;
25 *) 27 *)