3 # Skeleton maintainer script showing all the possible cases.
4 # Written by Charles Briscoe-Smith, March-June 1998. Public Domain.
6 # Abort if any command returns an error value
10 . /usr/share/debconf/confmodule
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.
17 # The following idempotent stuff doesn't generally need protecting
18 # against being run in the abort-* cases.
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
29 # Back out of an attempt to upgrade this package FROM THIS VERSION
30 # to version $2. Undo the effects of "prerm upgrade $2".
35 ###if test "$2" != in-favour; then
36 ### echo "$0: undocumented call to \`postinst $*'" 1>&2
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".
46 ###if test "$2" != in-favour -o "$5" != removing; then
47 ### echo "$0: undocumented call to \`postinst $*'" 1>&2
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".
57 *) echo "$0: didn't understand being called with \`$1'" 1>&2