view debian/postrm @ 425:c2fd00030991 noffle

[svn] added preliminary ucf support
author godisch
date Fri, 20 Jun 2003 17:48:28 +0100
parents 794030e45053
children ee231af1b0d8
line wrap: on
line source

#!/bin/sh
# $Id: postrm 568 2003-06-20 16:48:28Z 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/default/noffle /etc/default/noffle.old
	rm -rf /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