view debian/postrm @ 311:7c6035f8656f noffle

[svn] added removal of noffle.elc, code cleanup
author godisch
date Wed, 19 Feb 2003 19:04:45 +0000
parents 21ba70d6eb38
children 6e92a005ba27
line wrap: on
line source

#!/bin/sh
# $Id: postrm 445 2003-02-19 19:04:45Z godisch $

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

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

case "$1" in
remove)
	rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc
	;;
purge)
	update-inetd --remove "/usr/bin/noffle -r"
	update-rc.d noffle remove
	rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc \
		$server_config $server_config.old \
		$debian_config $debian_config.old \
		/etc/noffle.conf /etc/noffle.conf.old
	rm -rf /etc/noffle /var/spool/noffle /var/lock/noffle
	db_purge
	;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
	;;
*)
	echo "postrm called with unknown argument '$1'" >&2
	exit 1
	;;
esac

exit 0