修改或者添加
/etc/make.conf文件
如果不存在,请在/etc/default下找找,cp过来或者直接用touch /etc/make.conf 创建一个新文件。
添加代码:
MASTER_SITE_BACKUP?= \
[url]ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/distfiles/$[/url]{DIST_SUBDIR}/\
[url]ftp://ftp.hk.freebsd.org/pub/FreeBSD/ports/distfiles/$[/url]{DIST_SUBDIR}/\
[url]ftp://ftp.kr.freebsd.org/pub/FreeBSD/ports/distfiles/$[/url]{DIST_SUBDIR}/\
[url]ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/$[/url]{DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}
/etc/make.conf文件
如果不存在,请在/etc/default下找找,cp过来或者直接用touch /etc/make.conf 创建一个新文件。
添加代码:
MASTER_SITE_BACKUP?= \
[url]ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/distfiles/$[/url]{DIST_SUBDIR}/\
[url]ftp://ftp.hk.freebsd.org/pub/FreeBSD/ports/distfiles/$[/url]{DIST_SUBDIR}/\
[url]ftp://ftp.kr.freebsd.org/pub/FreeBSD/ports/distfiles/$[/url]{DIST_SUBDIR}/\
[url]ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/$[/url]{DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}
搞定。
本文转自 ltyluck 51CTO博客,原文链接:http://blog.51cto.com/ltyluck/134476