[csw-devel] SF.net SVN: gar:[2476] csw/mgar/pkg/docbook-dtds/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Mon Dec 8 16:12:46 CET 2008


Revision: 2476
          http://gar.svn.sourceforge.net/gar/?rev=2476&view=rev
Author:   bdwalton
Date:     2008-12-08 15:12:46 +0000 (Mon, 08 Dec 2008)

Log Message:
-----------
Package builds and installs 'fine', including postinstall/preremove scripts.
The scripts may need to be changed if we leave libxml2 pointing to
/etc/sgml/catalog by default though, since the we're expecting them in
/opt/csw/etc/sgml/catalog for the preremove portion.

Modified Paths:
--------------
    csw/mgar/pkg/docbook-dtds/trunk/Makefile
    csw/mgar/pkg/docbook-dtds/trunk/checksums
    csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.gspec
    csw/mgar/pkg/docbook-dtds/trunk/files/Makefile

Added Paths:
-----------
    csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.depend
    csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.postinstall
    csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.preremove

Modified: csw/mgar/pkg/docbook-dtds/trunk/Makefile
===================================================================
--- csw/mgar/pkg/docbook-dtds/trunk/Makefile	2008-12-08 14:22:03 UTC (rev 2475)
+++ csw/mgar/pkg/docbook-dtds/trunk/Makefile	2008-12-08 15:12:46 UTC (rev 2476)
@@ -1,6 +1,12 @@
 # Replicate the RHEL5 docbook-dtds-1.0.30.1 rpm for CSW.  Patches are taken
 # from that srpm and modified (so paths work for GAR).
 
+# NOTE NOTE NOTE
+# If these version numbers change, you'll need to update the postinstall
+# and preremove scripts also.
+# 20081204 -bw
+# NOTE NOTE NOTE
+
 GARNAME = docbookdtds
 GARVERSION = 1.0
 PATCHLEVEL = 30.1
@@ -50,6 +56,7 @@
 
 MASTER_SITES = $(O_SRC) $(D_SRC)
 DISTFILES  = $(DBFILES) Makefile
+DISTFILES += $(call admfiles,CSWdocbookdtds,depend postinstall preremove)
 
 PATCHFILES = docbook-4.2-euro.patch docbook-dtd30-sgml-1.0.catalog.patch
 PATCHFILES += docbook-dtd31-sgml-1.0.catalog.patch

Modified: csw/mgar/pkg/docbook-dtds/trunk/checksums
===================================================================
--- csw/mgar/pkg/docbook-dtds/trunk/checksums	2008-12-08 14:22:03 UTC (rev 2475)
+++ csw/mgar/pkg/docbook-dtds/trunk/checksums	2008-12-08 15:12:46 UTC (rev 2476)
@@ -9,7 +9,11 @@
 ab200202b9e136a144db1e0864c45074  download/docbook-xml-4.3.zip
 f89e1bd0b2c7a361e3f1f739e16b5d0d  download/docbook-4.4.zip
 cbb04e9a700955d88c50962ef22c1634  download/docbook-xml-4.4.zip
-9f1b87ab4fa6da7b7284a1c7edd1e3da  download/Makefile
+2479ac1e7b4a43d3618ca16237aaa85d  download/Makefile
+536104a1ab1e8eac583cf27f4f8844a4  download/CSWdocbookdtds.gspec
+cb6dbfe9f6184a9de0725c0a61adc57b  download/CSWdocbookdtds.depend
+5cb8ab501683e226c5b34fac2dc66076  download/CSWdocbookdtds.postinstall
+9035c448e6480f6e916084fea388b512  download/CSWdocbookdtds.preremove
 318742d3a6648a6905727f071cbc9847  download/docbook-4.2-euro.patch
 e3067045964536cc7445d5c3f1e99916  download/docbook-dtd30-sgml-1.0.catalog.patch
 856d40f5d1e3fc8fd939b88bf5fedc87  download/docbook-dtd31-sgml-1.0.catalog.patch

Added: csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.depend
===================================================================
--- csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.depend	                        (rev 0)
+++ csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.depend	2008-12-08 15:12:46 UTC (rev 2476)
@@ -0,0 +1,6 @@
+P CSWcommon common - common files and dirs for CSW packages
+P CSWsgmlcommon sgmlcommon - A collection of entities and DTDs
+P CSWxmlcommon xmlcommon - A collection of entities and DTDs
+P CSWopenjade openjade - A DSSSL implementation
+P CSWlibxml2 libxml2 - A  library providing XML and HTML support
+

Modified: csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.gspec
===================================================================
--- csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.gspec	2008-12-08 14:22:03 UTC (rev 2475)
+++ csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.gspec	2008-12-08 15:12:46 UTC (rev 2476)
@@ -1,4 +1,4 @@
-%var            bitname package
-%var            pkgname CSWpackage
+%var            bitname docbookdtds
+%var            pkgname CSWdocbookdtds
+%var		arch all
 %include        url file://%{PKGLIB}/csw_dyndepend.gspec
-%copyright      url file://%{WORKSRC}/LICENSE

Added: csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.postinstall
===================================================================
--- csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.postinstall	                        (rev 0)
+++ csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.postinstall	2008-12-08 15:12:46 UTC (rev 2476)
@@ -0,0 +1,597 @@
+#!/bin/sh
+
+# NOTE: This script is a lightly modified version of the one included in the
+# rhel5 docbook-dtds rpm spec.
+# 20081204 -bw
+
+if [ -n "$PKG_INSTALL_ROOT" -a "$PKG_INSTALL_ROOT" != "/" ]; then
+    chroot $PKG_INSTALL_ROOT
+fi
+
+XMLCAT=/opt/csw/bin/xmlcatalog
+INSTCAT=/opt/csw/bin/install-catalog
+CSWSGMLCNF=/opt/csw/etc/sgml
+CSWSGML=/opt/csw/share/sgml
+
+VERSION=1.0
+RELEASE=30.1
+
+OPENJADEVER=1.3.2
+
+##
+## SGML catalog
+##
+
+# Update the centralized catalog corresponding to this version of the DTD
+# DocBook V3.0
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-3.0-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-3.0-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/sgml-dtd-3.0-$VERSION-$RELEASE/catalog
+
+# DocBook V3.1
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-3.1-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-3.1-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/sgml-dtd-3.1-$VERSION-$RELEASE/catalog
+
+# DocBook V4.0
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.0-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.0-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/sgml-dtd-4.0-$VERSION-$RELEASE/catalog
+
+# DocBook V4.1
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.1-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.1-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/sgml-dtd-4.1-$VERSION-$RELEASE/catalog
+
+# DocBook XML V4.1.2
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.1.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.1.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/xml-dtd-4.1.2-$VERSION-$RELEASE/catalog
+
+# DocBook V4.2
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/sgml-dtd-4.2-$VERSION-$RELEASE/catalog
+
+# DocBook XML V4.2
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/xml-dtd-4.2-$VERSION-$RELEASE/catalog
+
+# DocBook V4.3
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.3-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.3-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/sgml-dtd-4.3-$VERSION-$RELEASE/catalog
+
+# DocBook XML V4.3
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.3-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.3-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/xml-dtd-4.3-$VERSION-$RELEASE/catalog
+
+# DocBook V4.4
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.4-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.4-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/sgml-dtd-4.4-$VERSION-$RELEASE/catalog
+
+# DocBook XML V4.4
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.4-$VERSION-$RELEASE.cat \
+	$CSWSGML/sgml-iso-entities-8879.1986/catalog
+$XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.4-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/xml-dtd-4.4-$VERSION-$RELEASE/catalog
+
+# The following lines are for the case in which the style sheets
+# were installed after another DTD but before this DTD
+STYLESHEETS=`echo $CSWSGML/docbook/dsssl-stylesheets-*`
+#STYLESHEETS=${STYLESHEETS##*/dsssl-stylesheets-}
+STYLESHEETS=`echo $STYLESHEETS | sed 's#[^ ]*/dsssl-stylesheets-##g'`
+if [ "$STYLESHEETS" != "*" ]; then
+    # DocBook V3.0
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-3.0-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-3.0-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+
+    # DocBook V3.1
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-3.1-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-3.1-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+
+    # DocBook V4.0
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.0-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.0-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+
+    # DocBook V4.1
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.1-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.1-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+
+    # DocBook XML V4.1.2
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.1.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.1.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+
+    # DocBook V4.2
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+
+    # DocBook XML V4.2
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.2-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+
+    # DocBook V4.3
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.3-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.3-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+
+    # DocBook XML V4.3
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.3-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.3-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+
+    # DocBook V4.4
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.4-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/sgml-docbook-4.4-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+
+    # DocBook XML V4.4
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.4-$VERSION-$RELEASE.cat \
+	$CSWSGML/openjade-$OPENJADEVER/catalog
+    $XMLCAT --sgml --noout --add \
+	$CSWSGMLCNF/xml-docbook-4.4-$VERSION-$RELEASE.cat \
+	$CSWSGML/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
+fi
+
+# Fix up SGML super catalog so that there isn't an XML DTD before an
+# SGML one.  We need to do this (*sigh*) because xmlcatalog messes up
+# the order of the lines, and SGML tools don't like to see XML things
+# they aren't expecting.
+CATALOG=$CSWSGMLCNF/catalog
+SGML=`cat -n ${CATALOG} | grep sgml-docbook | head -1 | awk '{print $1}'`
+XML=`cat -n ${CATALOG} | grep xml-docbook | head -1 | awk '{print $1}'`
+
+# Do they need switching around?
+if [ -n "${XML}" ] && [ -n "${SGML}" ] && [ "${XML}" -lt "${SGML}" ]
+then
+    XML=`expr $XML - 1`
+    SGML=`expr $SGML - 1`
+
+    # make sure we're using the system perl, as we know for sure that it
+    # can handle this operation correctly.
+    /usr/bin/perl -e "@_=<>;@_[$XML,$SGML]=@_[$SGML,$XML];print @_" \
+	${CATALOG} > ${CATALOG}.tmp
+
+    mv ${CATALOG}.tmp ${CATALOG}.new
+fi
+
+##
+## XML catalog
+##
+
+CATALOG=$CSWSGML/docbook/xmlcatalog
+
+if [ -w $CATALOG ]
+then
+	# DocBook XML V4.1.2
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Publishing//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-pub.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Greek Letters//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-grk1.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/dbpoolx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-box.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD DocBook XML V4.1.2//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/docbookx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Greek Symbols//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-grk3.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amsn.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-num.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/dbcentx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-grk4.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/dbnotnx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Diacritical Marks//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-dia.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-grk2.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/dbgenent.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/dbhierx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amsa.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amso.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-cyrl.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES General Technical//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-tech.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amsc.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/soextblx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/calstblx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Latin 1//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-lat1.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amsb.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Latin 2//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-lat2.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amsr.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-cyr2.ent" $CATALOG
+	$XMLCAT --noout --add "rewriteSystem" \
+		"http://www.oasis-open.org/docbook/xml/4.1.2" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE" $CATALOG
+	$XMLCAT --noout --add "rewriteURI" \
+		"http://www.oasis-open.org/docbook/xml/4.1.2" \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE" $CATALOG
+
+	# DocBook XML V4.2
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Publishing//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-pub.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Greek Letters//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-grk1.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ELEMENTS DocBook XML Information Pool V4.2//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/dbpoolx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-box.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD DocBook XML V4.2//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/docbookx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Greek Symbols//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-grk3.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amsn.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-num.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Character Entities V4.2//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/dbcentx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-grk4.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Notations V4.2//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/dbnotnx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Diacritical Marks//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-dia.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-grk2.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.2//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/dbgenent.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.2//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/dbhierx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amsa.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amso.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-cyrl.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES General Technical//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-tech.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amsc.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/soextblx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD DocBook XML CALS Table Model V4.2//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/calstblx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Latin 1//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-lat1.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amsb.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Latin 2//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-lat2.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amsr.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-cyr2.ent" $CATALOG
+	$XMLCAT --noout --add "rewriteSystem" \
+		"http://www.oasis-open.org/docbook/xml/4.2" \
+		"xml-dtd-4.2-$VERSION-$RELEASE" $CATALOG
+	$XMLCAT --noout --add "rewriteURI" \
+		"http://www.oasis-open.org/docbook/xml/4.2" \
+		"xml-dtd-4.2-$VERSION-$RELEASE" $CATALOG
+
+	# DocBook XML V4.3
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Publishing//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-pub.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Greek Letters//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-grk1.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ELEMENTS DocBook XML Information Pool V4.3//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/dbpoolx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-box.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD DocBook XML V4.3//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/docbookx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Greek Symbols//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-grk3.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amsn.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-num.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Character Entities V4.3//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/dbcentx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-grk4.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Notations V4.3//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/dbnotnx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Diacritical Marks//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-dia.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-grk2.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.3//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/dbgenent.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.3//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/dbhierx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amsa.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amso.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-cyrl.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES General Technical//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-tech.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amsc.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/soextblx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD DocBook XML CALS Table Model V4.3//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/calstblx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Latin 1//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-lat1.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amsb.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Latin 2//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-lat2.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amsr.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-cyr2.ent" $CATALOG
+	$XMLCAT --noout --add "rewriteSystem" \
+		"http://www.oasis-open.org/docbook/xml/4.3" \
+		"xml-dtd-4.3-$VERSION-$RELEASE" $CATALOG
+	$XMLCAT --noout --add "rewriteURI" \
+		"http://www.oasis-open.org/docbook/xml/4.3" \
+		"xml-dtd-4.3-$VERSION-$RELEASE" $CATALOG
+
+	# DocBook XML V4.4
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Publishing//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-pub.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Greek Letters//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-grk1.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ELEMENTS DocBook XML Information Pool V4.4//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/dbpoolx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-box.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD DocBook XML V4.4//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/docbookx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Greek Symbols//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-grk3.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amsn.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-num.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Character Entities V4.4//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/dbcentx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-grk4.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Notations V4.4//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/dbnotnx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Diacritical Marks//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-dia.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-grk2.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.4//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/dbgenent.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.4//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/dbhierx.mod" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amsa.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amso.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-cyrl.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES General Technical//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-tech.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amsc.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/soextblx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"-//OASIS//DTD DocBook XML CALS Table Model V4.4//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/calstblx.dtd" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Latin 1//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-lat1.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amsb.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Latin 2//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-lat2.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amsr.ent" $CATALOG
+	$XMLCAT --noout --add "public" \
+		"ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-cyr2.ent" $CATALOG
+	$XMLCAT --noout --add "rewriteSystem" \
+		"http://www.oasis-open.org/docbook/xml/4.4" \
+		"xml-dtd-4.4-$VERSION-$RELEASE" $CATALOG
+	$XMLCAT --noout --add "rewriteURI" \
+		"http://www.oasis-open.org/docbook/xml/4.4" \
+		"xml-dtd-4.4-$VERSION-$RELEASE" $CATALOG
+fi
+
+# Finally, make sure everything in $CSWSGMLCNF is readable!
+/bin/chmod a+r $CSWSGMLCNF/*

Added: csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.preremove
===================================================================
--- csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.preremove	                        (rev 0)
+++ csw/mgar/pkg/docbook-dtds/trunk/files/CSWdocbookdtds.preremove	2008-12-08 15:12:46 UTC (rev 2476)
@@ -0,0 +1,337 @@
+#!/bin/sh
+
+# NOTE: This script is a lightly modified version of the one included in the
+# rhel5 docbook-dtds rpm spec.
+# 20081204 -bw
+
+if [ -n "$PKG_INSTALL_ROOT" -a "$PKG_INSTALL_ROOT" != "/" ]; then
+    chroot $PKG_INSTALL_ROOT
+fi
+
+XMLCAT=/opt/csw/bin/xmlcatalog
+CSWSGMLCNF=/opt/csw/etc/sgml
+CSWSGML=/opt/csw/share/sgml
+
+VERSION=1.0
+RELEASE=30.1
+
+OPENJADEVER=1.3.2
+
+##
+## SGML catalog
+##
+
+# Update the centralized catalog corresponding to this version of the DTD
+# DocBook V3.0
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/sgml-docbook-3.0-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/sgml-docbook-3.0-$VERSION-$RELEASE.cat
+
+# DocBook V3.1
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/sgml-docbook-3.1-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/sgml-docbook-3.1-$VERSION-$RELEASE.cat
+
+# DocBook V4.0
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/sgml-docbook-4.0-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/sgml-docbook-4.0-$VERSION-$RELEASE.cat
+
+# DocBook V4.1
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/sgml-docbook-4.1-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/sgml-docbook-4.1-$VERSION-$RELEASE.cat
+
+# DocBook XML V4.1.2
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/xml-docbook-4.1.2-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/xml-docbook-4.1.2-$VERSION-$RELEASE.cat
+
+# DocBook V4.2
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/sgml-docbook-4.2-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/sgml-docbook-4.2-$VERSION-$RELEASE.cat
+
+# DocBook XML V4.2
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/xml-docbook-4.2-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/xml-docbook-4.2-$VERSION-$RELEASE.cat
+
+# DocBook V4.3
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/sgml-docbook-4.3-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/sgml-docbook-4.3-$VERSION-$RELEASE.cat
+
+# DocBook XML V4.3
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/xml-docbook-4.3-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/xml-docbook-4.3-$VERSION-$RELEASE.cat
+
+# DocBook V4.4
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/sgml-docbook-4.4-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/sgml-docbook-4.4-$VERSION-$RELEASE.cat
+
+# DocBook XML V4.4
+$XMLCAT --sgml --noout --del $CSWSGMLCNF/catalog \
+	$CSWSGMLCNF/xml-docbook-4.4-$VERSION-$RELEASE.cat
+rm -f $CSWSGMLCNF/xml-docbook-4.4-$VERSION-$RELEASE.cat
+
+# Fix up SGML super catalog so that there isn't an XML DTD before an
+# SGML one.  We need to do this (*sigh*) because xmlcatalog messes up
+# the order of the lines, and SGML tools don't like to see XML things
+# they aren't expecting.
+CATALOG=$CSWSGMLCNF/catalog
+SGML=`cat -n ${CATALOG} | grep sgml-docbook | head -1 | awk '{print $1}'`
+XML=`cat -n ${CATALOG} | grep xml-docbook | head -1 | awk '{print $1}'`
+# Do they need switching around?
+if [ -n "${XML}" ] && [ -n "${SGML}" ] && [ "${XML}" -lt "${SGML}" ]
+then
+  # Switch those two lines around.
+  XML=`expr $XML - 1`
+  SGML=`expr $SGML - 1`
+  /usr/bin/perl -e "@_=<>;@_[$XML, $SGML]=@_[$SGML, $XML];print @_" \
+    ${CATALOG} > ${CATALOG}.tmp
+  mv -f ${CATALOG}.tmp ${CATALOG}
+fi
+
+##
+## XML catalog
+##
+
+CATALOG=$CSWSGML/docbook/xmlcatalog
+
+if [ -w $CATALOG ]
+then
+	# DocBook XML V4.1.2
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-pub.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-grk1.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/dbpoolx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-box.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/docbookx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-grk3.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amsn.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-num.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/dbcentx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-grk4.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/dbnotnx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-dia.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-grk2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/dbgenent.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/dbhierx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amsa.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amso.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-cyrl.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-tech.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amsc.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/soextblx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/calstblx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-lat1.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amsb.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-lat2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-amsr.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE/ent/iso-cyr2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.1.2-$VERSION-$RELEASE" $CATALOG
+
+	# DocBook XML V4.2
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-pub.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-grk1.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/dbpoolx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-box.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/docbookx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-grk3.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amsn.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-num.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/dbcentx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-grk4.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/dbnotnx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-dia.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-grk2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/dbgenent.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/dbhierx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amsa.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amso.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-cyrl.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-tech.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amsc.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/soextblx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/calstblx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-lat1.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amsb.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-lat2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-amsr.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE/ent/iso-cyr2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.2-$VERSION-$RELEASE" $CATALOG
+
+	# DocBook XML V4.3
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-pub.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-grk1.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/dbpoolx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-box.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/docbookx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-grk3.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amsn.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-num.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/dbcentx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-grk4.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/dbnotnx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-dia.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-grk2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/dbgenent.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/dbhierx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amsa.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amso.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-cyrl.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-tech.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amsc.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/soextblx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/calstblx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-lat1.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amsb.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-lat2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-amsr.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE/ent/iso-cyr2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.3-$VERSION-$RELEASE" $CATALOG
+
+	# DocBook XML V4.4
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-pub.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-grk1.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/dbpoolx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-box.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/docbookx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-grk3.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amsn.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-num.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/dbcentx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-grk4.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/dbnotnx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-dia.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-grk2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/dbgenent.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/dbhierx.mod" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amsa.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amso.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-cyrl.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-tech.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amsc.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/soextblx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/calstblx.dtd" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-lat1.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amsb.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-lat2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-amsr.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE/ent/iso-cyr2.ent" $CATALOG
+	$XMLCAT --noout --del \
+		"xml-dtd-4.4-$VERSION-$RELEASE" $CATALOG
+fi

Modified: csw/mgar/pkg/docbook-dtds/trunk/files/Makefile
===================================================================
--- csw/mgar/pkg/docbook-dtds/trunk/files/Makefile	2008-12-08 14:22:03 UTC (rev 2475)
+++ csw/mgar/pkg/docbook-dtds/trunk/files/Makefile	2008-12-08 15:12:46 UTC (rev 2476)
@@ -1,11 +1,14 @@
 prefix = /opt/csw
+sysconfdir = $(prefix)/etc
 datadir = $(prefix)/share
 
+
 INSTALL = /opt/csw/bin/ginstall -c
 INSTALL_DATA = $(INSTALL) -m 0644
 INSTALL_DIR = $(INSTALL) -m 0755 -d
 
 docbookdir = $(datadir)/sgml/docbook
+docdir = $(datadir)/doc/docbookdtds
 
 SGML = $(wildcard *-sgml)
 XML = $(wildcard *-xml)
@@ -17,8 +20,34 @@
 
 all: build
 
-install: $(SGMLTARG) $(XMLTARG)
+install: $(SGMLTARG) $(XMLTARG) links docs
 
+links: $(SGMLTARG) $(XMLTARG)
+	@echo Installing links to most current SGML and XML catalogs
+	@( $(INSTALL_DIR) $(DESTDIR)/$(sysconfdir)/sgml; \
+		cd $(DESTDIR)/$(sysconfdir)/sgml; \
+		[ -h $(DESTDIR)/$(sysconfdir)/sgml/sgml-docbook.cat ] || \
+		ln -s sgml-docbook-4.4-$(GARVERSION)-$(PATCHLEVEL).cat \
+			$(DESTDIR)/$(sysconfdir)/sgml/sgml-docbook.cat; \
+		[ -h $(DESTDIR)/$(sysconfdir)/sgml/xml-docbook.cat ] || \
+		ln -s xml-docbook-4.4-$(GARVERSION)-$(PATCHLEVEL).cat \
+			$(DESTDIR)/$(sysconfdir)/sgml/xml-docbook.cat )
+
+docs:
+	@echo Installing docs
+	$(INSTALL_DIR) $(DESTDIR)/$(docdir)/
+	for d in *; do \
+		if [  "`echo $$d/*txt`" != "$$d/*txt" ]; then \
+			$(INSTALL_DIR) $(DESTDIR)/$(docdir)/$$d; \
+			$(INSTALL_DATA) $$d/*txt $(DESTDIR)/$(docdir)/$$d/; \
+		fi \
+	done
+	for x in 3 4; do \
+		dir=$(DESTDIR)/$(docdir)/$$x.1-sgml; \
+		[ -d $$dir ] || $(INSTALL_DIR) $$dir; \
+		$(INSTALL_DATA) $$x.1-sgml/ChangeLog $$dir/; \
+	done
+
 inst-%-sgml: DD=$(DESTDIR)/$(docbookdir)/sgml-dtd-$*$(GARVERSION)-$(PATCHLEVEL)
 inst-%-sgml:
 	@echo Installing $*-sgml


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list