Build a Subversion under FreeBSD8.2

Source: Internet
Author: User
FreeBSD has several methods to build svn. You can start svn independently or through apache. I have tried apache many times and have not installed it, only the Service Startup method that comes with svn is available. The following describes the steps for successfully testing the data on the Internet (the following are all under the root permission ). 1. There are several methods for installing subversioncdusrportsdeve FreeBSD in ports mode to build svn. svn can be started independently or through apache. I have tried apache many times and have not installed it well, only the Service Startup method that comes with svn is available. The following describes the steps for successfully testing the data on the Internet (the following are all under the root permission ).

1. ports InstallationSuBversion

Cd/Usr/ports/devel/subversion// Enter the svn directory of ports

Make install clean// InstallCommandSvn will be automatically downloaded and installed. Some online users need to add some parameters, because those parameters are not used in the apache module.

2. Create the repository root directory and test Repository

Select a location as the root directory of the svn repository. Here I use/usr/svn as the root directory of the Repository. The root directory here means that many repository files will be stored. Generally, a project is a repository.

Mkdir/Usr/svn

Create the root directory and create the actual Repository

Svnadmin create/usr/svn/project1// Project1 is the repository name. You can change the repository name to another one.

3. Configure permissions

In each repository, the conf folder contains the configuration file.Passwd(User Password), authz (user and user group permissions), svnserve. conf (repository configuration file), and your own explanations can be understood.

AAdd a user, open the passwd file, and add a user name and password:
[Users]
# Harry = harryssecret
# Sally = sallyssecret
Test = test// Add a test user and the password is test.

BModify user permissions:
Open the authz file and configure it as follows: (you only need to modify the groups node)
[Groups]
Admin = test// There is an admin user group, which uses a user named test.
[/]// Note the following,Svnserve-r-d/usr/svn/. If-r-d/usr/svn/project1 is specified at startup, use [/project1].

@ Admin = rw// Indicates that all users in the admin group have read and write permissions.
* = R
# [Repository:/baz/fuz]

CModify the svnserver. conf file. The configuration is as follows:
Anon-access = none # indicates that anonymous users are not allowed to access
Auth-access =Write# Authenticated users can write
### The password-db option conTrOLsThe loCatIon of the password
### DatabaseFile. UnLessYou specify a path starting with /,
### The file's location is relative to the directory containing
### This configuration file.
### If SASL is enablEd(See below), this file will NOT be uSed.
### UNcOmment the line below to use the default password file.
Password-db = passwd # specify the password file
### The authz-db option controls the location of the authorization
### Rules for path-based access control. Unless you specify a path
### Starting with a/, the file's location is relative to
### Directory containing this file. If you don't specify
### Authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
Authz-db = authz # indicates the file to which the write permission is assigned.

4. Start the service

By default, svn starts IPV6, so some parameters need to be added during startup:

Svnserve-d-R/Usr/svn/--Listen-host = 0.0.0.0 -- listen-port = 3690//-D seems to be running in the background-r is the warehouse directory or root directory
In this way, you can.

Disable the service:KillAll svnserve

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.