postinst is in docbook-website 2.5.0.0-8.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | #! /bin/sh
# postinst script for docbook-website
# Maintainer: Mark Johnson <mrj@debian.org>
#
set -e
# remove old cruft, just in case
if [ "$1" = configure ]; then
    # remove the old catalog
    if [ -f /etc/sgml/docbook-xml-website.cat ]; then
        install-sgmlcatalog --quiet --remove docbook-xml-website
        rm -f /etc/sgml/docbook-xml-website.cat
        dpkg-trigger /etc/sgml
    fi
    # Skip all this if compatibility symlink exists
    if [ ! -h /usr/share/sgml/docbook/custom/website ]; then
	# Check if custom directory exists
	if [ -d /usr/share/sgml/docbook/custom ]; then
	    # Remove website directory, if it exists
	    if [ -d /usr/share/sgml/docbook/custom/website ]; then
		rm -rf /usr/share/sgml/docbook/custom/website
	    fi
	else
	    # Create custom directory
	    mkdir /usr/share/sgml/docbook/custom
	fi
	# Compatibility symlink doesn't exist, create it
	ln -s  ../../../xml/docbook/custom/website \
	    /usr/share/sgml/docbook/custom/website
    fi
    # End of symlink section
    
fi
# Automatically added by dh_installcatalogs
if [ "$1" = "configure" ]; then
	rm -f /etc/sgml/docbook-website.cat
	for ordcat in /usr/share/xml/docbook/custom/website/2.5.0/schema/dtd/catalog; do
		update-catalog --quiet --add /etc/sgml/docbook-website.cat ${ordcat}
	done
	update-catalog --quiet --add --super /etc/sgml/docbook-website.cat
fi
# End automatically added section
# Automatically added by dh_installxmlcatalogs
if [ "$1" = "configure" ]; then
	update-xmlcatalog --add --type public --id "-//Norman Walsh//DTD Website" --package docbook-website --local /usr/share/xml/docbook/custom/website/2.5.0/catalog.xml
	update-xmlcatalog --add --type system --id "http://docbook.sourceforge.net/release/website" --package docbook-website --local /usr/share/xml/docbook/custom/website/2.5.0/catalog.xml
	update-xmlcatalog --add --type public --id "-//Norman Walsh//DTD Website" --package docbook-website --root
	update-xmlcatalog --add --type system --id "http://docbook.sourceforge.net/release/website" --package docbook-website --root
fi
# End automatically added section
exit 0
 |