All pastes #766477 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-11-08 22:10 UTC
rendered paste body
2.1.3. Via anonymous CVS

To get pkgsrc via CVS, make sure you have cvs(1) installed. To do an initial (full) checkout of pkgsrc, you first have to set some environment variables. For the C-Shell, type:

    % setenv CVSROOT anoncvs@anoncvs.NetBSD.org:/cvsroot
    % setenv CVS_RSH ssh

Or, the same for the bourne shell:

    $ CVSROOT="anoncvs@anoncvs.NetBSD.org:/cvsroot"
    $ CVS_RSH="ssh"
    $ export CVSROOT CVS_RSH



By default, cvs doesn't do things like most people would expect it to do, and this is unlikely to change. But there is a way to convince cvs, by creating a file called .cvsrc in your home directory and saving the following lines to it. This file will save you lots of headache and some bug reports, so we strongly recommend it. You can find an explanation of this file in the CVS documentation.

# recommended CVS configuration file from the pkgsrc guide
checkout -P
update -dP
release -d
diff -upN
cvs -q -z3
rdiff -u

Then, you change to the directory where you want to have your copy of pkgsrc. In most cases this is /usr. In that directory you run the checkout command, which is cvs -q checkout -P pkgsrc for the current branch and cvs -q checkout -rpkgsrc-2007Q1 -P pkgsrc for the stable branch. This command will create a directory called pkgsrc with all the pkgsrc files in it.