talimat 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. # Tanım: XML veri dosyalarının DocBook kural setine göre doğrulanması için bir doküman tipi tanımları
  2. # URL: http://www.docbook.org/
  3. # Paketçi: milisarge
  4. # Gerekler: libxml2 unzip
  5. # Grup: sistem
  6. isim=docbook-xml
  7. surum=4.5
  8. devir=1
  9. kaynak=(http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip
  10. http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip
  11. http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
  12. http://www.docbook.org/xml/4.2/docbook-xml-4.2.zip
  13. http://www.docbook.org/xml/4.1.2/docbkx412.zip)
  14. unpack_source() {
  15. # similarly-named versions first
  16. local DTDVERSION
  17. for DTDVERSION in 4.5 4.4 4.3 4.2; do
  18. install -d $SRC/$isim-$DTDVERSION
  19. unzip -q -d $SRC/$isim-$DTDVERSION $DERLEME_KAYNAKDIZIN/$isim-$DTDVERSION.zip
  20. done
  21. # now 4.1.2, named differently
  22. install -d $SRC/$isim-4.1.2
  23. unzip -q -d $SRC/$isim-4.1.2 $DERLEME_KAYNAKDIZIN/docbkx412.zip
  24. }
  25. derle() {
  26. # copy to proper locations
  27. for DTDVERSION in 4.5 4.4 4.3 4.2 4.1.2
  28. do
  29. install -d $PKG/usr/share/xml/docbook/xml-dtd-$DTDVERSION
  30. cp -a $SRC/$isim-$DTDVERSION/{ent,docbook.cat,*.dtd,*.mod} \
  31. $PKG/usr/share/xml/docbook/xml-dtd-$DTDVERSION/
  32. done
  33. find $PKG -type f \( -perm -g=r -o -perm -g=w \) -exec chmod -g=rw {} \+
  34. # create initial docbook-xml catalog
  35. install -d $PKG/etc/xml
  36. xmlcatalog --noout --create $PKG/etc/xml/$isim
  37. # add each version to the initial catalog
  38. #
  39. # 4.5
  40. xmlcatalog --noout --add "public" \
  41. "-//OASIS//DTD DocBook XML V4.5//EN" \
  42. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
  43. $PKG/etc/xml/$isim
  44. xmlcatalog --noout --add "public" \
  45. "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
  46. "http://www.oasis-open.org/docbook/xml/4.5/calstblx.dtd" \
  47. $PKG/etc/xml/$isim
  48. xmlcatalog --noout --add "public" \
  49. "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  50. "http://www.oasis-open.org/docbook/xml/4.5/soextblx.dtd" \
  51. $PKG/etc/xml/$isim
  52. xmlcatalog --noout --add "public" \
  53. "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
  54. "http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod" \
  55. $PKG/etc/xml/$isim
  56. xmlcatalog --noout --add "public" \
  57. "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
  58. "http://www.oasis-open.org/docbook/xml/4.5/dbhierx.mod" \
  59. $PKG/etc/xml/$isim
  60. xmlcatalog --noout --add "public" \
  61. "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
  62. "http://www.oasis-open.org/docbook/xml/4.5/htmltblx.mod" \
  63. $PKG/etc/xml/$isim
  64. xmlcatalog --noout --add "public" \
  65. "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
  66. "http://www.oasis-open.org/docbook/xml/4.5/dbnotx.mod" \
  67. $PKG/etc/xml/$isim
  68. xmlcatalog --noout --add "public" \
  69. "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
  70. "http://www.oasis-open.org/docbook/xml/4.5/dbcentx.mod" \
  71. $PKG/etc/xml/$isim
  72. xmlcatalog --noout --add "public" \
  73. "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
  74. "http://www.oasis-open.org/docbook/xml/4.5/dbgenent.mod" \
  75. $PKG/etc/xml/$isim
  76. xmlcatalog --noout --add "rewriteSystem" \
  77. "http://www.oasis-open.org/docbook/xml/4.5" \
  78. "file:///usr/share/xml/docbook/xml-dtd-4.5" \
  79. $PKG/etc/xml/$isim
  80. xmlcatalog --noout --add "rewriteURI" \
  81. "http://www.oasis-open.org/docbook/xml/4.5" \
  82. "file:///usr/share/xml/docbook/xml-dtd-4.5" \
  83. $PKG/etc/xml/$isim
  84. # 4.4
  85. xmlcatalog --noout --add "public" \
  86. "-//OASIS//DTD DocBook XML V4.4//EN" \
  87. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
  88. $PKG/etc/xml/$isim
  89. xmlcatalog --noout --add "public" \
  90. "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
  91. "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
  92. $PKG/etc/xml/$isim
  93. xmlcatalog --noout --add "public" \
  94. "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
  95. "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
  96. $PKG/etc/xml/$isim
  97. xmlcatalog --noout --add "public" \
  98. "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  99. "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
  100. $PKG/etc/xml/$isim
  101. xmlcatalog --noout --add "public" \
  102. "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
  103. "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
  104. $PKG/etc/xml/$isim
  105. xmlcatalog --noout --add "public" \
  106. "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
  107. "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
  108. $PKG/etc/xml/$isim
  109. xmlcatalog --noout --add "public" \
  110. "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
  111. "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
  112. $PKG/etc/xml/$isim
  113. xmlcatalog --noout --add "public" \
  114. "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
  115. "http://www.oasis-open.org/docbook/xml/4.4/dbnotx.mod" \
  116. $PKG/etc/xml/$isim
  117. xmlcatalog --noout --add "public" \
  118. "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
  119. "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
  120. $PKG/etc/xml/$isim
  121. xmlcatalog --noout --add "rewriteSystem" \
  122. "http://www.oasis-open.org/docbook/xml/4.4" \
  123. "file:///usr/share/xml/docbook/xml-dtd-4.4" \
  124. $PKG/etc/xml/$isim
  125. xmlcatalog --noout --add "rewriteURI" \
  126. "http://www.oasis-open.org/docbook/xml/4.4" \
  127. "file:///usr/share/xml/docbook/xml-dtd-4.4" \
  128. $PKG/etc/xml/$isim
  129. # 4.3
  130. xmlcatalog --noout --add "public" \
  131. "-//OASIS//DTD DocBook XML V4.3//EN" \
  132. "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
  133. $PKG/etc/xml/$isim
  134. xmlcatalog --noout --add "public" \
  135. "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
  136. "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
  137. $PKG/etc/xml/$isim
  138. xmlcatalog --noout --add "public" \
  139. "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  140. "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
  141. $PKG/etc/xml/$isim
  142. xmlcatalog --noout --add "public" \
  143. "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
  144. "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
  145. $PKG/etc/xml/$isim
  146. xmlcatalog --noout --add "public" \
  147. "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
  148. "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
  149. $PKG/etc/xml/$isim
  150. xmlcatalog --noout --add "public" \
  151. "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
  152. "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
  153. $PKG/etc/xml/$isim
  154. xmlcatalog --noout --add "public" \
  155. "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
  156. "http://www.oasis-open.org/docbook/xml/4.3/dbnotx.mod" \
  157. $PKG/etc/xml/$isim
  158. xmlcatalog --noout --add "public" \
  159. "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
  160. "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
  161. $PKG/etc/xml/$isim
  162. xmlcatalog --noout --add "rewriteSystem" \
  163. "http://www.oasis-open.org/docbook/xml/4.3" \
  164. "file:///usr/share/xml/docbook/xml-dtd-4.3" \
  165. $PKG/etc/xml/$isim
  166. xmlcatalog --noout --add "rewriteURI" \
  167. "http://www.oasis-open.org/docbook/xml/4.3" \
  168. "file:///usr/share/xml/docbook/xml-dtd-4.3" \
  169. $PKG/etc/xml/$isim
  170. # 4.2
  171. xmlcatalog --noout --add "public" \
  172. "-//OASIS/DTD DocBook XML V4.2//EN" \
  173. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
  174. $PKG/etc/xml/$isim
  175. xmlcatalog --noout --add "public" \
  176. "-//OASIS/DTD DocBook CALS Table Model V4.2//EN" \
  177. "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
  178. $PKG/etc/xml/$isim
  179. xmlcatalog --noout --add "public" \
  180. "-//OASIS/DTD XML Exchange Table Model 19990315//EN" \
  181. "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
  182. $PKG/etc/xml/$isim
  183. xmlcatalog --noout --add "public" \
  184. "-//OASIS/ELEMENTS DocBook Information Pool V4.2//EN" \
  185. "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
  186. $PKG/etc/xml/$isim
  187. xmlcatalog --noout --add "public" \
  188. "-//OASIS/ELEMENTS DocBook Document Hierarchy V4.2//EN" \
  189. "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
  190. $PKG/etc/xml/$isim
  191. xmlcatalog --noout --add "public" \
  192. "-//OASIS/ENTITIES DocBook Additional General Entities V4.2//EN" \
  193. "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
  194. $PKG/etc/xml/$isim
  195. xmlcatalog --noout --add "public" \
  196. "-//OASIS/ENTITIES DocBook Notations V4.2//EN" \
  197. "http://www.oasis-open.org/docbook/xml/4.2/dbnotx.mod" \
  198. $PKG/etc/xml/$isim
  199. xmlcatalog --noout --add "public" \
  200. "-//OASIS/ENTITIES DocBook Character Entities V4.2//EN" \
  201. "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
  202. $PKG/etc/xml/$isim
  203. xmlcatalog --noout --add "rewriteSystem" \
  204. "http://www.oasis-open.org/docbook/xml/4.2" \
  205. "file:///usr/share/xml/docbook/xml-dtd-4.2" \
  206. $PKG/etc/xml/$isim
  207. xmlcatalog --noout --add "rewriteURI" \
  208. "http://www.oasis-open.org/docbook/xml/4.2" \
  209. "file:///usr/share/xml/docbook/xml-dtd-4.2" \
  210. $PKG/etc/xml/$isim
  211. # 4.1.2
  212. xmlcatalog --noout --add "public" \
  213. "-//OASIS//DTD DocBook XML V4.1.2//EN" \
  214. "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
  215. $PKG/etc/xml/$isim
  216. xmlcatalog --noout --add "public" \
  217. "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
  218. "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
  219. $PKG/etc/xml/$isim
  220. xmlcatalog --noout --add "public" \
  221. "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  222. "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
  223. $PKG/etc/xml/$isim
  224. xmlcatalog --noout --add "public" \
  225. "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
  226. "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
  227. $PKG/etc/xml/$isim
  228. xmlcatalog --noout --add "public" \
  229. "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
  230. "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
  231. $PKG/etc/xml/$isim
  232. xmlcatalog --noout --add "public" \
  233. "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
  234. "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
  235. $PKG/etc/xml/$isim
  236. xmlcatalog --noout --add "public" \
  237. "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
  238. "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotx.mod" \
  239. $PKG/etc/xml/$isim
  240. xmlcatalog --noout --add "public" \
  241. "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
  242. "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
  243. $PKG/etc/xml/$isim
  244. xmlcatalog --noout --add "rewriteSystem" \
  245. "http://www.oasis-open.org/docbook/xml/4.1.2" \
  246. "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
  247. $PKG/etc/xml/$isim
  248. xmlcatalog --noout --add "rewriteURI" \
  249. "http://www.oasis-open.org/docbook/xml/4.1.2" \
  250. "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
  251. $PKG/etc/xml/$isim
  252. rm $PKG/usr/share/xml/docbook/xml-dtd-4.{4,5}/ent/README
  253. }