# docbook-xml50/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. "docbook" and related build procedures are taken from LFS/BLFS with largely minor differences. One significant change is that "opensp", "openjade", and "docbook- utils" are omitted due to "openjade" being fragile and close to non- buildable. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.03 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM #--------------------------------------------------------------------- [settings] configure = none license = tbd proddir = none tmpsize = 4M #--------------------------------------------------------------------- [depends] # docbook-dsssl docbook-xml45 libxml2 sgml-common:strict unzip #--------------------------------------------------------------------- [build] ls /etc/xml/catalog || exit 1 #--------------------------------------------------------------------- XDOC_SCHEMA=/usr/share/xml/docbook/schema SHARE_RNG50=$XDOC_SCHEMA/rng/5.0 XSD50_CAT=$XDOC_SCHEMA/xsd/5.0/catalog.xml OASIS50_XSD_DIR=http://www.oasis-open.org/docbook/xml/5.0/xsd OASIS50_XSD_XML=$OASIS50_XSD_DIR/xml.xsd #--------------------------------------------------------------------- install -vdm755 $XDOC_SCHEMA/{dtd,rng,sch,xsd}/5.0 install -vm644 dtd/* $XDOC_SCHEMA/dtd/5.0 install -vm644 rng/* $SHARE_RNG50 install -vm644 sch/* $XDOC_SCHEMA/sch/5.0 install -vm644 xsd/* $XDOC_SCHEMA/xsd/5.0 #--------------------------------------------------------------------- if [ ! -e /etc/xml/docbook-5.0 ]; then xmlcatalog --noout --create /etc/xml/docbook-5.0 fi #--------------------------------------------------------------------- xmlcatalog --noout --add public \ "-//OASIS//DTD DocBook XML 5.0//EN" \ file://$XDOC_SCHEMA/dtd/5.0/docbook.dtd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add system \ http://www.oasis-open.org/docbook/xml/5.0/dtd/docbook.dtd \ file://$XDOC_SCHEMA/dtd/5.0/docbook.dtd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add system \ http://docbook.org/xml/5.0/dtd/docbook.dtd \ file://$XDOC_SCHEMA/dtd/5.0/docbook.dtd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng \ file://$SHARE_RNG50/docbook.rng \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/rng/docbook.rng \ file://$SHARE_RNG50/docbook.rng \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng \ file://$SHARE_RNG50/docbookxi.rng \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/rng/docbookxi.rng \ file://$SHARE_RNG50/docbookxi.rng \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://www.oasis-open.org/docbook/xml/5.0/rnc/docbook.rnc \ file://$SHARE_RNG50/docbook.rnc \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/rng/docbook.rnc \ file://$SHARE_RNG50/docbook.rnc \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://www.oasis-open.org/docbook/xml/5.0/rnc/docbookxi.rnc \ file://$SHARE_RNG50/docbookxi.rnc \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/rng/docbookxi.rnc \ file://$SHARE_RNG50/docbookxi.rnc \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ $OASIS50_XSD_DIR/docbook.xsd \ file://$XDOC_SCHEMA/xsd/5.0/docbook.xsd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/xsd/docbook.xsd \ file://$XDOC_SCHEMA/xsd/5.0/docbook.xsd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ $OASIS50_XSD_DIR/docbookxi.xsd \ file://$XDOC_SCHEMA/xsd/5.0/docbookxi.xsd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/xsd/docbookxi.xsd \ file://$XDOC_SCHEMA/xsd/5.0/docbookxi.xsd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ $OASIS50_XSD_DIR/xi.xsd \ file://$XDOC_SCHEMA/xsd/5.0/xi.xsd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/xsd/xi.xsd \ file://$XDOC_SCHEMA/xsd/5.0/xi.xsd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ $OASIS50_XSD_DIR/xlink.xsd \ file://$XDOC_SCHEMA/xsd/5.0/xlink.xsd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/xsd/xlink.xsd \ file://$XDOC_SCHEMA/xsd/5.0/xlink.xsd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ $OASIS50_XSD_XML \ file://$XDOC_SCHEMA/xsd/5.0/xml.xsd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/xsd/xml.xsd \ file://$XDOC_SCHEMA/xsd/5.0/xml.xsd \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://www.oasis-open.org/docbook/xml/5.0/sch/docbook.sch \ file://$XDOC_SCHEMA/sch/5.0/docbook.sch \ /etc/xml/docbook-5.0 xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/sch/docbook.sch \ file://$XDOC_SCHEMA/sch/5.0/docbook.sch \ /etc/xml/docbook-5.0 #--------------------------------------------------------------------- xmlcatalog --noout --create $XDOC_SCHEMA/dtd/5.0/catalog.xml xmlcatalog --noout --add public \ "-//OASIS//DTD DocBook XML 5.0//EN" \ docbook.dtd $XDOC_SCHEMA/dtd/5.0/catalog.xml xmlcatalog --noout --add system \ http://www.oasis-open.org/docbook/xml/5.0/dtd/docbook.dtd \ docbook.dtd $XDOC_SCHEMA/dtd/5.0/catalog.xml xmlcatalog --noout --create $SHARE_RNG50/catalog.xml xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/rng/docbook.rng \ docbook.rng $SHARE_RNG50/catalog.xml xmlcatalog --noout --add uri \ http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng \ docbook.rng $SHARE_RNG50/catalog.xml xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/rng/docbookxi.rng \ docbookxi.rng $SHARE_RNG50/catalog.xml xmlcatalog --noout --add uri \ http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng \ docbookxi.rng $SHARE_RNG50/catalog.xml xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/rng/docbook.rnc \ docbook.rnc $SHARE_RNG50/catalog.xml xmlcatalog --noout --add uri \ http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rnc \ docbook.rnc $SHARE_RNG50/catalog.xml xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/rng/docbookxi.rnc \ docbookxi.rnc $SHARE_RNG50/catalog.xml xmlcatalog --noout --add uri \ http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc \ docbookxi.rnc $SHARE_RNG50/catalog.xml xmlcatalog --noout --create $XDOC_SCHEMA/sch/5.0/catalog.xml xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/sch/docbook.sch \ docbook.sch $XDOC_SCHEMA/sch/5.0/catalog.xml xmlcatalog --noout --add uri \ http://www.oasis-open.org/docbook/xml/5.0/sch/docbook.sch \ docbook.sch $XDOC_SCHEMA/sch/5.0/catalog.xml xmlcatalog --noout --create $XSD50_CAT xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/xsd/docbook.xsd \ docbook.xsd $XSD50_CAT xmlcatalog --noout --add uri \ $OASIS50_XSD_DIR/docbook.xsd \ docbook.xsd $XSD50_CAT xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/xsd/docbookxi.xsd \ docbookxi.xsd $XSD50_CAT xmlcatalog --noout --add uri \ $OASIS50_XSD_DIR/docbookxi.xsd \ docbookxi.xsd $XSD50_CAT xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/xsd/xlink.xsd \ xlink.xsd $XSD50_CAT xmlcatalog --noout --add uri \ $OASIS50_XSD_DIR/xlink.xsd \ xlink.xsd $XSD50_CAT xmlcatalog --noout --add uri \ http://docbook.org/xml/5.0/xsd/xml.xsd \ xml.xsd $XSD50_CAT xmlcatalog --noout --add uri \ $OASIS50_XSD_XML xml.xsd $XSD50_CAT #--------------------------------------------------------------------- if [ ! -e /etc/xml/catalog ]; then xmlcatalog --noout --create /etc/xml/catalog fi #--------------------------------------------------------------------- xmlcatalog --noout --add delegatePublic \ "-//OASIS//DTD DocBook XML 5.0//EN" \ file://$XDOC_SCHEMA/dtd/5.0/catalog.xml \ /etc/xml/catalog xmlcatalog --noout --add delegateSystem \ http://docbook.org/xml/5.0/dtd/ \ file://$XDOC_SCHEMA/dtd/5.0/catalog.xml \ /etc/xml/catalog xmlcatalog --noout --add delegateURI \ http://docbook.org/xml/5.0/dtd/ \ file://$XDOC_SCHEMA/dtd/5.0/catalog.xml \ /etc/xml/catalog xmlcatalog --noout --add delegateURI \ http://docbook.org/xml/5.0/rng/ \ file://$SHARE_RNG50/catalog.xml \ /etc/xml/catalog xmlcatalog --noout --add delegateURI \ http://docbook.org/xml/5.0/sch/ \ file://$XDOC_SCHEMA/sch/5.0/catalog.xml \ /etc/xml/catalog xmlcatalog --noout --add delegateURI \ http://docbook.org/xml/5.0/xsd/ \ file://$XSD50_CAT \ /etc/xml/catalog #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = tbd url_home = tbd url_lfs = http://www.linuxfromscratch.org/blfs/view/svn/pst/\ docbook5.html url_archive = http://docs.oasis-open.org/docbook/xml/5.0/\ docbook-5.0.zip #--------------------------------------------------------------------- [history] 210226 Added package. Started with 5.0.