~scarneiro/ubuntu/oneiric/opendrim-lmp-recordlog/fix-for-756108

« back to all changes in this revision

Viewing changes to packaging/debian/prerm

  • Committer: Bazaar Package Importer
  • Author(s): Guillaume BOTTEX
  • Date: 2009-08-19 17:08:36 UTC
  • Revision ID: james.westby@ubuntu.com-20090819170836-4pdxix40ulw5xqds
Tags: upstream-1.1.1
ImportĀ upstreamĀ versionĀ 1.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
# prerm script for opendrim-lmp-baseserver
 
3
#
 
4
# see: dh_installdeb(1)
 
5
 
 
6
set -e
 
7
 
 
8
# summary of how this script can be called:
 
9
#        * <prerm> `remove'
 
10
#        * <old-prerm> `upgrade' <new-version>
 
11
#        * <new-prerm> `failed-upgrade' <old-version>
 
12
#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
 
13
#        * <deconfigured's-prerm> `deconfigure' `in-favour'
 
14
#          <package-being-installed> <version> `removing'
 
15
#          <conflicting-package> <version>
 
16
# for details, see http://www.debian.org/doc/debian-policy/ or
 
17
# the debian-policy package
 
18
 
 
19
 
 
20
case "$1" in
 
21
    remove|upgrade|deconfigure)
 
22
    CIMNAMESPACE=root/cimv2
 
23
    CIMSERVER=sfcb
 
24
    INTEROPNAMESPACE=root/interop
 
25
    APP_NAME=opendrim-lmp-recordlog
 
26
    VERSION=`cat /usr/share/doc/opendrim-lmp-recordlog/VERSION`
 
27
    OPENDRIM_REG_DIR=/usr/share/OpenDRIM
 
28
    PROVIDER_SCRIPT_POST=OpenDRIM_RecordLogPackage
 
29
 
 
30
    $OPENDRIM_REG_DIR/$APP_NAME/registration/$PROVIDER_SCRIPT_POST-remove.sh $CIMNAMESPACE $CIMSERVER $INTEROPNAMESPACE $OPENDRIM_REG_DIR/$APP_NAME
 
31
    ;;
 
32
 
 
33
    failed-upgrade)
 
34
    ;;
 
35
 
 
36
    *)
 
37
        echo "prerm called with unknown argument \`$1'" >&2
 
38
        exit 1
 
39
    ;;
 
40
esac
 
41
 
 
42
# dh_installdeb will replace this with shell code automatically
 
43
# generated by other debhelper scripts.
 
44
 
 
45
#DEBHELPER#
 
46
 
 
47
exit 0
 
48