Paludis makes use of scripts called 'fetchers' to do most downloading. Fetchers can be added for additional protocols
(for example, if you need to use a third party ebuild where upstream distributes its sources via Gopher), and built-in
fetchers can be replaced (for example, if you want to use something other than
wget to fetch via http).
Paludis ships with the following fetcher protocols:
User Defined Fetchers
To write your own fetcher for protocol
proto, create an executable script named
do prefix is essential). Fetchers may be located in any of the following directories:
confdiris the directory in which
use.confet al. reside.
DATADIR/paludis/fetchers/. On most systems,
LIBEXECDIR/paludis/fetchers/. On most systems,
Paludis places its own fetchers in
LIBEXECDIR/fetchers/doproto. This directory is
not for end user use.
A fetcher is called with two parameters, the source URI and the destination filename. It indicates success or failure via its exit status.
For examples, consult the built-in fetchers, which can be found in