phpBB

Development Wiki

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

From phpBB Development Wiki

(Structure: Ooops)
(URI: Filename shall just be repository.xml)
Line 2: Line 2:
  
 
=== URI ===
 
=== URI ===
'''<var>scheme</var>://((<var>username</var>)(:<var>password</var>)@)(<var>host</var>)/<var>path</var>/<var>name</var>.xml'''
+
'''<var>scheme</var>://((<var>username</var>)(:<var>password</var>)@)(<var>host</var>)/<var>path</var>/'''
  
 
Where:
 
Where:
Line 16: Line 16:
 
; path
 
; path
 
: Path to the repository root
 
: Path to the repository root
; name
 
: Repository manifest file name
 
  
 
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.
 
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.

Revision as of 00:25, 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