package.dtd 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!--
  2. $Id: package.dtd,v 1.35 2004/01/25 23:36:28 pajoye Exp $
  3. This is the PEAR package description, version 1.0.
  4. It should be used with the informal public identifier:
  5. "-//PHP Group//DTD PEAR Package 1.0//EN//XML"
  6. Copyright (c) 1997-2004 The PHP Group
  7. This source file is subject to version 3.0 of the PHP license,
  8. that is bundled with this package in the file LICENSE, and is
  9. available at through the world-wide-web at
  10. http://www.php.net/license/3_0.txt.
  11. If you did not receive a copy of the PHP license and are unable to
  12. obtain it through the world-wide-web, please send a note to
  13. license@php.net so we can mail you a copy immediately.
  14. Authors:
  15. Stig S. Bakken <ssb@php.net>
  16. -->
  17. <!ELEMENT package (name|summary|description|license|maintainers|release|changelog)+>
  18. <!ATTLIST package type (source|binary|empty) "empty"
  19. version CDATA #REQUIRED>
  20. <!ELEMENT name (#PCDATA)>
  21. <!ELEMENT summary (#PCDATA)>
  22. <!ELEMENT description (#PCDATA)>
  23. <!ELEMENT license (#PCDATA)>
  24. <!ELEMENT maintainers (maintainer)+>
  25. <!ELEMENT maintainer (user|role|name|email)+>
  26. <!ELEMENT user (#PCDATA)>
  27. <!ELEMENT role (#PCDATA)>
  28. <!ELEMENT email (#PCDATA)>
  29. <!ELEMENT changelog (release)+>
  30. <!ELEMENT release (version|license|state|date|notes|filelist|deps|provides|script|configureoptions)+>
  31. <!ELEMENT version (#PCDATA)>
  32. <!ELEMENT state (#PCDATA)>
  33. <!ELEMENT date (#PCDATA)>
  34. <!ELEMENT notes (#PCDATA)>
  35. <!ELEMENT filelist (dir|file)+>
  36. <!ELEMENT dir (dir|file)+>
  37. <!ATTLIST dir name CDATA #REQUIRED
  38. baseinstalldir CDATA #IMPLIED>
  39. <!ELEMENT file (replace*)>
  40. <!ATTLIST file role (php|ext|src|test|doc|data|script) 'php'
  41. debug (na|on|off) 'na'
  42. zts (na|on|off) 'na'
  43. phpapi NUMBER #IMPLIED
  44. zendapi NUMBER #IMPLIED
  45. format CDATA #IMPLIED
  46. baseinstalldir CDATA #IMPLIED
  47. platform CDATA #IMPLIED
  48. md5sum CDATA #IMPLIED
  49. name CDATA #REQUIRED
  50. install-as CDATA #IMPLIED>
  51. <!ELEMENT replace EMPTY>
  52. <!ATTLIST replace from CDATA #REQUIRED
  53. to CDATA #REQUIRED
  54. type CDATA #REQUIRED>
  55. <!ELEMENT deps (dep)+>
  56. <!ELEMENT dep (#PCDATA)>
  57. <!ATTLIST dep
  58. optional (yes|no) 'no'
  59. type (pkg|ext|php|prog|ldlib|rtlib|os|websrv|sapi|zend) #REQUIRED
  60. rel (has|eq|lt|le|gt|ge) 'has'
  61. version CDATA #IMPLIED>
  62. <!ELEMENT provides (#PCDATA)>
  63. <!ATTLIST provides
  64. type (ext|prog|class|function|feature|api) #REQUIRED
  65. name CDATA #REQUIRED
  66. extends CDATA #IMPLIED>
  67. <!ELEMENT script (#PCDATA)>
  68. <!ATTLIST script
  69. phase (pre-install |post-install |
  70. pre-uninstall|post-uninstall|
  71. pre-build |post-build |
  72. pre-setup |post-setup ) #REQUIRED>
  73. <!ELEMENT configureoptions (configureoption*)>
  74. <!ELEMENT configureoption EMPTY>
  75. <!ATTLIST configureoption
  76. name CDATA #REQUIRED
  77. default CDATA #IMPLIED
  78. prompt CDATA #REQUIRED>