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 : Fri Mar 7 13:32:56 2003
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
74 # Back out of an attempt to upgrade this package FROM THIS VERSION
75 # to version $2. Undo the effects of "prerm upgrade $2".
80 if test "$2" != in-favour; then
81 echo "$0: undocumented call to \`postinst $*'" 1>&2
84 # Back out of an attempt to remove this package, which was due to
85 # a conflict with package $3 (version $4). Undo the effects of
86 # "prerm remove in-favour $3 $4".
91 if test "$2" != in-favour -o "$5" != removing; then
92 echo "$0: undocumented call to \`postinst $*'" 1>&2
95 # Back out of an attempt to deconfigure this package, which was
96 # due to package $6 (version $7) which we depend on being removed
97 # to make way for package $3 (version $4). Undo the effects of
98 # "prerm deconfigure in-favour $3 $4 removing $6 $7".
102 *) echo "$0: didn't understand being called with \`$1'" 1>&2