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

« back to all changes in this revision

Viewing changes to debian/sensible-mda.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Richard A Nelson (Rick)
  • Date: 2009-03-01 18:45:00 UTC
  • mfrom: (8.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090301184500-z6683zxyomgmop6c
Tags: 8.14.3-9
Batting 1000, build-depend on quilt      Closes: #517676

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=sensible-mda;
 
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;