annotate debian/postrm @ 396:e144202d2d96 noffle

[svn] updated deb'configuration
author godisch
date Thu, 29 May 2003 15:55:19 +0100
parents 794030e45053
children c2fd00030991
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
392
794030e45053 [svn] fixed debconf in handling in postrm
godisch
parents: 325
diff changeset
2 # $Id: postrm 534 2003-05-24 06:05:53Z 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
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
6 server_config=/etc/news/noffle.conf
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
7 debian_config=/etc/default/noffle
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
8
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
9 if [ "$1" = remove -o "$1" = purge ]; then
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
10 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
11 rm -rf /var/lock/noffle
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
12 fi
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
13
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
14 if [ "$1" = purge ]; then
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
15 update-inetd --remove "/usr/bin/noffle -r"
317
eef64bccd0e2 [svn] last updates for 1.1.4-2
godisch
parents: 314
diff changeset
16 update-rc.d noffle remove > /dev/null
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
17 rm -f /etc/noffle.conf /etc/noffle.conf.old \
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
18 $server_config $server_config.old \
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
19 $debian_config $debian_config.old
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
20 rm -rf /etc/noffle /var/spool/noffle
392
794030e45053 [svn] fixed debconf in handling in postrm
godisch
parents: 325
diff changeset
21 if [ -e /usr/share/debconf/confmodule ]; then
794030e45053 [svn] fixed debconf in handling in postrm
godisch
parents: 325
diff changeset
22 . /usr/share/debconf/confmodule
794030e45053 [svn] fixed debconf in handling in postrm
godisch
parents: 325
diff changeset
23 db_purge
794030e45053 [svn] fixed debconf in handling in postrm
godisch
parents: 325
diff changeset
24 fi
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
25 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
26
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
27 exit 0