发信人: neal()
整理人: (1999-04-22 02:53:35), 站内信件
|
如果你有兴趣自己编译 FreeBSD (甚至制作 release), 你一定需要 FreeBSD 的原始程式码. 你有以下几种方式取得 FreeBSD source code : 1. CVSup (CVS+SUP, Source Code Upgrade Protocol) 0. 此法适合拥有直接网路连线的朋友 (not Modem) 1. 取得 ftp://freebsd.csie.nctu.edu.tw/pub/CVSup/*, 里面有 2.1.x, 2.2.x, current, ports 的 supfile. 2. 阅读 00README.BIG5 2. CTM (强烈建议) 1. 取得 ftp://ftp.edu.tw/OS/FreeBSD/FreeBSD-CTM/ 下,你 所需要的 FreeBSD 版本的 CTM file,通常你只需要抓取 src-cur 的。 2. cd <你放source的目录>; ctm -v <你放CTM的目录>/* (例如 cd /usr/src; ctm -v /tmp/CTM/*) * 此法适用於任何方式上网路的人, 不过 CTM 不含 secure, eBones 两 个东东, 你必须用 sup 或是 ftp 取回. 不过这两个东东很少更新, 不用常常抓. * secure 就是 Non-US 版的 DES,eBones 就是 Non-US 版的 eBones. 2.2.1R 是 CTM#0216,所以从 src-2.2.0217.gz 抓起就可以了 2.2.2R 是 CTM#0281,所以从 src-2.2.0282.gz 抓起就可以了 例如: $ cd /usr/src; rm -rf * $ cd /cdrom/dists/src; sh install.sh all $ cd /cdrom/dists/des; sh install.sh ssecure $ cd /usr/src; echo "src-2.2 282" > .ctm_status $ cd /usr/src; ctm -v /CTM/src-2.2.*.gz ====================================== From: [email protected] CTM (Current Through eMail) There are many ways to get the latest fully FreeBSD source, such as CVSup, CTM, mirror, etc. We are going to discuss about CTM here. CTM, is distributed in small pieces via email, thus it is very convenient for those slow link users, such as Those small pieces of codes are called 'delta' here, every deltas are patches against previous one. Since deltas are just patches, we need a beginning large (with fully source) called 'base'. Usually base is named like 'src-xxx.000.gz' or 'src-xxx.000A.gz' or 'src-xxx.000xEmpty.gz'. The base is larger than 30MB, and the deltas are usually smaller than 4MB, so it's very easy to know which is base and which are deltas. Assume we get a base called 'src-2.2.0300xEmpty.gz', we must extract it first, then apply deltas which is numbered greater than 300. So we'll need src-2.2.0300xEmpty.gz (base), src-2.2.0301.gz (delta), src-2.2.0302.gz (delta), .... This CDROM's /CTM contains the latest CTM deltas up to June 27 1997, you may get more deltas from the following URLs: a) ftp://freebsd.csie.nctu.edu.tw/pub/FreeBSD-CTM/src-2.2/ b) ftp://ftp.edu.tw/OS/FreeBSD/FreeBSD-CTM/src-2.2/ Instructions to get fully FreeBSD-2.2-STABLE source : 1. rm -rf /usr/src/* 2. (make sure /usr/src is at least 150MB large, you may link /usr/src to somewhere is large enough) 3. cd /usr/src; ctm -v /cdrom/CTM/src-2.2.*.gz (you only need to step 3 once) 4. cd /usr/src; ctm -v /<more deltas>/src-2.2.*.gz (apply new deltas you get from freebsd.csie.nctu.edu.tw. 5. if your system installed DES encryption codes, you will need to extract additional DES code : a. cd /cdrom/dists/des b. sh install.sh 6. (then you got the _latest_ FreeBSD source under /usr/src, you may upgrade your system by : a. (make sure /usr/obj is at least 150MB large) b. cd /usr/src; make world
-- ※ 来源:.网易 BBS bbs.netease.com.[FROM: dmx320.resnet.ust.hk]
|
|