2012年3月22日 星期四

調整freebsd更新套件(ports)來源

 http://www.24m.org/wordpress/?p=258

編輯 /etc/make.conf ,如果沒有就做個新的吧。
內容如下:
KERNCONF=MYBSD
SUP_UPDATE= yes
SUP= /usr/local/bin/cvsup
SUPHOST= cvsup.tw.FreeBSD.org
SUPFILE= /usr/share/examples/cvsup/stable-supfile
PORTSSUPFILE= /usr/src/share/examples/cvsup/ports-supfile
接下來,到 /usr/src 或是 /usr/ports 底下,下
make update
然後就去喝茶吃蛋糕等吧。(通常cvsup server會限制連進來的連線數,所以一次就抓一個就好)
更新了ports tree後,要make新東西,都得到國外去抓,所以要讓抓取速度快,就得改一下make.conf,讓系統就進在台灣抓就好啦。
# for make install
MASTER_SITE_BACKUP?= \
ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
ftp://ftp2.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
ftp://ftp3.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
ftp://ftp4.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
ftp://ftp5.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
ftp://ftp7.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
ftp://ftp8.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
ftp://ftp9.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP} MASTER_SORT_REGEX= \.tw/ \.tw\. \.edu/ \.edu\. FETCH_CMD=fetch -U -A -P
7.1上是work的。

沒有留言:

張貼留言