wok-6.x annotate docbook-xml/receipt @ rev 25150

updated proftpd-tls (1.3.6d -> 1.3.7d)
author Hans-G?nter Theisgen
date Wed Jun 29 17:07:59 2022 +0100 (2022-06-29)
parents f51604223163
children 73f36875e5a7
rev   line source
slaxemulator@6983 1 # SliTaz package receipt.
slaxemulator@6983 2
slaxemulator@6983 3 PACKAGE="docbook-xml"
slaxemulator@7625 4 VERSION="4.5"
slaxemulator@6983 5 CATEGORY="development"
slaxemulator@9352 6 SHORT_DESC="A widely used XML scheme for writing documentation and help. (version 4.5)"
slaxemulator@9352 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15579 8 LICENSE="MIT"
al@18741 9 TARBALL="$PACKAGE-$VERSION.zip"
pascal@22853 10 WEB_SITE="https://docbook.org/"
slaxemulator@8479 11 WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL"
slaxemulator@6983 12
pascal@15579 13 DEPENDS="libxml2-tools libxml2 docbook-xml-412 docbook-xml-42 docbook-xml-43 docbook-xml-44"
pascal@15579 14
pascal@24694 15 # What is the latest version available today?
pascal@24694 16 current_version()
pascal@24694 17 {
pascal@24694 18 wget -O - http://www.docbook.org/xml/ 2>/dev/null | \
pascal@24694 19 sed 's|<li>|&\n|g' | sed '/>4\.5/!d;/[0-9][Cb]/d;s|.*">||;s|/<.*||' | sort -Vr | sed q
pascal@24694 20 }
pascal@24694 21
slaxemulator@9352 22 # Rules to configure and make the package.
slaxemulator@9352 23 compile_rules()
slaxemulator@9352 24 {
al@18741 25 mkdir -p $DESTDIR/usr/share/xml/docbook/xml-dtd-$VERSION
slaxemulator@9352 26 cp -dRf docbook.cat *.dtd ent/ *.mod \
al@18741 27 $DESTDIR/usr/share/xml/docbook/xml-dtd-$VERSION
slaxemulator@9352 28 }
slaxemulator@9352 29
slaxemulator@6983 30 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6983 31 genpkg_rules()
slaxemulator@6983 32 {
slaxemulator@9352 33 mkdir -p $fs
pascal@15579 34 cp -a $install/usr $fs
slaxemulator@6983 35 }
slaxemulator@7625 36
slaxemulator@6983 37 post_install()
slaxemulator@6983 38 {
pascal@18730 39 [ -d "$1/etc/xml" ] || mkdir -p "$1/etc/xml"
pascal@18730 40 if [ -f "$1/etc/xml/docbook-xml" ]; then
pascal@18730 41 chroot "$1/" xmlcatalog --noout /etc/xml/docbook-xml
slaxemulator@9352 42 else
pascal@18730 43 chroot "$1/" xmlcatalog --noout --create /etc/xml/docbook-xml
slaxemulator@9352 44 fi
slaxemulator@6983 45
pascal@18730 46 if [ "$1" ]; then
pascal@18730 47 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2> /dev/null
pascal@18730 48 cp /etc/resolv.conf "$1/etc/resolv.conf"
pascal@18730 49 fi
slaxemulator@9352 50
al@18741 51 # V4.1.2
al@18741 52 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 53 "-//OASIS//DTD DocBook XML V4.1.2//EN" \
al@18741 54 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
al@18741 55 "/etc//xml/docbook-xml"
al@18741 56 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 57 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
al@18741 58 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
al@18741 59 "/etc/xml/docbook-xml"
al@18741 60 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 61 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
al@18741 62 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
al@18741 63 "/etc/xml/docbook-xml"
al@18741 64 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 65 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
al@18741 66 "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
al@18741 67 "/etc/xml/docbook-xml"
al@18741 68 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 69 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
al@18741 70 "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
al@18741 71 "/etc/xml/docbook-xml"
al@18741 72 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 73 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
al@18741 74 "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
al@18741 75 "/etc/xml/docbook-xml"
al@18741 76 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 77 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
al@18741 78 "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
al@18741 79 "/etc/xml/docbook-xml"
al@18741 80 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 81 "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
al@18741 82 "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod" \
al@18741 83 "/etc/xml/docbook-xml"
al@18741 84 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 85 "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
al@18741 86 "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
al@18741 87 "/etc/xml/docbook-xml"
al@18741 88 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
al@18741 89 "http://www.oasis-open.org/docbook/xml/4.1.2" \
al@18741 90 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
al@18741 91 "/etc/xml/docbook-xml"
al@18741 92 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
al@18741 93 "http://www.oasis-open.org/docbook/xml/4.1.2" \
al@18741 94 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
al@18741 95 "/etc/xml/docbook-xml"
slaxemulator@9352 96
al@18741 97 # V4.2
al@18741 98 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 99 "-//OASIS//DTD DocBook XML V4.2//EN" \
al@18741 100 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
al@18741 101 "/etc/xml/docbook-xml"
al@18741 102 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 103 "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" \
al@18741 104 "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
al@18741 105 "/etc/xml/docbook-xml"
al@18741 106 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 107 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
al@18741 108 "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
al@18741 109 "/etc/xml/docbook-xml"
al@18741 110 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 111 "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" \
al@18741 112 "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
al@18741 113 "/etc/xml/docbook-xml"
al@18741 114 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 115 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" \
al@18741 116 "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
al@18741 117 "/etc/xml/docbook-xml"
al@18741 118 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 119 "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" \
al@18741 120 "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
al@18741 121 "/etc/xml/docbook-xml"
al@18741 122 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 123 "-//OASIS//ENTITIES DocBook Notations V4.2//EN" \
al@18741 124 "http://www.oasis-open.org/docbook/xml/4.2/dbnotnx.mod" \
al@18741 125 "/etc/xml/docbook-xml"
al@18741 126 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 127 "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" \
al@18741 128 "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
al@18741 129 "/etc/xml/docbook-xml"
al@18741 130 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
al@18741 131 "http://www.oasis-open.org/docbook/xml/4.2" \
al@18741 132 "file:///usr/share/xml/docbook/xml-dtd-4.2" \
al@18741 133 "/etc/xml/docbook-xml"
al@18741 134 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
al@18741 135 "http://www.oasis-open.org/docbook/xml/4.2" \
al@18741 136 "file:///usr/share/xml/docbook/xml-dtd-4.2" \
al@18741 137 "/etc/xml/docbook-xml"
slaxemulator@9352 138
al@18741 139 # V4.3
al@18741 140 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 141 "-//OASIS//DTD DocBook XML V4.3//EN" \
al@18741 142 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
al@18741 143 "/etc/xml/docbook-xml"
al@18741 144 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 145 "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
al@18741 146 "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
al@18741 147 "/etc/xml/docbook-xml"
al@18741 148 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 149 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
al@18741 150 "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
al@18741 151 "/etc/xml/docbook-xml"
al@18741 152 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 153 "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
al@18741 154 "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
al@18741 155 "/etc/xml/docbook-xml"
al@18741 156 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 157 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
al@18741 158 "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
al@18741 159 "/etc/xml/docbook-xml"
al@18741 160 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 161 "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
al@18741 162 "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
al@18741 163 "/etc/xml/docbook-xml"
al@18741 164 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 165 "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
al@18741 166 "http://www.oasis-open.org/docbook/xml/4.3/dbnotnx.mod" \
al@18741 167 "/etc/xml/docbook-xml"
al@18741 168 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 169 "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
al@18741 170 "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
al@18741 171 "/etc/xml/docbook-xml"
al@18741 172 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
al@18741 173 "http://www.oasis-open.org/docbook/xml/4.3" \
al@18741 174 "file:///usr/share/xml/docbook/xml-dtd-4.3" \
al@18741 175 "/etc/xml/docbook-xml"
al@18741 176 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
al@18741 177 "http://www.oasis-open.org/docbook/xml/4.3" \
al@18741 178 "file:///usr/share/xml/docbook/xml-dtd-4.3" \
al@18741 179 "/etc/xml/docbook-xml"
slaxemulator@9352 180
al@18741 181 # V4.4
al@18741 182 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 183 "-//OASIS//DTD DocBook XML V4.4//EN" \
al@18741 184 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
al@18741 185 "/etc/xml/docbook-xml"
al@18741 186 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 187 "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
al@18741 188 "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
al@18741 189 "/etc/xml/docbook-xml"
al@18741 190 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 191 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
al@18741 192 "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
al@18741 193 "/etc/xml/docbook-xml"
al@18741 194 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 195 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
al@18741 196 "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
al@18741 197 "/etc/xml/docbook-xml"
al@18741 198 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 199 "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
al@18741 200 "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
al@18741 201 "/etc/xml/docbook-xml"
al@18741 202 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 203 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
al@18741 204 "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
al@18741 205 "/etc/xml/docbook-xml"
al@18741 206 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 207 "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
al@18741 208 "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
al@18741 209 "/etc/xml/docbook-xml"
al@18741 210 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 211 "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
al@18741 212 "http://www.oasis-open.org/docbook/xml/4.4/dbnotnx.mod" \
al@18741 213 "/etc/xml/docbook-xml"
al@18741 214 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 215 "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
al@18741 216 "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
al@18741 217 "/etc/xml/docbook-xml"
al@18741 218 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
al@18741 219 "http://www.oasis-open.org/docbook/xml/4.4" \
al@18741 220 "file:///usr/share/xml/docbook/xml-dtd-4.4" \
al@18741 221 "/etc/xml/docbook-xml"
al@18741 222 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
al@18741 223 "http://www.oasis-open.org/docbook/xml/4.4" \
al@18741 224 "file:///usr/share/xml/docbook/xml-dtd-4.4" \
al@18741 225 "/etc/xml/docbook-xml"
slaxemulator@9352 226
al@18741 227 # V4.5
al@18741 228 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 229 "-//OASIS//DTD DocBook XML V4.5//EN" \
al@18741 230 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
al@18741 231 "/etc/xml/docbook-xml"
al@18741 232 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 233 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
al@18741 234 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
al@18741 235 "/etc/xml/docbook-xml"
al@18741 236 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 237 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
al@18741 238 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
al@18741 239 "/etc/xml/docbook-xml"
al@18741 240 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 241 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
al@18741 242 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
al@18741 243 "/etc/xml/docbook-xml"
al@18741 244 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 245 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
al@18741 246 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
al@18741 247 "/etc/xml/docbook-xml"
al@18741 248 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 249 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
al@18741 250 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
al@18741 251 "/etc/xml/docbook-xml"
al@18741 252 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 253 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
al@18741 254 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
al@18741 255 "/etc/xml/docbook-xml"
al@18741 256 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 257 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
al@18741 258 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
al@18741 259 "/etc/xml/docbook-xml"
al@18741 260 chroot "$1/" xmlcatalog --noout --add "public" \
al@18741 261 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
al@18741 262 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
al@18741 263 "/etc/xml/docbook-xml"
al@18741 264 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
al@18741 265 "http://www.oasis-open.org/docbook/xml/4.5" \
al@18741 266 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
al@18741 267 "/etc/xml/docbook-xml"
al@18741 268 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
al@18741 269 "http://www.oasis-open.org/docbook/xml/4.5" \
al@18741 270 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
al@18741 271 "/etc/xml/docbook-xml"
al@18741 272
al@18741 273 if [ -f "$1/etc/xml/catalog" ]; then
al@18741 274 chroot "$1/" xmlcatalog --noout /etc/xml/catalog
al@18741 275 else
al@18741 276 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
al@18741 277 fi
al@18741 278
al@18741 279 chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
al@18741 280 "-//OASIS//ENTITIES DocBook XML" \
al@18741 281 "file:///etc/xml/docbook-xml" \
al@18741 282 "/etc/xml/catalog"
al@18741 283 chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
al@18741 284 "-//OASIS//DTD DocBook XML" \
al@18741 285 "file:///etc/xml/docbook-xml" \
al@18741 286 "/etc/xml/catalog"
al@18741 287 chroot "$1/" xmlcatalog --noout --add "delegateSystem" \
al@18741 288 "http://www.oasis-open.org/docbook/" \
al@18741 289 "file:///etc/xml/docbook-xml" \
al@18741 290 "/etc/xml/catalog"
al@18741 291 chroot "$1/" xmlcatalog --noout --add "delegateURI" \
al@18741 292 "http://www.oasis-open.org/docbook/" \
al@18741 293 "file:///etc/xml/docbook-xml" \
al@18741 294 "/etc/xml/catalog"
al@18741 295 if [ -n "$1" ]; then
pascal@18730 296 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
pascal@18730 297 fi
slaxemulator@6983 298 }
slaxemulator@6983 299
al@18741 300 post_remove()
slaxemulator@9352 301 {
pascal@18730 302 xmlcatalog --noout --del file:///etc/xml/docbook-xml "$1/etc/xml/catalog"
slaxemulator@9352 303 }