annotate debian/postrm @ 493:4d3a1597813a noffle

[svn] updated FSF address
author godisch
date Sun, 16 Apr 2006 07:20:58 +0100
parents a5cb498bcbed
children
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
486
a5cb498bcbed [svn] *** empty log message ***
godisch
parents: 468
diff changeset
2 # $Id: postrm 633 2004-11-28 09:46:27Z 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
486
a5cb498bcbed [svn] *** empty log message ***
godisch
parents: 468
diff changeset
21 ucf --purge --debconf-ok /etc/default/noffle
a5cb498bcbed [svn] *** empty log message ***
godisch
parents: 468
diff changeset
22 ucf --purge --debconf-ok /etc/news/noffle.conf
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