当前位置: 首页 > 工具软件 > CVSWeb > 使用案例 >

cvsweb的安装

盖马鲁
2023-12-01

=======================================================
PART I
Perl Modules Installing
=======================================================
http://www.cpan.org/modules/INSTALL.html

A. DECOMPRESS
B. UNPACK
C. BUILD
    perl Makefile.PL
    make
    make test
D. INSTALL
    make install
    
=======================================================
PART II
cvs :
=======================================================
CVSROOT=/var/cvs
环境设置:指定CVS库的路径CVSROOT
tcsh
setenv CVSROOT /var/cvs
bash
CVSROOT=/var/cvs ; export CVSROOT

=======================================================
PART II
CVSWEB Installing
=======================================================
1. Perl >= 5.6.0
    CVSweb uses the following Perl modules.
      Module                Version  Ships with Perl      Type
      ----------------------------------------------------------
      File::Temp                          5.8.0         required
      IPC::Run                              N/A         required
      MIME::Types                           N/A         optional
      String::Ediff                         N/A         optional
      URI                                   N/A         required
2. CVS >=1.11
   rlog >=5.7
   rcsdiff >=5.7
   CvsGraph >=1.4.0 optional ::if you want to use it with CVSweb
   GNU Enscript >=1.6.3 optional  ::if you want syntax highlighting
   CVSHistory >=2.0  optional  ::if you want to use it with CVSweb
 3.        
   3.1 cvsweb.conf
     Copy cvsweb.conf to a configuration directory, typically
   location : /usr/local/etc/cvsweb.conf.  
   Edit:
   CVS root(s) of the Repository(ies) you want to view
   3.2 cvsweb.cgi /usr/local/apache/cgi-bin/
   Copy cvsweb.cgi to a directory of your web server where the execution
   of CGI scripts is allowed
   Edit:
   make the variable $config (look for 'Configuration Area') point to
   your configuration file  .
   If your perl binary isn't located in /usr/bin you'll have to edit the
   first line of the script as well.
   
   3.3 cvsweb-httpd.conf  /usr/local/apache/conf/
   For Apache web servers, there is an
   optional sample httpd.conf snippet in the samples/ directory.  Most
   setups do not need it though, it is only for advanced and/or mod_perl
   configurations.
   Edit: httpd.conf
      # cvsweb  settings
       Include conf/extra/cvsweb-httpd.conf
   3.4 cvsweb.css /usr/local/apache/htdocs/css
   Copy cvsweb.css from the css/ directory to a web server directory, and
   point the $cssurl variable in cvsweb.conf to it.
   3.5 CvsGraph  /etc/cvsgraph.conf /usr/bin/cvsgraph    
   3.6 GNU Enscript /usr/share/enscript/hl/
   3.7 CVSHistory   /usr/local/apache/cgi-bin
   Edit: cvshistory.cgi
   USER EDITABLE part
   change the CONFIGFILE variable to the full path of your cvshistory.conf file
   open up cvshistory.conf , you'll need to set HISTORY, INTEGRATION, ...
   Edit: cvshistory.conf
        HISTORY = {
            '':         "/var/cvs/CVSROOT/history",
            'cvsroot':  "/var/cvs",
        }
        INTEGRATION = INT_CVSWEB
        SCRIPTPATH = "./cvsweb.cgi"
   Edit: cvsweb.conf
   $cvshistory_url = "/cgi-bin/cvshistory.cgi";

   

 类似资料: