repository_root

Name

repository_root  --  set the global repository root URL

Synopsis

repository_root {url}

Description

repository_root sets the global root URL that will be used when downloading files and packages using fetch(3) and friends.

Recognised URLs must begin with "http://" (HTTP), "https://" (HTTPS), "ftp://" (FTP), ":pserver:" (CVS via pserver) or ":ext:" (CVS via SSH).

The global repository root can be overridden by all functions that downloads files and packages by giving the root=url option to those functions.

Caveats

The wget application must be installed when downloading via HTTP, HTTPS or FTP.

Examples

Check out files and packages from CVS by default:

    repository_root :ext:mycvs:/my/cvs/root
    

Download files and packages via HTTP by default:

    repository_root http://myhost/my/root/directory
    

See Also

fetch(3)