FreeBSD--change package and ports source

 1.设置PACKAGESITE 指定镜像站点
 
  package 源(在环境变量设置中如:/etc/csh.cshrc)

setenv  PACKAGESITE ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/i386/packages-6.2-release/All


2.ports

 /etc/make.conf

MASTER_SITE_BACKUP?= /
(one Tab)http://ports.cn.freebsd.org/${DIST_SUBDIR}/ /
(one Tab)ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ /
(one Tab)ftp://ftp.freebsd.org.cn/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ /
(one Tab)ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}//
MASTER_SITE_OVERRIDE?= (one Tae)${ MASTER_SITE_BACKUP}

你可能感兴趣的:(FreeBSD--change package and ports source)