How to use a mirrord cvs repository

Melvyn Sopacua freebsd-questions at webteckies.org
Sun Nov 30 09:15:00 PST 2003


On Sunday 30 November 2003 17:54, Stephen Corbesero wrote:

> There are several places which clearly describe how to do the cvs
> mirroring, but how do i use the mirror locally?  I was successful in
> grabbing the repository.:

Let's say you've mirrored the repository in /home/ncvs (like the default in 
cvs-supfile).

On that machine, you mv /usr/src /usr/src.old.
Then cd into /usr and:
cvs -d/home/ncvs co -rYOUR_TAG_HERE src

Edit /etc/make.conf:
CVS_UPDATE=	yes
CVSROOT?=	/home/ncvs

Unset any SUP* variables to make the 'make update' target work correctly.
Adjust the CVSROOT variable if you share the src mirror between machines. Have 
a look at the cvs(1) manpage for examples of that, allthough probably the 
best method is to have /home/ncvs available via NFS on the local network, 
because it doesn't require you to allow 'root' to ssh to other machines or 
setup a pserver.

Remove /usr/src.old once your satisfied :)
-- 
Melvyn

=======================================================
FreeBSD sarevok.webteckies.org 5.2-BETA FreeBSD 5.2-BETA #1: Sat Nov 29 
00:15:33 CET 2003     root at sarevok.webteckies.org:/usr/obj/usr/src/sys/
SAREVOK_NOFW_DBG  i386
=======================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031130/95551c56/attachment.bin


More information about the freebsd-questions mailing list