[Rémi Denis-Courmont]
> The fixed package has been there for a while:
> http://www.remlab.net/files/miredo/debian/
> But I am unable to reach my sponsor so err...

My sponsoring preferences are available from
<URL:http://www.hungry.com/~pere/debian-sponsoring.html> if you want
me to sponsor the package.

I had a look at the source, and discovered that the fix for the
missing runlevel settings is incomplete.  There need to be code in the
postinst to recover systems with the incorrect runlevel settings.

Here is an untested patch to fix that part of the issue.

diff -ur ../miredo-1.1.5/debian/miredo-server.postinst 
debian/miredo-server.postinst
--- ../miredo-1.1.5/debian/miredo-server.postinst       2009-10-08 
22:46:39.000000000 +0200
+++ debian/miredo-server.postinst       2009-10-08 22:53:27.000000000 +0200
@@ -10,5 +10,18 @@
   ;;
 esac

+# Those using dependency based boot sequencing and installing
+# miredo-server before version 1.1.5-2 would miss
+# the runlevel 2 start symlink.  Recover from this.
+if [ "$1" = "configure" ] \
+   && dpkg --compare-versions "$2" le "1.1.5-2" \
+   && [ -f /etc/rc2.d/K[0-9][0-9]miredo-server ] \
+   && [ -f /etc/rc3.d/S[0-9][0-9]miredo-server ] \
+   && [ -f /etc/rc4.d/S[0-9][0-9]miredo-server ] \
+   && [ -f /etc/rc5.d/S[0-9][0-9]miredo-server ]
+then
+   update-rc.d -f miredo-server remove
+fi
+
 #DEBHELPER#


Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to