~ubuntu-branches/ubuntu/trusty/sendmail/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/build/debian/sensible-mda.preinst.in

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2014-02-05 23:11:58 UTC
  • mfrom: (9.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20140205231158-gz0hae4ki4o6c6c8
Tags: 8.14.4-4.1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/examples/checksendmail/checksendmail.8,
    debian/examples/checksendmail/harker/checksendmail.8:
    + Some man page corrections.
  - debian/patches/8.14/8.14.4/conf.c-ipv6.patch:
    + Fix A-only MX CNAME interface binding issues when using IPv6.
* Dropped following patches, already applied in Debian:
  - debian/patches/8.14/8.14.4/ld_as_needed -> fix_linkage
  - debian/patches/8.14/8.14.4/raise-max-daemons.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
#
3
 
# Debian pre install script
4
 
#
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)
13
 
#               new-preinst install
14
 
#               *) new-postrm abort-install
15
 
#
16
 
set -e;
 
1
#!/bin/sh
 
2
set -e
17
3
 
18
4
PACKAGE=sensible-mda;
19
5
 
20
 
case "$1" in
21
 
        install)
22
 
                # DPKG doesn't overwrite directories with symlinks...
23
 
                if [ -d @docdir@/$PACKAGE ]; then
24
 
                        rm -rf @docdir@/$PACKAGE;
25
 
                        fi;
26
 
                if [ ! -d @docdir@/sendmail ]; then
27
 
                        mkdir -p @docdir@/sendmail;
28
 
                        chmod a+rx @docdir@/sendmail;
29
 
                        fi;
30
 
                ln -sf sendmail @docdir@/$PACKAGE;
31
 
                ;;
32
 
 
33
 
        upgrade)
34
 
                # DPKG doesn't overwrite directories with symlinks...
35
 
                if [ -d @docdir@/$PACKAGE ]; then
36
 
                        rm -rf @docdir@/$PACKAGE;
37
 
                        fi;
38
 
                if [ ! -d @docdir@/sendmail ]; then
39
 
                        mkdir -p @docdir@/sendmail;
40
 
                        chmod a+rx @docdir@/sendmail;
41
 
                        fi;
42
 
                ln -sf sendmail @docdir@/$PACKAGE;
43
 
                ;;
44
 
 
45
 
        abort-upgrade)
46
 
                ;;
47
 
 
48
 
        *)
49
 
                echo "$PACKAGE preinst called with unknown argument \`$1'" >&2;
50
 
                exit 1;
51
 
                ;;
52
 
        esac;
 
6
if [ -L @docdir@/$PACKAGE ]; then
 
7
        # /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail
 
8
        rm @docdir@/$PACKAGE
 
9
fi
 
10
if [ -L /usr/share/bug/$PACKAGE ]; then
 
11
        rm /usr/share/bug/$PACKAGE
 
12
fi
53
13
 
54
14
#DEBHELPER#
55
 
exit 0;