Solaris Install svn


How to set up a Subversion repository on Solaris 10?

[Nota : updated 7/I/2006] Subversion aka SVN is a powerful revision control system for document, ANSI (java, C, txt sources) and binary data, with feature that kill the traditional CVS. I use it interfaced by TortoiseSVN on Windows and simple command line on other platforms (Solaris &eamp; Linux).

In our research institution, we want to use a central repository in the Intranet for all of us, I follow that procedure to set it up (login as root) :

0. Prerequisites

The svn, svnadmin, svnserver executables are compiled and installed in exported pathes (you are able to call them from the command line) – and you are administrator of the workstation. Preferabily, they are located in the /usr/local subdirectory

1. Copy file “subversion.xml” to

/var/svc/manifest/network/subversion.xml

2. Modify and copy method file “subversion” to

/lib/svc/method/subversion

In particular, you must change the path indicated

/staff/shared/intraweb/subversion

with the root of your projects central repository. And check that the subversion path matches.

3. Import method using Solaris administration tools :

# svccfg import /var/svc/manifest/network/subversion.xml
# svcs -a | grep subversion
  maintenance 10:20:30 svc:/network/subversion:default

Note that “maintenance” can be replaced by “disabled” in the output.

4. Start service :

# svcadm enable subversion
# svcs subversion
  STATE    STIME    FMRI
  online   01:23:45 svc:/network/subversion:default

Standard start|restart|stop init5-like procedures are done with :

# svcadm [restart|start|stop] subversion

Want to setup a new project called ${project}? use

# svnadmin create --fs-type fsfs ${repository}/${project}

Note that we use the fsfs database type. This is to make easy migration from i.e. Windows platforms to Unix-like ones, because the standard db3-4 repository format is not handled likewise on the different systems.

5. Grant access to remote users : edit

 ${repository}/${project}/conf/svnserv.conf

You can refer onto the existing material to set up your configuration. On a secure intranet, simply set up rights by uncommenting the following lines :

[general]
anon-access = write

This is the minimal configuration, no password is asked to checkout the subversion directory contents. Do not forget to restart the service :

# svcadm restart subversion

Source
http://fred.nomades.info/sysadm/sol10/
  1. Kaustubh Ghanekar
    April 7, 2012 at 8:57 PM

    Can you provide a guide to install SVN Server packages on Solaris 10? Where do I download them?

  1. No trackbacks yet.

Leave a comment