# docbook-xml45/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.02 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM #--------------------------------------------------------------------- [settings] configure = none license = tbd proddir = none tmpsize = 1M unpack = none #--------------------------------------------------------------------- [depends] libxml2 sgml-common:strict unzip #--------------------------------------------------------------------- [build] BUILDDIR=/tmp/docbook-xml45 rm -fr $BUILDDIR mkdir $BUILDDIR cd $BUILDDIR unzip $PKGDIR_SPECIAL/docbook-xml-4.5.zip chown -R root.root . #--------------------------------------------------------------------- OASIS_HTTP_DOCX=http://www.oasis-open.org/docbook/xml ETC_XML_BOOK=/etc/xml/docbook ETC_XML_CAT=/etc/xml/catalog OASIS_ENT_DOCX="-//OASIS//ENTITIES DocBook XML" SHARE_XML_DTD45=/usr/share/xml/docbook/xml-dtd-4.5 FILE_BOOK_CAT="file://$ETC_XML_BOOK $ETC_XML_CAT" #--------------------------------------------------------------------- install -v -d -m755 $SHARE_XML_DTD45 install -v -d -m755 /etc/xml cp -v -af docbook.cat *.dtd ent/ *.mod $SHARE_XML_DTD45 #--------------------------------------------------------------------- if [ ! -e $ETC_XML_BOOK ]; then xmlcatalog --noout --create $ETC_XML_BOOK fi if [ ! -e $ETC_XML_CAT ]; then xmlcatalog --noout --create $ETC_XML_CAT fi #--------------------------------------------------------------------- xmlcatalog --noout --add public \ "-//OASIS//DTD DocBook XML V4.5//EN" \ $OASIS_HTTP_DOCX/4.5/docbookx.dtd $ETC_XML_BOOK xmlcatalog --noout --add public \ "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \ file://$SHARE_XML_DTD45/calstblx.dtd $ETC_XML_BOOK xmlcatalog --noout --add public \ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ file://$SHARE_XML_DTD45/soextblx.dtd $ETC_XML_BOOK xmlcatalog --noout --add public \ "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \ file://$SHARE_XML_DTD45/dbpoolx.mod $ETC_XML_BOOK xmlcatalog --noout --add public \ "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \ file://$SHARE_XML_DTD45/dbhierx.mod $ETC_XML_BOOK xmlcatalog --noout --add public \ "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \ file://$SHARE_XML_DTD45/htmltblx.mod $ETC_XML_BOOK xmlcatalog --noout --add public \ "$OASIS_ENT_DOCX Notations V4.5//EN" \ file://$SHARE_XML_DTD45/dbnotnx.mod $ETC_XML_BOOK xmlcatalog --noout --add public \ "$OASIS_ENT_DOCX Character Entities V4.5//EN" \ file://$SHARE_XML_DTD45/dbcentx.mod $ETC_XML_BOOK xmlcatalog --noout --add public \ "$OASIS_ENT_DOCX Additional General Entities V4.5//EN" \ file://$SHARE_XML_DTD45/dbgenent.mod $ETC_XML_BOOK xmlcatalog --noout --add rewriteSystem \ "$OASIS_HTTP_DOCX/4.5" \ file://$SHARE_XML_DTD45 $ETC_XML_BOOK xmlcatalog --noout --add rewriteURI \ "$OASIS_HTTP_DOCX/4.5" \ file://$SHARE_XML_DTD45 $ETC_XML_BOOK #--------------------------------------------------------------------- xmlcatalog --noout --add delegatePublic \ "$OASIS_ENT_DOCX" $FILE_BOOK_CAT xmlcatalog --noout --add delegatePublic \ "-//OASIS//DTD DocBook XML" $FILE_BOOK_CAT xmlcatalog --noout --add delegateSystem \ http://www.oasis-open.org/docbook/ $FILE_BOOK_CAT xmlcatalog --noout --add delegateURI \ http://www.oasis-open.org/docbook/ $FILE_BOOK_CAT #--------------------------------------------------------------------- for DTDVERSION in 4.1.2 4.2 4.3 4.4 do OASIS_DTDVER="$OASIS_HTTP_DOCX/$DTDVERSION" xmlcatalog --noout --add public \ "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \ "$OASIS_DTDVER/docbookx.dtd" $ETC_XML_BOOK xmlcatalog --noout --add rewriteSystem \ "$OASIS_DTDVER" \ file://$SHARE_XML_DTD45 $ETC_XML_BOOK xmlcatalog --noout --add rewriteURI \ "$OASIS_DTDVER" \ file://$SHARE_XML_DTD45 $ETC_XML_BOOK xmlcatalog --noout --add delegateSystem \ "$OASIS_DTDVER/" $FILE_BOOK_CAT xmlcatalog --noout --add delegateURI \ "$OASIS_DTDVER/" $FILE_BOOK_CAT done #--------------------------------------------------------------------- cd / rm -fr $BUILDDIR #--------------------------------------------------------------------- # 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/\ docbook.html url_archive = http://ftp.oregonstate.edu/pub/blfs/6.3/d/\ docbook-xml-4.5.zip #--------------------------------------------------------------------- [history] 210226 Added package. Started with 4.5.