~ubuntu-branches/ubuntu/karmic/cyrus-imapd-2.2/karmic

« back to all changes in this revision

Viewing changes to debian/cyrus-common-2.2.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-15 17:40:07 UTC
  • Revision ID: james.westby@ubuntu.com-20060215174007-tu5fx5wasxrw4596
Tags: 2.2.12-3ubuntu1
Build using Berkeley DB 4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# prerm script for cyrus-common-2.2
 
3
# Copyright (c) 2002 by Henrique de Moraes Holschuh
 
4
# Distributed under the GNU General Public License version 2
 
5
# $Id: cyrus-common-2.2.prerm 229 2005-12-08 23:26:29Z astronut $
 
6
#
 
7
# see: dh_installdeb(1)
 
8
 
 
9
set -e
 
10
 
 
11
# summary of how this script can be called:
 
12
#        * <prerm> `remove'
 
13
#        * <old-prerm> `upgrade' <new-version>
 
14
#        * <new-prerm> `failed-upgrade' <old-version>
 
15
#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
 
16
#        * <deconfigured's-prerm> `deconfigure' `in-favour'
 
17
#          <package-being-installed> <version> `removing'
 
18
#          <conflicting-package> <version>
 
19
# for details, see http://www.debian.org/doc/debian-policy/ or
 
20
# the debian-policy package
 
21
 
 
22
 
 
23
case "$1" in
 
24
    remove|upgrade|deconfigure)
 
25
        # Call initscript, if it is there to stop the daemon
 
26
        invoke-rc.d cyrus2.2 stop || true
 
27
        ;;
 
28
    failed-upgrade)
 
29
        ;;
 
30
    *)
 
31
        echo "prerm called with unknown argument \`$1'" >&2
 
32
        exit 1
 
33
    ;;
 
34
esac
 
35
 
 
36
# dh_installdeb will replace this with shell code automatically
 
37
# generated by other debhelper scripts.
 
38
 
 
39
#DEBHELPER#
 
40
 
 
41
exit 0
 
42
 
 
43