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 : Sat Oct 26 13:19:34 2002
9 # Last Machine Used: glaurung.green-gryphon.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.
29 package_name=#PACKAGE#
31 if [ -z "package_name" ]; then
32 print >&2 "Internal Error. Please report a bug."
36 #perl -e 'print readlink("/usr/doc/'$package_name'"), "\n"; '
39 # Configure this package. If the package must prompt the user for
40 # information, do it here.
42 if [ -x /usr/sbin/install-docs ]; then
43 /usr/sbin/install-docs -i /usr/share/doc-base/debian-policy
44 /usr/sbin/install-docs -i /usr/share/doc-base/debian-menu-policy
45 /usr/sbin/install-docs -i /usr/share/doc-base/debian-mime-policy
46 /usr/sbin/install-docs -i /usr/share/doc-base/debian-perl-policy
47 /usr/sbin/install-docs -i /usr/share/doc-base/debian-policy-process
48 /usr/sbin/install-docs -i /usr/share/doc-base/debconf-spec
49 /usr/sbin/install-docs -i /usr/share/doc-base/fhs
52 # There are three sub-cases:
53 if test "${2+set}" != set; then
54 # We're being installed by an ancient dpkg which doesn't remember
55 # which version was most recently configured, or even whether
56 # there is a most recently configured version.
59 elif test -z "$2" -o "$2" = "<unknown>"; then
60 # The package has not ever been configured on this system, or was
61 # purged since it was last configured.
65 # Version $2 is the most recently configured version of this
71 # FSSTND compatible symlinks
72 if [ -d /usr/doc -a ! -e /usr/doc/$PACKAGE \
73 -a -d /usr/share/doc/$PACKAGE ]; then
74 ln -sf ../share/doc/$PACKAGE /usr/doc/$PACKAGE
78 # Back out of an attempt to upgrade this package FROM THIS VERSION
79 # to version $2. Undo the effects of "prerm upgrade $2".
84 if test "$2" != in-favour; then
85 echo "$0: undocumented call to \`postinst $*'" 1>&2
88 # Back out of an attempt to remove this package, which was due to
89 # a conflict with package $3 (version $4). Undo the effects of
90 # "prerm remove in-favour $3 $4".
95 if test "$2" != in-favour -o "$5" != removing; then
96 echo "$0: undocumented call to \`postinst $*'" 1>&2
99 # Back out of an attempt to deconfigure this package, which was
100 # due to package $6 (version $7) which we depend on being removed
101 # to make way for package $3 (version $4). Undo the effects of
102 # "prerm deconfigure in-favour $3 $4 removing $6 $7".
106 *) echo "$0: didn't understand being called with \`$1'" 1>&2