diff options
Diffstat (limited to 'debian/sendmail-doc.postinst')
-rw-r--r-- | debian/sendmail-doc.postinst | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/sendmail-doc.postinst b/debian/sendmail-doc.postinst new file mode 100644 index 0000000..bf0ac2a --- /dev/null +++ b/debian/sendmail-doc.postinst @@ -0,0 +1,47 @@ +#!/bin/sh -e +# +# Debian post installation script +# +# Install of already installed package: +# 1) old-prerm upgrade new-version +# *) new-prerm failed-upgrade old-version +# *) old-postinst abort-upgrade new-version +# +# If a `conflicting' package is being removed at the same time: +# 1) forall packages depending on conflicting package and --auto-deconfigure +# deconfigured's-prerm deconfigure \ +# in-favour package-being-installed version \ +# removing conflicting-package version +# *) deconfigured's-postinst abort-deconfigure \ +# in-favour package-being-installed-but-failed version \ +# removing conflicting-package version +# 2) To prepare for removal of the conflicting package +# conflictor's-prerm remove \ +# in-favour package new-version +# *) conflictor's-postinst abort-remove \ +# in-favour package new-version +# +# Configuration of package: +# postinst configure most-recently-configured-version +# +set -e; + +PACKAGE=`echo "$(basename $0)" | sed -e 's/\.postinst$//'`; + +case "$1" in + configure) + # continue below + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + exit 0; + ;; + + *) + echo "$PACKAGE postinst called with unknown argument \`$1'" >&2; + exit 1; + ;; + esac; + +#DEBHELPER# +exit 0; |