2007-03-25 20:36
http://hi.baidu.com/cnubt/blog/item/8893fdea29d129d2d539c923.html
cp /etc/defalult/make.conf /etc
vi make.conf 再最后加入 (注意,以下ftp地址为我们局域网的地址...请大家更改为网上自己觉得合适的FTP)
这样.. ports安装的时候..软件包就会先自动寻找以下地址!
##############################
CPUTYPE=i686
MASTER_SITE_BACKUP?= \
[url]ftp://ftp.phbme.ntu-kpi.kiev.ua/pub/FreeBSD/ports/distfiles/$[/url]{DIST_SUBDI}/ \
[url]ftp://ftp.phbme.ntu-kpi.kiev.ua/.1/FreeBSD/ports/distfiles/$[/url]{DIST_SUBDI}/ \
[url]ftp://ftp.ntu-kpi.kiev.ua/pub/FreeBSD/distfiles/$[/url]{DIST_SUBDIR}/ \
[url]ftp://viii.ntu-kpi.kiev.ua/pub/FreeBSD/distfiles/$[/url]{DIST_SUBDIR}/ \
[url]ftp://ftp.phbme.ntu-kpi.kiev.ua/.1/FreeBSD/ports/ports/databases/$[/url]{DIST_SUBDI}/ \
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}
如果是 cvsup ports的话....只需要 修改 ports-supfile 中的 cvsup服务器地址!
首先复制这三个文件到/root
cp /usr/share/examples/cvsup/ports-supfile /root/
cp /usr/share/examples/cvsup/stable-supfile /root/
cp /usr/share/examples/cvsup/standard-supfile /root/
首先复制这三个文件到/root
cp /usr/share/examples/cvsup/ports-supfile /root/
cp /usr/share/examples/cvsup/stable-supfile /root/
cp /usr/share/examples/cvsup/standard-supfile /root/
开始更新Ports
ee /root/ports-supfile
修改*default host=cvsup.FreeBSDchina.org
保存退出
cvsup -L2 ports-supfile
更新结束
开始更新源代码
ee /root/stable-supfile
修改*default host=cvsup3.FreeBSDchina.org
保存退出
cvsup -L2 stable-supfile
完后复制源代码中的默认内核文件到root目录下,并同时改变文件名为kernel,
然后修改内核配置文件,最后用ln命令做一个软连接到源代码目录下。
cp /sys/i386/conf/GENERIC /root/kernel
cd /root
ln -s kernel /sys/i386/conf/kernel
编译内核
cd /usr/src
make buildkernel KERCONF=kernel
编译完后安装内核
make installkernel KERCONF=kernel
完后重启
reboot
再次查看时
uname -a
FreeBSD haojcnet.domain 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Thu Nov 16 13:31:24 CST 2006 root@haojcnet.domain:/usr/obj/usr/src/sys/GENERIC i386
这是我更新后的版本,当前最新版本!
======
#cvsup –L 2 –h cvsup.tw.freebsd.org /usr/share/examples/cvsup/ports-supfile