diff options
Diffstat (limited to 'debian/sendmail.prerm')
-rw-r--r-- | debian/sendmail.prerm | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/debian/sendmail.prerm b/debian/sendmail.prerm index 614318d..840eabe 100644 --- a/debian/sendmail.prerm +++ b/debian/sendmail.prerm @@ -1,20 +1,36 @@ #!/bin/sh -e -# -# Debian package prerm -# Version 1.2 -# -# Robert Leslie <rob@mars.org> +set -e case "$1" in - remove|upgrade|deconfigure) - #DEBHELPER# - ;; + remove) + /etc/init.d/sendmail stop + ;; + + upgrade) + ;; failed-upgrade) - ;; + ;; + + deconfigure) + ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 0 - ;; -esac + ;; + esac + +# The @DEBHELPER@ stuff causes problems with upgrades because of the +# length of time that sendmail is stopped... + +# Automatically added by dh_installdocs +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/sendmail ]; then + rm -f /usr/doc/sendmail +fi +# End automatically added section +# Automatically added by dh_installinit +#/etc/init.d/sendmail stop +# End automatically added section +#@DEBHELPER# +exit 0 |