view debian/postrm @ 342:ba2ab2b440cb noffle

[svn] added rlinetd dependency option
author godisch
date Sun, 09 Mar 2003 06:52:06 +0000
parents c36eb2596531
children 794030e45053
line wrap: on
line source

#!/bin/sh
# $Id: postrm 460 2003-02-23 15:16:46Z godisch $

set -e
. /usr/share/debconf/confmodule
db_version 2.0

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
	db_purge
fi

db_stop
exit 0