The FreeBSD ports system employs "fetch", a single-threaded download utility, for fetching ports off various sources in the internet. "Prozilla" (/usr/ports/ftp/prozilla) is a nice, fast download accelerator with resume capability. Replace fetch with prozilla and voila, you can accelerate the download process. Read on..
Just follow these simple steps,
- Install prozilla if you haven't already.
$ cd /usr/ports/ftp/prozilla && make install clean
- Fire up your favorite editor and open "/etc/make.conf" (as root)
$ emacs /etc/make.conf
- Add the following lines to it -
FETCH_CMD= proz
FETCH_BEFORE_ARGS= -r -k=4
FETCH_AFTER_ARGS=
DISABLE_SIZE= yes
FETCH_BEFORE_ARGS are arguments to the FETCH_CMD placed before the file name and FETCH_AFTER_ARGS placed after the file name. You might want to change these arguments according to your needs. Note: DISABLE_SIZE= yes, disables the file size check. This is a work around to disable the command line arguments that the ports system adds to the FETCH_CMD command, specific to "fetch".
Thats it, try make/installing any ports, and prozilla will be fired up for fetching missing distfiles.