annotate 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
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
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
2 # $Id: postrm 445 2003-02-19 19:04:45Z 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 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
25 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
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