annotate debian/postrm @ 314:e4687dc19520 noffle

[svn] added removal of /var/lock/noffle on remove
author godisch
date Wed, 19 Feb 2003 19:16:04 +0000
parents 6e92a005ba27
children eef64bccd0e2
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
314
e4687dc19520 [svn] added removal of /var/lock/noffle on remove
godisch
parents: 313
diff changeset
2 # $Id: postrm 448 2003-02-19 19:16:04Z 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"
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
18 update-rc.d noffle remove
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