view debian/postrm @ 494:372f8b55506e noffle

[svn] Apply patch from Jan De Luyck. Add new option 'add-messageid-if-missing', which optionally postpones adding a message ID to the upstream server. If this is done, post-locally must be off. This is to deal with an upstream server troubling Jan. It usually (but not always) rejects posts with a Noffle message ID. I have changed Jan's original option of 'add-message-id-if-missing' for consistency with 'replace-messageid' and added the manual page entry. See SourceForge feature request 1513395.
author bears
date Wed, 12 Jul 2006 20:26:41 +0100
parents a5cb498bcbed
children
line wrap: on
line source

#!/bin/sh
# $Id: postrm 633 2004-11-28 09:46:27Z godisch $

set -e

if [ "$1" = remove -o "$1" = purge ]; then
	rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc
	rm -rf /var/lock/noffle
fi

if [ "$1" = purge ]; then
	update-inetd --remove "/usr/bin/noffle -r"
	update-rc.d noffle remove > /dev/null
	rm -f /etc/noffle.conf /etc/noffle.conf.old \
		/etc/news/noffle.conf /etc/news/noffle.conf.old /etc/news/noffle.conf.dpkg-* \
		/etc/default/noffle /etc/default/noffle.old /etc/default/noffle.dpkg-*
	if [ -e /usr/share/debconf/confmodule ]; then
		. /usr/share/debconf/confmodule
		db_purge
	fi
	ucf --purge --debconf-ok /etc/default/noffle
	ucf --purge --debconf-ok /etc/news/noffle.conf
	rmdir --ignore-fail-on-non-empty /etc/news/noffle /etc/news/noffle.old 2> /dev/null || true
	rm -rf /var/spool/noffle
fi

exit 0