annotate debian/postrm @ 324:5ec39beae9c5 noffle

[svn] cleanup
author godisch
date Sat, 22 Feb 2003 21:54:34 +0000
parents eef64bccd0e2
children c36eb2596531
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
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
2 # $Id: postrm 459 2003-02-22 21:54:34Z 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
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
21 if [ -e /usr/share/debconf/confmodule ]; then
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
22 . /usr/share/debconf/confmodule
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
23 db_purge
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
24 db_stop
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
25 fi
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
26 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
27
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
28 exit 0