The last package is broken in such a way that installing in on a fresh
system gets the package into a state wher eit cannot install or be
removed...

This patch lets you _upgrade_ to this version then everything is fixed
and works!

I am not a DD so cannot NMU this.
I have only tested installing and removing and upgrading the package
on a "clean" system. I have not checked the functioanlity of the
daemon as I don't use it... some one should check that!

Regards
Alex Owen
diff -uNr stun-0.96.dfsg.old/debian/init.d stun-0.96.dfsg/debian/init.d
--- stun-0.96.dfsg.old/debian/init.d	2007-01-03 19:08:26.000000000 +0000
+++ stun-0.96.dfsg/debian/init.d	2007-01-03 18:49:04.000000000 +0000
@@ -14,9 +14,14 @@
 DAEMON=/usr/sbin/stund
 NAME=stun
 DESC=stun
+START_DAEMON=false
 
 test -x $DAEMON || exit 0
 
+if [ "$START_DAEMON" != "true" ] ; then 
+	exit 0
+fi
+
 # Include stun defaults if available
 if [ -f /etc/default/stun ] ; then
 	. /etc/default/stun
diff -uNr stun-0.96.dfsg.old/debian/README.Debian stun-0.96.dfsg/debian/README.Debian
--- stun-0.96.dfsg.old/debian/README.Debian	2007-01-03 19:08:26.000000000 +0000
+++ stun-0.96.dfsg/debian/README.Debian	2007-01-03 18:49:04.000000000 +0000
@@ -1,5 +1,9 @@
 stund for Debian
 ----------------
+The stund daemon is not started by default.
+To get the daemon to start edit /etc/default/stun and uncomment the
+START_DAEMON=true line
+
 
 A list of publicly available STUN test servers is available at:
 http://www.voip-info.org/wiki/view/STUN
diff -uNr stun-0.96.dfsg.old/debian/stun.default stun-0.96.dfsg/debian/stun.default
--- stun-0.96.dfsg.old/debian/stun.default	2007-01-03 19:08:26.000000000 +0000
+++ stun-0.96.dfsg/debian/stun.default	2007-01-03 18:49:04.000000000 +0000
@@ -6,6 +6,9 @@
 # This is a POSIX shell fragment
 #
 
+#uncommment the next line to allow the init.d script to start the stun daemon 
+#START_DAEMON=true
+
 # Additional options that are passed to the Daemon.
 DAEMON_OPTS=""
 
diff -uNr stun-0.96.dfsg.old/debian/stun.prerm stun-0.96.dfsg/debian/stun.prerm
--- stun-0.96.dfsg.old/debian/stun.prerm	1970-01-01 01:00:00.000000000 +0100
+++ stun-0.96.dfsg/debian/stun.prerm	2007-01-03 19:05:52.000000000 +0000
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+if [ -x "/etc/init.d/stun" ]; then
+	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+		invoke-rc.d stun stop || exit 0
+	else
+		/etc/init.d/stun stop || exit 0
+	fi
+fi

Reply via email to