| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, and Slack. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.

View
 

DrupalCvsProject

Page history last edited by PBworks 15 years, 9 months ago

Test server

 

The results of these instructions are being tested here.

 

Instructions

 

These will ultimately be distributed with the cvslog module as an INSTALL.txt file

 

$Id:$

 

This document explains how to create a working installation of the Drupal cvslog, project and project_issue modules.

 

REQUIREMENTS


 

The cvslog module is meant to work in conjunction with other modules.

 

This documentation assumes that you will be using cvslog along with these

additional moudles:

 

 

INSTALLATION


 

Follow the standard installation procedures for the cvslog, project and

project_issue modules.

 

CONFIGURATION


 

CVS Server Config

 

All of the following configuration steps take place on the server that hosts

your CVS repository, not necessarily on the server hosting your Drupal site.

 

CVS integration requires the xcvs scripts that are distributed with

cvslog. However, these scripts should not be run from within your website's

document path.

 

Determine the directory from which these scripts will run (we'll use /opt/xcvs)

and do the following:

 

cd /opt

cvs -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib co -dxcvs contributions/modules/cvslog/xcvs

 

You can also simply copy the xcvs directory distributed with cvslog into /opt.

 

Create links to the xcvs scripts in the directory named 'CVSROOT' within

your CVS server's CVS root directory.

 

cd /path/to/mycvsroot/CVSROOT

ln -s /opt/xcvs/xcvs-commitinfo.php .

ln -s /opt/xcvs/xcvs-config.php .

ln -s /opt/xcvs/xcvs-db.php .

ln -s /opt/xcvs/xcvs-loginfo.php .

ln -s /opt/xcvs/xcvs-taginfo.php .

 

Configure CVS to run the xcvs scripts when files are checked in. You will

need to edit three files in CVSROOT/

 

DO NOT edit these files directly Instead, you will need to check out

your repository's CVSROOT module and edit the checked out files. To checkout

CVSROOT, set your $CVSROOT appropriately and do 'cvs co CVSROOT'.

 

From within your checked out CVSROOT directory, you will need to edit three different files.

 

1) Edit commitinfo adding the following to the end of the file:

 

ALL $CVSROOT/CVSROOT/xcvs-commitinfo.php $CVSROOT/CVSROOT/xcvs-config.php $USER %r/%p %s

 

2) Edit taginfo adding the following to the end of the file:

 

ALL ALL $CVSROOT/CVSROOT/xcvs-taginfo.php $CVSROOT/CVSROOT/xcvs-config.php $USER %t %b %o %p %{sv}

 

3) Edit loginfo adding the following to the end of the file:

 

ALL $CVSROOT/CVSROOT/xcvs-loginfo.php $CVSROOT/CVSROOT/xcvs-config.php $USER %1{sVv}

 

Lastly, commit your changes:

 

cvs commit -m "Adding Drupal xcvs support"

 

Create a Drupal repository configuration

 

1) Go to admin/project/cvs-repositories and select 'Add Repository'

 

2) Complete the form according to the instructions and submit.

 

3) Determine the ID of the repository you just created. If this is the first

repository created, the ID should be 1.

 

Final configuration of xcvs

 

Edit /opt/xcvs/xcvs-db.php. You will need to configure database connectivity

to your Drupal site as well as the ID of the repository you just created.

 

Map Drupal users to CVS users.

 

Go to admin/project/cvs-accounts and select 'Import'.

 

Copy the contents of your CVS passwd file here (it can be found in the

CVSROOT directory in the actual CVS Root directory on the CVS server) and

submit the form.

 

Project set up

 

Create a new project node at node/add/project-project.

 

Under the 'CVS Integration' section, select the CVS repository that you just

configured and the path to the project related files in the CVS repository.

Comments (0)

You don't have permission to comment on this page.