annotate debian/postrm @ 482:a04c52f87b6e noffle

[svn] * docs/noffle.1,src/database.h,src/database.c,src/noffle.c,src/server.c: Add new '-U, --uninteresting' option. This removes an article from the list of requested articles and removes its INTERESTING marker.
author bears
date Thu, 14 Oct 2004 00:26:48 +0100
parents 84c15e2195b5
children a5cb498bcbed
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
468
84c15e2195b5 [svn] fixup
godisch
parents: 466
diff changeset
2 # $Id: postrm 613 2003-08-11 15:23:50Z 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
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
6 if [ "$1" = remove -o "$1" = purge ]; then
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
7 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
8 rm -rf /var/lock/noffle
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
9 fi
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
10
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
11 if [ "$1" = purge ]; then
311
7c6035f8656f [svn] added removal of noffle.elc, code cleanup
godisch
parents: 309
diff changeset
12 update-inetd --remove "/usr/bin/noffle -r"
317
eef64bccd0e2 [svn] last updates for 1.1.4-2
godisch
parents: 314
diff changeset
13 update-rc.d noffle remove > /dev/null
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 317
diff changeset
14 rm -f /etc/noffle.conf /etc/noffle.conf.old \
426
ee231af1b0d8 [svn] remove *.dpkg-* on purge
godisch
parents: 425
diff changeset
15 /etc/news/noffle.conf /etc/news/noffle.conf.old /etc/news/noffle.conf.dpkg-* \
ee231af1b0d8 [svn] remove *.dpkg-* on purge
godisch
parents: 425
diff changeset
16 /etc/default/noffle /etc/default/noffle.old /etc/default/noffle.dpkg-*
392
794030e45053 [svn] fixed debconf in handling in postrm
godisch
parents: 325
diff changeset
17 if [ -e /usr/share/debconf/confmodule ]; then
794030e45053 [svn] fixed debconf in handling in postrm
godisch
parents: 325
diff changeset
18 . /usr/share/debconf/confmodule
794030e45053 [svn] fixed debconf in handling in postrm
godisch
parents: 325
diff changeset
19 db_purge
794030e45053 [svn] fixed debconf in handling in postrm
godisch
parents: 325
diff changeset
20 fi
425
c2fd00030991 [svn] added preliminary ucf support
godisch
parents: 392
diff changeset
21 ucf --purge /etc/default/noffle < /dev/tty
c2fd00030991 [svn] added preliminary ucf support
godisch
parents: 392
diff changeset
22 ucf --purge /etc/news/noffle.conf < /dev/tty
468
84c15e2195b5 [svn] fixup
godisch
parents: 466
diff changeset
23 rmdir --ignore-fail-on-non-empty /etc/news/noffle /etc/news/noffle.old 2> /dev/null || true
466
e769484a87c3 [svn] fixed removal of old config dir
godisch
parents: 456
diff changeset
24 rm -rf /var/spool/noffle
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