User Tools

Site Tools

cd /usr/ports/devel/subversion

Make backup of Makefile.

Edit Makefile and add following line. (after SVNFSTYPE?=     fsfs    OR    before any APXS appeared on file)
APXS=   /www/apache/bin/apxs
Now make with following options. 
#LoadModule dav_module
# /usr/local/libexec/apache2/    (Disable this line if you already installed the mod_dav)
LoadModule dav_svn_module     modules/
LoadModule authz_svn_module   modules/

Test it out the installation.
Now set according to following live example.

svn information

e.g. community project URL will be :
Username : paryt
Password : asdua79
repository access file location : /srv/www/svn/svn-access.conf
username defination file path   : /srv/www/svn/.svnaccess
access INFO : svn co --username svnrepo
[/]    // for root information
svnrepo = rw                  
user1 = rw                        
user2 = r                         
| Httpd.conf
LoadModule dav_module         /usr/local/libexec/apache/
LoadModule dav_svn_module     /usr/www/apache/modules/
LoadModule authz_svn_module   /usr/www/apache/modules/
DocumentRoot /www/virtual/username/svnrepos
CustomLog /www/stats/ light
CustomLog /www/logs/ full
<Location /repos>                                            
  DAV svn                                                    
  SVNPath /www/virtual/username/svnrepos/                 
  AuthzSVNAccessFile /www/virtual/username/svnrepos/svn_access.conf
  AuthType Basic                                                      
  AuthName "Subversion repository"                                    
  AuthUserFile /www/virtual/username/svnrepos/.svnaccess           
  Require valid-user                                                  

Trac Install

Initialize trac using command

trac-admin /www/virtual/username/ initenv
| httpd.conf
LoadModule python_module /www/apache/modules/
AddHandler mod_python .py                                 
<VirtualHost >
    DocumentRoot /srv/www/svn/svnrepos/projects
    <Location />                                           
        SetHandler mod_python                              
        PythonInterpreter main_interpreter                 
        PythonDebug On                                     
        PythonHandler trac.web.modpython_frontend          
        PythonOption TracEnv /srv/www/svn/
        PythonOption TracUriRoot /
    <Location /login>
        AuthType Basic
        AuthName "MyCompany Trac Server"
        AuthUserFile /srv/www/svn/.svnaccess              
        Require valid-user                                                     
Stand Alone Server (svn://)
/etc/rc.conf (FreeBSD specific)
svnserve_flags="-d -r /srv/www/svn/ --listen-host="
password-db = passwd         
edit password file and add username = password.
| SVN Access with SSH wrapper
e.g. svn co svn+ssh://

Wrapper script for svnserve

First of all, rename the original svnserve command into svnserve.bin
(it usually resides in /usr/bin/svnserve)
Paste the following text into your favorite Linux editor and change
the /path/to/repository/root to something useful, eg.:
Save the file as "svnserve", being the root superuser.
| svnserve
# wrap in order to put root in by default
# Script implemented by Adrian Robert <>
exec /usr/local/bin/svnserve.bin -r /path/to/repository/root "$@"
subversion.txt · Last modified: 2020/08/10 02:35 (external edit)