view debian/postrm @ 464:d9035d08fe51 noffle

[svn] * src/fetch.c: Log failed posting that we can't mail back to the sender or where sending fails to <Noffle spool>/failed.posting.
author bears
date Wed, 23 Jul 2003 10:32:25 +0100
parents 7e0c7dd29d53
children e769484a87c3
line wrap: on
line source

#!/bin/sh
# $Id: postrm 599 2003-06-25 17:00:10Z 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-*
	rm -rf /etc/news/noffle.old /etc/noffle /var/spool/noffle
	if [ -e /usr/share/debconf/confmodule ]; then
		. /usr/share/debconf/confmodule
		db_purge
	fi
	ucf --purge /etc/default/noffle < /dev/tty
	ucf --purge /etc/news/noffle.conf < /dev/tty
fi

exit 0