limit bandwidth 'make fetch'

Frank Steinborn steinex at nognu.de
Thu May 11 04:24:32 PDT 2006


Pablo Mora wrote:
> how i can limit bandwidth when i using 'make fetch' (make install in Ports)?
> 
> thanks in advance.

You could use the following in your make.conf to use wget (which is
capable of limiting bandwith) in your make.conf:

FETCH_CMD=/usr/local/bin/wget --limit-rate=20k     # Limits to 20k
DISABLE_SIZE=YES


DISABLE_SIZE is mandatory for wget, because it would get "-S <size of
the file to fetch>" otherwise, which is only supported by fetch.

HTH,
Frank


More information about the freebsd-questions mailing list