~ubuntu-branches/ubuntu/hardy/trousers/hardy-proposed

« back to all changes in this revision

Viewing changes to debian/trousers.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-01-23 22:03:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080123220300-fhtqja3c0oq0gp6z
Tags: 0.3.1-4
* Added patch from Aaron M. Ucko <ucko@debian.org> to allow trousers to
  build successfully on amd64, and presumably also other 64-bit
  architectures (Closes: #457400).
* Including udev rule for /dev/tpm from William Lima
  <wlima.amadeus@gmail.com> as suggested by David Smith <dds@google.com>
  (Closes: #459682).
* Added lintian overrides.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
case "$1" in
6
 
        purge)
7
 
          userdel tpm || true
8
 
          groupdel tpm || true
9
 
        ;;
10
 
 
 
5
case "${1}" in
11
6
        remove)
12
 
        ;;
13
 
 
14
 
        upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
15
 
        ;;
 
7
                if [ -x /usr/sbin/deluser ]
 
8
                then
 
9
                        deluser --system --remove-home tss
 
10
                        deluser --group --only-if-empty tss
 
11
                fi
 
12
                ;;
 
13
 
 
14
        purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
15
 
 
16
                ;;
16
17
 
17
18
        *)
18
 
          echo "postrm called with unknown argument \`$1'" >&2
19
 
          exit 1
20
 
        ;;
21
 
 
 
19
                echo "postrm called with unknown argument \`${1}'" >&2
 
20
                exit 1
 
21
                ;;
22
22
esac
23
23
 
24
24
#DEBHELPER#