|
发表于 2007-2-14 22:04:17
|
显示全部楼层
在~/.cshrc 中加入下面这一行定义pkg_add -r 时的源:
setenv PACKAGESITE ftp://ftp.freebsdchina.org/pub/F ... ages-stable/Latest/
在/etc/make.conf 中加入下面的定义从/usr/ports中安装软件时的源
MASTER_SITE_BACKUP= \
http://ports.cn.freebsd.org/${DIST_SUBDIR} \
http://ports.hshh.org/${DIST_SUBDIR} \
ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR} \
ftp://ftp5.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR} /
MASTER_SITE_OVERRIDE= ${MASTER_SITE_BACKUP} |
|