summaryrefslogtreecommitdiffstats
path: root/extra/docbook-xml
diff options
context:
space:
mode:
Diffstat (limited to 'extra/docbook-xml')
-rw-r--r--extra/docbook-xml/.footprint38
-rw-r--r--extra/docbook-xml/.md5sum1
-rw-r--r--extra/docbook-xml/Pkgfile22
-rw-r--r--extra/docbook-xml/post-install96
4 files changed, 157 insertions, 0 deletions
diff --git a/extra/docbook-xml/.footprint b/extra/docbook-xml/.footprint
new file mode 100644
index 000000000..b52101de7
--- /dev/null
+++ b/extra/docbook-xml/.footprint
@@ -0,0 +1,38 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/xml/
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/xml/
+drwxr-xr-x root/root usr/share/xml/docbook/
+drwxr-xr-x root/root usr/share/xml/docbook/xml-dtd-4.5/
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/docbook.cat
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/docbookx.dtd
+drwxr-xr-x root/root usr/share/xml/docbook/xml-dtd-4.5/ent/
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/README
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isoamsa.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isoamsb.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isoamsc.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isoamsn.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isoamso.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isoamsr.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isobox.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isocyr1.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isocyr2.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isodia.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isogrk1.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isogrk2.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isogrk3.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isogrk4.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isolat1.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isolat2.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isonum.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isopub.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/ent/isotech.ent
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod
+-rw-r--r-- root/root usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd
diff --git a/extra/docbook-xml/.md5sum b/extra/docbook-xml/.md5sum
new file mode 100644
index 000000000..1f627838d
--- /dev/null
+++ b/extra/docbook-xml/.md5sum
@@ -0,0 +1 @@
+03083e288e87a7e829e437358da7ef9e docbook-xml-4.5.zip
diff --git a/extra/docbook-xml/Pkgfile b/extra/docbook-xml/Pkgfile
new file mode 100644
index 000000000..1f46f5583
--- /dev/null
+++ b/extra/docbook-xml/Pkgfile
@@ -0,0 +1,22 @@
+# Description: Contient des définitions type pour les documents afin de vérifier les fichiers au format xml
+# URL: http://www.docbook.org
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: unzip, libxml2
+
+name=docbook-xml
+version=4.5
+release=2
+source=(http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip)
+
+build() {
+ install -v -d -m755 $PKG/usr/share/xml/docbook/xml-dtd-4.5
+ install -v -d -m755 $PKG/etc/xml
+ chown -R root:root .
+ cp -v -af docbook.cat *.dtd ent/ *.mod \
+ $PKG/usr/share/xml/docbook/xml-dtd-4.5
+
+
+}
+
+
diff --git a/extra/docbook-xml/post-install b/extra/docbook-xml/post-install
new file mode 100644
index 000000000..cd243e3fe
--- /dev/null
+++ b/extra/docbook-xml/post-install
@@ -0,0 +1,96 @@
+#!/bin/sh
+
+# create XML catalog with initial docbook-xml catalog
+if [ ! -e /etc/xml/catalog ]
+then
+ xmlcatalog --noout --create /etc/xml/docbook
+fi
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V4.5//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
+ /etc/xml/docbook &&
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
+ /etc/xml/docbook &&
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
+ /etc/xml/docbook &&
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
+ /etc/xml/docbook &&
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
+ /etc/xml/docbook &&
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
+ /etc/xml/docbook &&
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
+ /etc/xml/docbook &&
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
+ /etc/xml/docbook &&
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
+ /etc/xml/docbook &&
+xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.5" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5" \
+ /etc/xml/docbook &&
+xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.5" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5" \
+ /etc/xml/docbook
+
+if [ ! -e /etc/xml/catalog ]; then
+ xmlcatalog --noout --create /etc/xml/catalog
+fi &&
+xmlcatalog --noout --add "delegatePublic" \
+ "-//OASIS//ENTITIES DocBook XML" \
+ "file:///etc/xml/docbook" \
+ /etc/xml/catalog &&
+xmlcatalog --noout --add "delegatePublic" \
+ "-//OASIS//DTD DocBook XML" \
+ "file:///etc/xml/docbook" \
+ /etc/xml/catalog &&
+xmlcatalog --noout --add "delegateSystem" \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook" \
+ /etc/xml/catalog &&
+xmlcatalog --noout --add "delegateURI" \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook" \
+ /etc/xml/catalog
+
+for DTDVERSION in 4.1.2 4.2 4.3 4.4
+do
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
+ "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
+ /etc/xml/docbook
+ xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5" \
+ /etc/xml/docbook
+ xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5" \
+ /etc/xml/docbook
+ xmlcatalog --noout --add "delegateSystem" \
+ "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
+ "file:///etc/xml/docbook" \
+ /etc/xml/catalog
+ xmlcatalog --noout --add "delegateURI" \
+ "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
+ "file:///etc/xml/docbook" \
+ /etc/xml/catalog
+done
+