Friday, September 23, 2011

Speed up FreeBSD ports download.

I find FreeBSD ports randomly gets it's source server list from /usr/ports/Mk/, as defined by the port maintainer.

But the problem is, sometimes the server chosen is just to damn slow.

In steps fastest_sites.

All you need to do is:
1) Install port
2) Run /usr/local/bin/fastest_sites > /usr/local/etc/ports_sites.conf
3) echo ".include \"/usr/local/etc/ports_sites.conf\"" >> /etc/make.conf

And thats that.

If you want to cron it.

0 6 * * * /usr/local/bin/fastest_sites > /usr/local/etc/ports_sites.conf

No comments:

Post a Comment