=== modified file 'debian/mandos.postinst' --- debian/mandos.postinst 2011-11-26 22:22:20 +0000 +++ debian/mandos.postinst 2014-01-06 17:22:30 +0000 @@ -47,6 +47,16 @@ ;; esac +# Avahi version 0.6.31-2 and older provides "avahi" (instead of +# "avahi-daemon") in its /etc/init.d script header. To make +# insserv(8) happy, we edit our /etc/init.d script header to contain +# the correct string before the code added by dh_installinit calls +# update.rd-c, which calls insserv. +avahi_version="`dpkg-query --showformat='${Version}' --show avahi-daemon`" +if dpkg --compare-versions "$avahi_version" le 0.6.31-2; then + sed --in-place --expression='/^### BEGIN INIT INFO$/,/^### END INIT INFO$/s/^\(# Required-\(Stop\|Start\):.*avahi\)-daemon\>/\1/g' /etc/init.d/mandos +fi + #DEBHELPER# exit 0