view debian/postrm @ 393:e113df4af08b noffle

[svn] added debconf-2.0 dependency option
author godisch
date Sat, 24 May 2003 07:30:38 +0100
parents 794030e45053
children c2fd00030991
line wrap: on
line source

#!/bin/sh
# $Id: postrm 534 2003-05-24 06:05:53Z godisch $

set -e

server_config=/etc/news/noffle.conf
debian_config=/etc/default/noffle

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 \
		$server_config $server_config.old \
		$debian_config $debian_config.old
	rm -rf /etc/noffle /var/spool/noffle
	if [ -e /usr/share/debconf/confmodule ]; then
		. /usr/share/debconf/confmodule
		db_purge
	fi
fi

exit 0