Debhelper-generated postinst and prerm vs. manual one
Fabian Fagerholm
fabbe at paniq.net
Wed Oct 18 12:04:43 UTC 2006
Currently the postinst and prerm for the -bin package include almost
exactly what dh_installinit will generate automatically, resulting in
duplicate invocations of update-rc.d and invoke-rc.d.
The only difference is that the manual version sets MAINTSCRIPT=yes. Do
we need this, or can I go ahead and commit the diff below, which lets
dh_installinit take care of generating the script?
--
Fabian Fagerholm <fabbe at paniq.net>
$ svn diff
Index: debian/cyrus-sasl-2.1-bin.postinst
===================================================================
--- debian/cyrus-sasl-2.1-bin.postinst (revision 63)
+++ debian/cyrus-sasl-2.1-bin.postinst (working copy)
@@ -1,15 +1,6 @@
#!/bin/sh
set -e
-if [ -x "/etc/init.d/saslauthd" ]; then
- update-rc.d saslauthd defaults >/dev/null
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- MAINTSCRIPT=yes invoke-rc.d saslauthd start || exit $?
- else
- MAINTSCRIPT=yes /etc/init.d/saslauthd start || exit $?
- fi
-fi
-
#DEBHELPER#
exit 0
Index: debian/cyrus-sasl-2.1-bin.prerm
===================================================================
--- debian/cyrus-sasl-2.1-bin.prerm (revision 63)
+++ debian/cyrus-sasl-2.1-bin.prerm (working copy)
@@ -1,14 +1,6 @@
#!/bin/sh
set -e
-if [ -x "/etc/init.d/saslauthd" ]; then
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- MAINTSCRIPT=yes invoke-rc.d saslauthd stop || exit $?
- else
- MAINTSCRIPT=yes /etc/init.d/saslauthd stop || exit $?
- fi
-fi
-
#DEBHELPER#
exit 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-cyrus-sasl2-debian-devel/attachments/20061018/3eb9bfa4/attachment.pgp
More information about the Pkg-cyrus-sasl2-debian-devel
mailing list