~ubuntu-branches/debian/sid/sendmail/sid

« back to all changes in this revision

Viewing changes to debian/build/debian/libmilter0.preinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Richard A Nelson (Rick)
  • Date: 2007-05-05 20:10:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070505201000-xd515upx318zlkgh
Tags: 8.14.1-1
* *** *** libmilter gets a new version *** ***
  *** *** MimeDefang and other packages will need to be rebuilt *** ***

* New upstream release
  - Fix 8.14.0 regressions & issues
* Refit patches
* Drop qtool patch, equivalent applied upstream
* Force configure defaults (new machine, gotta get it right)
* update configure.ac for newer db versions
* refresh FAQ
* build against db4.5                                      closes: #421945
* build-indep-depends on groff, not groff-base             closes: #362872

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;
17
 
 
18
 
PACKAGE=libmilter0;
19
 
 
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;
53
 
 
54
 
#DEBHELPER#
55
 
exit 0;