Using Subversion and ViewCVS on Solaris 10

2008-04-09 04:05:09来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

Using Subversion and ViewCVS on Solaris 10

Author: Badcoffee

Email: blog.oliver@gmail.com
Date: Jan, 2005

Original Site: http://blog.csdn.net/yayong
CopyRight: Anyone refer to this article, must include author information and original site URL.

Summary

This article is a introduction that show you how to install and setup Subversion and ViewCVS's on Solaris 10.
It also give instructions about subversion usage for developer and gatekeeper (administrator). If you are a advanced
user, please refer to Subversion book for more details.

1. Subversion Setup

1.1 Install Subversion package

  • First, grab the pkg-get package file, from URL below:
    http://www.blastwave.org/pkg_get.pkg

    Install it with
    pkgadd -d pkg_get.pkg

    Then, make sure can find /usr/sfw/bin/wget command.
    At last, maybe modify /opt/csw/etc/pkg-get.conf file for proxy setting:
    ftp_proxy=http://proxy_server:port
    http_proxy=http://proxy_server:port
    export http_proxy ftp_proxy

    Set envirment in /etc/profile:

    PATH=/opt/csw/bin:$PATH;
    SVN_EDITOR=/usr/bin/vi
    export SVN_EDITOR
    export PATH

    • Install Subversion package
    pkg-get -i subversion

    For python and apache2 support:

    pkg-get -i pysvn
    pkg-get -i ap2_subversion

    1.2 Running a Subversion Server

    • Create system account:
      groupadd svn
      useradd -c "SVN Owner" -d /export/home/svn -g svn svn

      mkdir /export/home/svn
      chown svn:svn /export/home/svn
      chmod g w /export/home/svn
      • Creat repository for project
      svnadmin create --fs-type fsfs /export/home/svn/[project name]

      Import source code into repository:

      cd [/path/to/source/tree]
      svn import file:///export/home/svn/[project name]

      • Setting access policy of repository:
      vi /export/home/svn/[project name]/conf/svnserve.conf
      [general]
      anon-access = read
      auth-access = write
      password-db = passwd.conf
      realm = /[project name]

      Create passwd database:
      /export/home/svn/[project name]/conf/passwd.conf
      [users]
      username1 = passwd1
      .......

      Setting right access permission for subversion server:
      chown -R svn:svn /export/home/svn/[project name]
      chmod -R g w /export/home/svn/[project name]
      chmod g s /export/home/svn/[project name]/db

      • Configure the subversion service:
      Create the start script when system boot:
      vi /etc/rc2.d/S98svnserve
      su - svn -c "/opt/csw/bin/svnserve -d -r /export/home/svn&"

      chmod x /etc/rc2.d/S98svnserve

      Start subversion service:
      /etc/rc2.d/S98svnserve

      • Check out source code to verify subversion service works correctly
      svn checkout svn://[hostname]/[project name]

      2. ViewCVS Setup

      2.1 Install ViewCVS package

      • Install python package
      pkg-get -i python
      • Install viewcvs package
      ./viewcvs-install

      Note:

      标签:

      版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
      特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:终于作了决定

下一篇:突然发现CVSTrac