annotate debian/postrm @ 313:6e92a005ba27 noffle

[svn] cleanup bugfix
author godisch
date Wed, 19 Feb 2003 19:13:50 +0000
parents 7c6035f8656f
children e4687dc19520
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
1 #!/bin/sh
313
6e92a005ba27 [svn] cleanup bugfix
godisch
parents: 311
diff changeset
2 # $Id: postrm 447 2003-02-19 19:13:50Z godisch $
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
3
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
4 set -e
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
5 . /usr/share/debconf/confmodule
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
6 db_version 2.0
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
7
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
8 server_config=/etc/news/noffle.conf
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
9 debian_config=/etc/default/noffle
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
10
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
11 case "$1" in
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
12 remove)
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
13 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
14 ;;
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
15 purge)
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
16 update-inetd --remove "/usr/bin/noffle -r"
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
17 update-rc.d noffle remove
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
18 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc \
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
19 $server_config $server_config.old \
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
20 $debian_config $debian_config.old \
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
21 /etc/noffle.conf /etc/noffle.conf.old
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
22 rm -rf /etc/noffle /var/spool/noffle /var/lock/noffle
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
23 db_purge
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
24 ;;
313
6e92a005ba27 [svn] cleanup bugfix
godisch
parents: 311
diff changeset
25 upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
26 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
27 *)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
28 echo "postrm called with unknown argument '$1'" >&2
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
29 exit 1
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
30 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
31 esac
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
32
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
33 exit 0