FreeBSD-6.0-RELEASE の src を最新にする.
FreeBSD-SA対応
anonymous CVS を使って、srcツリーを更新している.
cvsupを使わなかった理由は、新しくportsから入れるのがめんどくさかったから.cvs は標準のツールなので.ぎりぎりまでCTMを使うこともかんがえたけども...
FreeBSD Handbookより
A.3 Anonymous CVS
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/anoncvs.html
(日本語)
http://www.freebsd.org/doc/ja_JP.eucJP/books/handbook/anoncvs.html
Japan:
:pserver:anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs
(Use cvs login and enter the password “anoncvs” when prompted.)
ということで、日本のミラーは pserver のみなので、アメリカのサイトをつかって cvs over ssh で srcツリーの更新を実施.
A.7 CVS Tags
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html
Branch Tags は、
HEAD
Symbolic name for the main line, or FreeBSD-CURRENT. Also the default when no revision is specified.
In CVSup, this tag is represented by a . (not punctuation, but a literal . character).
Note: In CVS, this is the default when no revision tag is specified. It is usually not a good idea to checkout or update to CURRENT sources on a STABLE machine, unless that is your intent.
RELENG_6_0
The release branch for FreeBSD-6.0, used only for security advisories and other critical fixes.
anoncvs.freebsd.org 経由で freebsd-6.0r の src を最新にするには、以下のようになる.
% mkdir ~/ncvs/ && cd ~/ncvs/ #初回 % cvs -d freebsdanoncvs@anoncvs.freebsd.org:/home/ncvs co -rRELENG_6_0 src ... % mv /usr/src /usr/src.bak % mv ~/ncvs/src /usr/src
2回目からは
% cd /usr/src % cvs -d freebsdanoncvs@anoncvs.freebsd.org:/home/ncvs up
-d 以降の指定については カレントディレクトリの CVS/Root を見ると、書いてあるので
% cvs -d `cat ./CVS/Root` up
でもok.って、いいのか?こんな手抜きで.