phpBB

Development Wiki

Difference between revisions of "User:Toonarmy/phpBB4/Pkg"

From phpBB Development Wiki

(Files: or something)
(product.xml: Remove)
 
(5 intermediate revisions by the same user not shown)
Line 22: Line 22:
  
 
All file paths inside the repository indexes should be either canonical relative paths from the root directory or absolute URIs. The preferred format is for relative paths however absolute URIs can be used to distribute media across mirrors.
 
All file paths inside the repository indexes should be either canonical relative paths from the root directory or absolute URIs. The preferred format is for relative paths however absolute URIs can be used to distribute media across mirrors.
 +
 +
This repository exports the following package namespaces:
 +
* com.phpbb
 +
** release
 +
** extensions
 +
*** validated
 +
*** development
 +
** styles
 +
*** validated
 +
*** development
 +
* org.cs278.chris
 +
 +
  
 
* /
 
* /
 
** repository.xml
 
** repository.xml
 
** repository.xml.signature
 
** repository.xml.signature
** indexes/
+
** phpbb/
*** index.xml
+
*** 4/
*** org/
+
**** 0/
**** index.xml
+
**** cs278/
+
 
***** index.xml
 
***** index.xml
***** chris/
+
***** org.cs278.chris/
 
****** index.xml
 
****** index.xml
****** packages.xml
+
***** com.phpbb/
 +
****** index.xml
 +
****** release/
 +
******* index.xml
 +
****** extensions/
 +
******* index.xml
 +
******* validated/
 +
******** index.xml
 +
******* development/
 +
******** index.xml
 +
****** styles/
 +
******* index.xml
 +
******* validated/
 +
******** index.xml
 +
******* development/
 +
******** index.xml
 
** pool/
 
** pool/
 
*** org/
 
*** org/
Line 51: Line 77:
 
<xhtml:p>Sample <xhtml:b>description</xhtml:b></xhtml:p>
 
<xhtml:p>Sample <xhtml:b>description</xhtml:b></xhtml:p>
 
</description>
 
</description>
<version>
+
<contact>
<major>4</major>
+
<name>Chris Smith</name>
<minor />
+
<email>toonarmy@phpbb.com</email>
</version>
+
</contact>
<idx:index>
+
<products>
<idx:directory>
+
<product path="phpbb/">
<idx:name>4.0</idx:name>
+
<name>phpbb</name>
<version>
+
<versions>
<minor>0</minor>
+
<version path="4/0/">
</version>
+
<major>4</major>
<idx:checksum algorithm="sha256">{hash}</idx:checksum>
+
<minor>0</minor>
</idx:directory>
+
</version>
</idx:index>
+
<version path="4/1/">
 +
<major>4</major>
 +
<minor>1</minor>
 +
</version>
 +
</versions>
 +
</product>
 +
</products>
 
</repository></pre>
 
</repository></pre>
  
 
==== index.xml ====
 
==== index.xml ====
 
Something like:
 
Something like:
<pre><index>
+
<pre><index namespace="com.phpbb">
<directory>
+
<namespaces>
<name>{directory_name}</name>
+
<namespace>
<checksum algorithm="sha256">{hash}</checksum>
+
<name>release<name>
<checksum algorithm="sha512">{hash}</checksum>
+
<checksum algorithm="sha256">{hash}</checksum>
</directory>
+
</namespace>
 +
<namespace>
 +
<name>extensions</name>
 +
<checksum algorithm="sha256">{hash}</checksum>
 +
</namespace>
 +
<namespace>
 +
<name>styles</name>
 +
<checksum algorithm="sha256">{hash}</checksum>
 +
</namespace>
 +
</namespaces>
 +
<packages />
 
</index></pre>
 
</index></pre>
 +
 +
==== packages.xml ====
 +
<pre><packages>
 +
<package>
 +
<name>package</name>
 +
<version>1.0.0</version>
 +
<checksum algorithm="sha1">{hash}</checksum>
 +
</package>
 +
</packages></pre>

Latest revision as of 11:51, 24 December 2009

Repository

URI

scheme://((username)(:password)@)(host)/path/

Where:

scheme
Protocol scheme
Examples: http, https, ftp, ftps, file, ssh
username
Username for authentication (optional)
password
Password for authentication (optional)
host
Hostname for network accessed schemes (optional)
path
Path to the repository root

This should cover most cases but as far as the repository client library is concerned the scheme is the only standard component the schemes driver is responsible for interpreting the remainder of the URI.

Structure

All file paths inside the repository indexes should be either canonical relative paths from the root directory or absolute URIs. The preferred format is for relative paths however absolute URIs can be used to distribute media across mirrors.

This repository exports the following package namespaces:

  • com.phpbb
    • release
    • extensions
      • validated
      • development
    • styles
      • validated
      • development
  • org.cs278.chris


  • /
    • repository.xml
    • repository.xml.signature
    • phpbb/
      • 4/
        • 0/
          • index.xml
          • org.cs278.chris/
            • index.xml
          • com.phpbb/
            • index.xml
            • release/
              • index.xml
            • extensions/
              • index.xml
              • validated/
                • index.xml
              • development/
                • index.xml
            • styles/
              • index.xml
              • validated/
                • index.xml
              • development/
                • index.xml
    • pool/
      • org/
        • cs278/
          • chris/
            • package/
              • package-1.0.0.xml
              • package-1.0.0.tar.gz

Files

repository.xml

<repository>
	<name>Chris' Sample Repository</name>
	<description>
		<xhtml:p>Sample <xhtml:b>description</xhtml:b></xhtml:p>
	</description>
	<contact>
		<name>Chris Smith</name>
		<email>toonarmy@phpbb.com</email>
	</contact>
	<products>
		<product path="phpbb/">
			<name>phpbb</name>
			<versions>
				<version path="4/0/">
					<major>4</major>
					<minor>0</minor>
				</version>
				<version path="4/1/">
					<major>4</major>
					<minor>1</minor>
				</version>
			</versions>
		</product>
	</products>
</repository>

index.xml

Something like:

<index namespace="com.phpbb">
	<namespaces>
		<namespace>
			<name>release<name>
			<checksum algorithm="sha256">{hash}</checksum>
		</namespace>
		<namespace>
			<name>extensions</name>
			<checksum algorithm="sha256">{hash}</checksum>
		</namespace>
		<namespace>
			<name>styles</name>
			<checksum algorithm="sha256">{hash}</checksum>
		</namespace>
	</namespaces>
	<packages />
</index>

packages.xml

<packages>
	<package>
		<name>package</name>
		<version>1.0.0</version>
		<checksum algorithm="sha1">{hash}</checksum>
	</package>
</packages>