3
# Debian pre install script
5
# Install of already installed package:
6
# 1) Upgrade of package:
7
# new-preinst upgrade old-version
8
# *) new-postrm abort-upgrade old-version
9
# 2) package had some configuration files from a previous version installed
10
# new-preinst install old-version
11
# *) new-postrm abort-install old-version
12
# 3) Otherwise (i.e., the package was completely purged)
14
# *) new-postrm abort-install
18
4
PACKAGE=sensible-mda;
22
# DPKG doesn't overwrite directories with symlinks...
23
if [ -d @docdir@/$PACKAGE ]; then
24
rm -rf @docdir@/$PACKAGE;
26
if [ ! -d @docdir@/sendmail ]; then
27
mkdir -p @docdir@/sendmail;
28
chmod a+rx @docdir@/sendmail;
30
ln -sf sendmail @docdir@/$PACKAGE;
34
# DPKG doesn't overwrite directories with symlinks...
35
if [ -d @docdir@/$PACKAGE ]; then
36
rm -rf @docdir@/$PACKAGE;
38
if [ ! -d @docdir@/sendmail ]; then
39
mkdir -p @docdir@/sendmail;
40
chmod a+rx @docdir@/sendmail;
42
ln -sf sendmail @docdir@/$PACKAGE;
49
echo "$PACKAGE preinst called with unknown argument \`$1'" >&2;
6
if [ -L @docdir@/$PACKAGE ]; then
7
# /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail
10
if [ -L /usr/share/bug/$PACKAGE ]; then
11
rm /usr/share/bug/$PACKAGE