diff debian/prerm @ 301:3b5b7f3fd71f noffle

[svn] initial debian/ upload
author godisch
date Fri, 14 Feb 2003 13:54:32 +0000
parents
children 85bf9f705e70
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/prerm	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,25 @@
+#!/bin/sh
+# $Id: prerm 434 2003-02-14 13:54:32Z godisch $
+
+set -e
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+db_get noffle/port || RET=''
+port="$RET"
+[ -z "$port" -o "$port" = 119 ] && port=nntp
+
+case "$1" in
+remove|upgrade|deconfigure)
+	echo "Disabling inet.d entry for noffle..."
+	update-inetd --disable $port || :
+	;;
+failed-upgrade)
+	;;
+*)
+	echo "prerm called with unknown argument '$1'" >&2
+	exit 1
+	;;
+esac
+
+exit 0