/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to debian/mandos-client.postrm

  • Committer: Teddy Hogeborn
  • Date: 2010-09-26 17:36:30 UTC
  • Revision ID: teddy@fukt.bsnet.se-20100926173630-zk7pe17fp2bv6zr7
* DBUS-API: Document new "LastApprovalRequest" client property.

* mandos (Client.last_approval_request): New attribute.
  (Client.need_approval): New method.
  (ClientDBus.need_approval): - '' -
  (ClientDBus.NeedApproval): Call self.need_approval().
  (ClientDBus.LastApprovalRequest_dbus_property): New D-Bus property.

* mandos-monitor: Show timeout counter during approval delay.
  (MandosClientWidget._update_timer_callback_lock): New.
  (MandosClientWidget.property_changed): Override to also call
                                         using_timer if
                                         ApprovalPending property is
                                         changed.
  (MandosClientWidget.using_timer): New method.
  (MandosClientWidget.checker_completed): Use "using_timer".
  (MandosClientWidget.need_approval): - '' -
  (MandosClientWidget.update): Show approval delay timer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
# This script can be called in the following ways:
 
3
#
 
4
# After the package was removed:
 
5
#       <postrm> remove
 
6
#
 
7
# After the package was purged:
 
8
#       <postrm> purge
 
9
#
 
10
# After the package was upgraded:
 
11
#       <old-postrm> upgrade <new-version>
 
12
# if that fails:
 
13
#       <new-postrm> failed-upgrade <old-version>
 
14
#
 
15
#
 
16
# After all of the packages files have been replaced:
 
17
#       <postrm> disappear <overwriting-package> <version>
 
18
#
 
19
#
 
20
# If preinst fails during install:
 
21
#       <new-postrm> abort-install
 
22
#
 
23
# If preinst fails during upgrade of removed package:
 
24
#       <new-postrm> abort-install <old-version>
 
25
#
 
26
# If preinst fails during upgrade:
 
27
#       <new-postrm> abort-upgrade <old-version>
 
28
 
 
29
 
 
30
# Update the initial RAM file system image
 
31
update_initramfs()
 
32
{
 
33
    if [ -x /usr/sbin/update-initramfs ]; then
 
34
        update-initramfs -u -k all
 
35
    fi
 
36
}
 
37
 
 
38
case "$1" in
 
39
    remove)
 
40
        update_initramfs
 
41
        ;;
 
42
 
 
43
    purge)
 
44
        shred --remove /etc/keys/mandos/seckey.txt 2>/dev/null || :
 
45
        rm --force /etc/mandos/plugin-runner.conf \
 
46
            /etc/keys/mandos/pubkey.txt \
 
47
            /etc/keys/mandos/seckey.txt 2>/dev/null
 
48
        ;;
 
49
    upgrade|failed-upgrade|disappear|abort-install|abort-upgrade)
 
50
        ;;
 
51
 
 
52
    *)
 
53
        echo "$0 called with unknown argument '$1'" 1>&2
 
54
        exit 1
 
55
        ;;
 
56
esac
 
57
 
 
58
#DEBHELPER#
 
59
 
 
60
exit 0