]> code.citadel.org Git - citadel.git/blob - citadel/debian/citadel-unixlogin.postinst
7d5e2f54ae3b992af5aa155124ddc0b2fe847c3b
[citadel.git] / citadel / debian / citadel-unixlogin.postinst
1 #! /bin/sh
2 # postinst.skeleton
3 # Skeleton maintainer script showing all the possible cases.
4 # Written by Charles Briscoe-Smith, March-June 1998.  Public Domain.
5
6 # Abort if any command returns an error value
7 set -e
8
9 # Use debconf.
10 . /usr/share/debconf/confmodule
11
12 # This script is called as the last step of the installation of the
13 # package.  All the package's files are in place, dpkg has already done
14 # its automatic conffile handling, and all the packages we depend of
15 # are already fully installed and configured.
16
17 # The following idempotent stuff doesn't generally need protecting
18 # against being run in the abort-* cases.
19
20
21 case "$1" in
22   configure)
23     # Configure this package.  If the package must prompt the user for
24     # information, do it here.
25         chown root:root /usr/sbin/chkpwd
26         chmod 4755 /usr/sbin/chkpwd
27         ;;
28   abort-upgrade)
29     # Back out of an attempt to upgrade this package FROM THIS VERSION
30     # to version $2.  Undo the effects of "prerm upgrade $2".
31     #:
32
33     ;;
34   abort-remove)
35     ###if test "$2" != in-favour; then
36     ###  echo "$0: undocumented call to \`postinst $*'" 1>&2
37     ###  exit 0
38     ###fi
39     #### Back out of an attempt to remove this package, which was due to
40     #### a conflict with package $3 (version $4).  Undo the effects of
41     #### "prerm remove in-favour $3 $4".
42     ###:
43
44     ;;
45   abort-deconfigure)
46     ###if test "$2" != in-favour -o "$5" != removing; then
47     ###  echo "$0: undocumented call to \`postinst $*'" 1>&2
48     ###  exit 0
49     ###fi
50     #### Back out of an attempt to deconfigure this package, which was
51     #### due to package $6 (version $7) which we depend on being removed
52     #### to make way for package $3 (version $4).  Undo the effects of
53     #### "prerm deconfigure in-favour $3 $4 removing $6 $7".
54     ###:
55
56     ;;
57   *) echo "$0: didn't understand being called with \`$1'" 1>&2
58      exit 0;;
59 esac
60
61 exit 0