phpBB

Development Wiki

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

From phpBB Development Wiki

(Files: or something)
(Files: I think this is better)
Line 51: Line 51:
 
<xhtml:p>Sample <xhtml:b>description</xhtml:b></xhtml:p>
 
<xhtml:p>Sample <xhtml:b>description</xhtml:b></xhtml:p>
 
</description>
 
</description>
<version>
 
<major>4</major>
 
<minor />
 
</version>
 
 
<idx:index>
 
<idx:index>
 
<idx:directory>
 
<idx:directory>
<idx:name>4.0</idx:name>
+
<idx:name>4.x</idx:name>
<version>
+
<idx:version>
<minor>0</minor>
+
<idx:major>4</idx:major>
</version>
+
</idx:version>
 
<idx:checksum algorithm="sha256">{hash}</idx:checksum>
 
<idx:checksum algorithm="sha256">{hash}</idx:checksum>
 
</idx:directory>
 
</idx:directory>
Line 70: Line 66:
 
<pre><index>
 
<pre><index>
 
<directory>
 
<directory>
<name>{directory_name}</name>
+
<name>4.0</name>
 +
<version>
 +
<minor>0</minor>
 +
<version>
 
<checksum algorithm="sha256">{hash}</checksum>
 
<checksum algorithm="sha256">{hash}</checksum>
 
<checksum algorithm="sha512">{hash}</checksum>
 
<checksum algorithm="sha512">{hash}</checksum>
 
</directory>
 
</directory>
 
</index></pre>
 
</index></pre>

Revision as of 01:24, 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.

  • /
    • repository.xml
    • repository.xml.signature
    • indexes/
      • index.xml
      • org/
        • index.xml
        • cs278/
          • index.xml
          • chris/
            • index.xml
            • packages.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>
	<idx:index>
		<idx:directory>
			<idx:name>4.x</idx:name>
			<idx:version>
				<idx:major>4</idx:major>
			</idx:version>
			<idx:checksum algorithm="sha256">{hash}</idx:checksum>
		</idx:directory>
	</idx:index>
</repository>

index.xml

Something like:

<index>
	<directory>
		<name>4.0</name>
		<version>
			<minor>0</minor>
		<version>
		<checksum algorithm="sha256">{hash}</checksum>
		<checksum algorithm="sha512">{hash}</checksum>
	</directory>
</index>