diff debian/postrm @ 301:3b5b7f3fd71f noffle

[svn] initial debian/ upload
author godisch
date Fri, 14 Feb 2003 13:54:32 +0000
parents
children 21ba70d6eb38
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/postrm	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,31 @@
+#!/bin/sh
+# $Id: postrm 434 2003-02-14 13:54:32Z 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
+purge)
+	update-inetd --remove "/usr/bin/noffle -r" || :
+	echo "Removing /var/spool/noffle and contents..."
+	rm -rf /etc/noffle \
+		/etc/noffle.conf /etc/noffle.conf.old \
+		$server_config $server_config.old \
+		$debian_config $debian_config.old \
+		/var/spool/noffle || :
+	update-rc.d noffle remove > /dev/null
+	db_purge
+	;;
+remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+	;;
+*)
+	echo "postrm called with unknown argument '$1'" >&2
+	exit 1
+	;;
+esac
+
+exit 0