annotate debian/postrm @ 317:eef64bccd0e2 noffle

[svn] last updates for 1.1.4-2
author godisch
date Thu, 20 Feb 2003 10:57:54 +0000
parents e4687dc19520
children 5ec39beae9c5
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
317
eef64bccd0e2 [svn] last updates for 1.1.4-2
godisch
parents: 314
diff changeset
2 # $Id: postrm 451 2003-02-20 10:57:54Z 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
314
e4687dc19520 [svn] added removal of /var/lock/noffle on remove
godisch
parents: 313
diff changeset
14 rm -rf /var/lock/noffle
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
15 ;;
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
16 purge)
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
17 update-inetd --remove "/usr/bin/noffle -r"
317
eef64bccd0e2 [svn] last updates for 1.1.4-2
godisch
parents: 314
diff changeset
18 update-rc.d noffle remove > /dev/null
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
19 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc \
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
20 $server_config $server_config.old \
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
21 $debian_config $debian_config.old \
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
22 /etc/noffle.conf /etc/noffle.conf.old
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
23 rm -rf /etc/noffle /var/spool/noffle /var/lock/noffle
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
24 db_purge
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
25 ;;
313
6e92a005ba27 [svn] cleanup bugfix
godisch
parents: 311
diff changeset
26 upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
27 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
28 *)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
29 echo "postrm called with unknown argument '$1'" >&2
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
30 exit 1
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
31 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
32 esac
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
33
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
34 exit 0