Skip navigation.
 
mlRe: CVS and Mac OS 10.1
FROM : Mike Cohen
DATE : Fri Jan 11 13:37:01 2002

On 1/11/02 4:21 PM, "David Rehring" <<email_removed>> wrote:

>=20
> I think it would be better for you to setup CVS to work as a client/serve=

r,
> rather than using AFP for accessing the files directly.  I believe that t=

he
> method you use will result in corruption of the CVS repository if two
> developers have it 'mounted' and modify it at the same time.
>=20
> Offhand, I don't have a URL with instructions how to do this for OS X [as
> it's done differently than under a 'normal' UNIX], try searching for
> 'pserver'?  The end-result is that you would no longer have to 'mount' th=

e
> CVS server volume via AFP [you would access via a specific TCP/IP port
> instead], and all your developers would be able to access it both via the
> command line and from ProjectBuilder.  I believe that CVS would even trac=

k
> who checked-in what revision using this method [I'm not sure if it does
> using your method].


Here are the instructions I found. I don't remember the URL this came from,
though:

Configuring A CVS Server On Mac OS X

=A9 2001 Digital Specter. Do not reproduce or distribute for commercial use
without written consent of the author. Please report problems, suggestions
for enhancement, and inaccuracies to <email_removed>.

Digital Specter make no warranties regarding the information or processes
contained in this document and specifically disclaims the implied warrantie=
s
of merchantability, fitness for a particular purpose, and non-infringement
of third party rights. Digital Specter does not warrant that this
information will meet your requirements. In no event will Digital Specter b=
e
liable for any damages relating to this process or information contained
herein.=20

I. Scope=20

This document covers setting up a CVS server on Mac OS X. It assumes you ar=
e
already comfortable with the administrator tools, including Terminal, vi,
and NetInfo Manager. If you are not familiar with those tools or are unsure
about your ability to use them, we recommend following the instructions in
our more detailed version of this file.

II. Required software

You need to have the following installed on the server machine:

(1) Mac OS X
(2) All recent Mac OS X updates (recommended but not really required)
(3) Mac OS X Developer Tools

III. Configuration

To set up a CVS server on Mac OS X for pserver access with the CVS
repository at "/cvs":

1) Login as root.
2) Set up CVS repository (we put ours at /cvs):

cvs -d /cvs init

3) Create an empty "passwd" file in the "/cvs" directory. Apparently, this
tells CVS to use the user account info from the system. You can also set up
user/password stuff in that file, but we haven't tried it.

4) Add a line to /etc/services with the following:

cvs 2401/tcp

5) Add an entry to /etc/inetd.conf with the following (all one line):

cvs stream tcp nowait root /usr/bin/cvs cvs --allow-root=3D/cvs pserver

6) Add an entry for cvs port 2401 in /services in the NetInfoManager app:

Run NetInfoManager.
Go to /services.
Make an folder named "cvs", and use these properties:

name        cvs
port        2401
protocol    tcp

It is easier to just duplicate an existing entry like 'finger' and change i=
t
to be named "cvs" and use port 2401.

7) Restart

8) You should then be able to do stuff from the client such as cvs login
(it'll ask you for the password):

cvs -d ":pserver:<email_removed>:/cvs" login

If you're running the MPW CVS tool, you'll need to set up your password
before doing the login:

set -e CVS_GETPASS "password"

Then you can use cvs import to get your sources into the repository:

cd /MyDisk/MySources/MyProject
cvs -d ":pserver:<email_removed>:/cvs" import -m "first checked in"
MyProject user start

Then to checkout (renames old sources first then checks out a new copy):

mv MyProject MyProjectOld
cvs -d ":pserver:<email_removed>:/cvs" checkout MyProject

That should be all you need to get started.

I=B9m running pserver on my B&W G3 to share code with the other programmer
working on my project.

--=20
[ Mike Cohen            | http://www.macmegasite.com/    ]
[ <email_removed>  | http://www.worldbeatplanet.com/ ]

Sound is the same for all the world - Youssou N'dour, "Eyes Open"



Related mailsAuthorDate
mlCVS and Mac OS 10.1 Rohith Bhat Jan 11, 00:33
mlRe: CVS and Mac OS 10.1 David Rehring Jan 11, 13:21
mlRe: CVS and Mac OS 10.1 Mike Cohen Jan 11, 13:37