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

« back to all changes in this revision

Viewing changes to debian/libmilter1.0.1.postrm

  • 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 post removal 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
 
# Removal of a package:
17
 
#       1) prerm remove
18
 
#       2) The package's files are removed (except conffiles).
19
 
#       3) postrm remove
20
 
#       4) All the maintainer scripts except the postrm are removed.
21
 
#       5) The conffiles and any backup files
22
 
#               (~-files, #*# files, %-files, .dpkg-{old,new,tmp}, etc.) are removed.
23
 
#       6) postrm purge
24
 
#       7) The package's file list is removed
25
 
#
26
 
set -e;
27
 
 
28
 
PACKAGE=libmilter1.0.1;
29
 
 
30
 
case "$1" in
31
 
        remove)
32
 
                # /usr/share/doc/$PACKAGE is a symlink to /usr/share/doc/sendmail
33
 
                rm -f /usr/share/doc/$PACKAGE 2>/dev/null || true;
34
 
                rmdir /usr/share/doc/sendmail 2>/dev/null || true;
35
 
                ;;
36
 
 
37
 
        purge)
38
 
                ;;
39
 
 
40
 
        upgrade)
41
 
                ;;
42
 
 
43
 
        failed-upgrade|abort-install|abort-upgrade|disappear)
44
 
                ;;
45
 
 
46
 
        *)
47
 
                echo "$PACKAGE postrm called with unknown argument \`$1'" >&2;
48
 
                exit 1;
49
 
                ;;
50
 
        esac;
51
 
 
52
 
#DEBHELPER#
53
 
exit 0;