4 # Author : Manoj Srivastava ( srivasta@tiamat.datasync.com )
5 # Created On : Thu Oct 29 15:23:36 1998
6 # Created On Node : tiamat.datasync.com
7 # Last Modified By : Manoj Srivastava
8 # Last Modified On : Thu Oct 29 15:28:24 1998
9 # Last Machine Used: tiamat.datasync.com
11 # Status : Unknown, Use with caution!
18 # Abort if any command returns an error value
21 # This is filled in by debian/rules
24 # This script is called as the last step of the installation of the
25 # package. All the package's files are in place, dpkg has already done
26 # its automatic conffile handling, and all the packages we depend of
27 # are already fully installed and configured.
32 # Configure this package. If the package must prompt the user for
33 # information, do it here.
36 if [ -x /usr/sbin/install-docs ]; then
37 /usr/sbin/install-docs -i /usr/share/doc-base/$PACKAGE
40 # There are three sub-cases:
41 if test "${2+set}" != set; then
42 # We're being installed by an ancient dpkg which doesn't remember
43 # which version was most recently configured, or even whether
44 # there is a most recently configured version.
47 elif test -z "$2" -o "$2" = "<unknown>"; then
48 # The package has not ever been configured on this system, or was
49 # purged since it was last configured.
53 # Version $2 is the most recently configured version of this
59 # FSSTND compatible symlinks
60 if [ -d /usr/doc -a ! -e /usr/doc/$PACKAGE \
61 -a -d /usr/share/doc/$PACKAGE ]; then
62 ln -sf ../share/doc/$PACKAGE /usr/doc/$PACKAGE
66 # Back out of an attempt to upgrade this package FROM THIS VERSION
67 # to version $2. Undo the effects of "prerm upgrade $2".
72 if test "$2" != in-favour; then
73 echo "$0: undocumented call to \`postinst $*'" 1>&2
76 # Back out of an attempt to remove this package, which was due to
77 # a conflict with package $3 (version $4). Undo the effects of
78 # "prerm remove in-favour $3 $4".
83 if test "$2" != in-favour -o "$5" != removing; then
84 echo "$0: undocumented call to \`postinst $*'" 1>&2
87 # Back out of an attempt to deconfigure this package, which was
88 # due to package $6 (version $7) which we depend on being removed
89 # to make way for package $3 (version $4). Undo the effects of
90 # "prerm deconfigure in-favour $3 $4 removing $6 $7".
94 *) echo "$0: didn't understand being called with \`$1'" 1>&2