User Tools

Site Tools


subversion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
subversion [2009/03/30 03:16]
k2patel created
subversion [2020/08/10 02:35] (current)
Line 1: Line 1:
-cd /​usr/​ports/​devel/​subversion ​   +<code bash> 
 +cd /​usr/​ports/​devel/​subversion 
 +</​code>​
  
 Make backup of Makefile. Make backup of Makefile.
 +<code text>
 Edit Makefile and add following line. (after SVNFSTYPE?​= ​    ​fsfs ​   OR    before any APXS appeared on file) Edit Makefile and add following line. (after SVNFSTYPE?​= ​    ​fsfs ​   OR    before any APXS appeared on file)
  
Line 10: Line 12:
  
 make -DWITH_MOD_DAV_SVN -DWITH_NEON -DWITH_BDB make -DWITH_MOD_DAV_SVN -DWITH_NEON -DWITH_BDB
 +</​code>​
  
-#LoadModule dav_module ​        ​/​usr/​local/​libexec/​apache2/​mod_dav.so ​   (Disable this line if you already installed the mod_dav) ​                                                                                              +<code apache>​ 
-LoadModule dav_svn_module ​    ​modules/​mod_dav_svn.so ​                                                          ​ +#LoadModule dav_module 
-LoadModule authz_svn_module ​  ​modules/​mod_authz_svn.so ​                                                        ​ +/​usr/​local/​libexec/​apache2/​mod_dav.so ​   (Disable this line if you already installed the mod_dav) 
- +LoadModule dav_svn_module ​    ​modules/​mod_dav_svn.so 
- +LoadModule authz_svn_module ​  ​modules/​mod_authz_svn.so 
-Test it out the installation.+</​code>​
  
 +Test it out the installation.\\
 Now set according to following live example. Now set according to following live example.
  
 +svn information
  
 +<code text>
 +URL :  http://​xyz.k2patel.com/​repos
  
  
-svn information +e.g. community project URL will be : http://​xyz.k2patel.com/​repos/​projects/​community
-^^^^^^^^^^^^^^^ +
-***************+
  
-URL  http://​svn.newyorkdailypost.net/​repos+Username ​paryt 
 +Password ​asdua79
  
-e.g. community project URL will be : http://svn.newyorkdailypost.net/​repos/​projects/​community+repository access file location ​: /srv/www/svn/svn-access.conf
  
-Username ​svnrepo +username defination file path   /​srv/​www/​svn/​.svnaccess
-Password : 0d84Dp7k+
  
-repository ​access ​file location ​/​www/​virtual/​swingerswgm/​svnrepos/​svn-access.conf+access ​INFO : svn co --username svnrepo http://xyz.k2patel.com/​repos
  
-username defination file path   : ​/www/​virtual/​swingerswgm/​svnrepos/​.svnaccess +</code>
- +
-access INFO : svn co --username svnrepo http://​svn.newyorkdailypost.net/​repos+
  
 +<code text>
 svn-access.conf svn-access.conf
 ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
Line 46: Line 50:
  
 [community:/​branches/​calc/​bug-142] [community:/​branches/​calc/​bug-142]
-harry = rw                         +user1 = rw                         
-sally = r                         +user2 = r                          
 +</​code>​
  
  
-Modules +<code apache | Httpd.conf>​
-^^^^^^^+
  
 LoadModule dav_module ​        /​usr/​local/​libexec/​apache/​mod_dav.so LoadModule dav_module ​        /​usr/​local/​libexec/​apache/​mod_dav.so
Line 57: Line 61:
 LoadModule authz_svn_module ​  /​usr/​www/​apache/​modules/​mod_authz_svn.so LoadModule authz_svn_module ​  /​usr/​www/​apache/​modules/​mod_authz_svn.so
  
-Httpd.conf + 
-^^^^^^^^^^+
 <​VirtualHost 209.200.38.7:​80>​ <​VirtualHost 209.200.38.7:​80>​
-ServerName svn.newyorkdailypost.net +ServerName svn.k2patel.net 
-DocumentRoot /​www/​virtual/​swingerswgm/svnrepos +DocumentRoot /​www/​virtual/​username/svnrepos 
-CustomLog /​www/​stats/​svn.newyorkdailypost.net-stats.log light +CustomLog /​www/​stats/​svn.k2patel.net-stats.log light 
-CustomLog /​www/​logs/​svn.newyorkdailypost.net-access.log ​sagi  +CustomLog /​www/​logs/​svn.k2patel.net-access.log ​full 
-ServerAdmin webmaster@backend.newyorkdailypost.net            +ServerAdmin webmaster@backend.k2patel.net            
-/​www/​vapache/​airon/conf                                      ​+/​www/​vapache/​username/conf                                      ​
 <​Location /​repos> ​                                           ​ <​Location /​repos> ​                                           ​
   DAV svn                                                    ​   DAV svn                                                    ​
-  SVNPath /​www/​virtual/​swingerswgm/​svnrepos/ ​                 +  SVNPath /​www/​virtual/​username/​svnrepos/ ​                 
-  AuthzSVNAccessFile /​www/​virtual/​swingerswgm/​svnrepos/​svn_access.conf+  AuthzSVNAccessFile /​www/​virtual/​username/​svnrepos/​svn_access.conf
   AuthType Basic                                                      ​   AuthType Basic                                                      ​
   AuthName "​Subversion repository" ​                                   ​   AuthName "​Subversion repository" ​                                   ​
-  AuthUserFile /​www/​virtual/​swingerswgm/​svnrepos/​.svnaccess ​          +  AuthUserFile /​www/​virtual/​username/​svnrepos/​.svnaccess ​          
   Require valid-user ​                                                 ​   Require valid-user ​                                                 ​
 </​Location> ​                                                           </​Location> ​                                                          
 </​VirtualHost> ​                                                       ​ </​VirtualHost> ​                                                       ​
  
 +</​code>​
  
 Trac Install Trac Install
-^^^^^^^^^^^^ 
-************ 
  
 +Initialize trac using command
  
-Initialize trac using command +<code bash> 
-trac-admin /​www/​virtual/​swingerswgm/trac.newyorkdailypost.net initenv+trac-admin /​www/​virtual/​username/trac.k2patel.net initenv 
 +</​code>​
  
-Module +<code apache | httpd.conf>​
-^^^^^^+
  
 LoadModule python_module /​www/​apache/​modules/​mod_python.so LoadModule python_module /​www/​apache/​modules/​mod_python.so
 AddHandler mod_python .py                                  AddHandler mod_python .py                                 
  
-Httpd.conf +<​VirtualHost ​xx.yy.zz.ee:80 > 
-^^^^^^^^^^ +    DocumentRoot ​/srv/www/svn/​svnrepos/​projects 
-<​VirtualHost ​209.200.38.7:80 > +    ServerName ​xyz.k2patel.com
-    DocumentRoot /www/virtual/​swingerswgm/​svnrepos/​projects +
-    ServerName ​community.newyorkdailypost.net              ​+
     <​Location />                                                <​Location />                                           
         SetHandler mod_python ​                             ​         SetHandler mod_python ​                             ​
Line 103: Line 104:
         PythonDebug On                                              PythonDebug On                                     
         PythonHandler trac.web.modpython_frontend ​         ​         PythonHandler trac.web.modpython_frontend ​         ​
-        PythonOption TracEnv /www/virtual/swingerswgm/trac.newyorkdailypost.net +        PythonOption TracEnv /srv/www/svn/pqr.k2patel.com 
-        PythonOption TracUriRoot /                                             ​ +        PythonOption TracUriRoot / 
-    </​Location> ​                                                                +    </​Location>​ 
-    <​Location /​login> ​                                                          +    <​Location /​login>​ 
-        AuthType Basic                                                         ​ +        AuthType Basic 
-        AuthName "​MyCompany Trac Server" ​                                      ​ +        AuthName "​MyCompany Trac Server"​ 
-        AuthUserFile /www/virtual/​swingerswgm/​svnrepos/​.svnaccess ​             ​+        AuthUserFile ​/srv/www/svn/​.svnaccess ​             ​
         Require valid-user ​                                                             Require valid-user ​                                                    
     </​Location> ​                                                               ​     </​Location> ​                                                               ​
 </​VirtualHost> ​                                                                 </​VirtualHost> ​                                                                
  
 +</​code>​
  
 +<code text>
 Stand Alone Server (svn://) Stand Alone Server (svn://)
-^^^^^^^^^^^^^^^^^^ ​         
-******************* ​       ​ 
- 
  
 /​etc/​rc.conf (FreeBSD specific) /​etc/​rc.conf (FreeBSD specific)
 ------------ ​                   ------------ ​                  
 svnserve_enable="​YES" ​         ​ svnserve_enable="​YES" ​         ​
-svnserve_flags="​-d -r /usr/www/virtual/​yepmobi/track.yeprevenue.com/svn --listen-host=0.0.0.0"​ +svnserve_flags="​-d -r /srv/www/svn/pqr.k2patel.com/svn --listen-host=0.0.0.0"​ 
-svnserve_data="/​usr/www/virtual/​yepmobi/track.yeprevenue.com/​svn" ​                             +svnserve_data="/​srv/www/svn/pqr.k2patel.com/​svn" ​                             
-svnserve_user="​yepmobi" ​                                                                       +svnserve_user="​username" ​                                                                       
-svnserve_user="​yepmobi" ​                                                                      ​+                                                                       
  
 <​Repo_dir>/​conf/​svnserve.conf <​Repo_dir>/​conf/​svnserve.conf
Line 136: Line 135:
 ---------------------- ----------------------
 edit password file and add username = password. edit password file and add username = password.
 +</​code>​
  
- +<code text | SVN Access with SSH wrapper>
- +
-SVN Access with SSH wrapper +
-^^^^^^^^^^^^^^^^^^^^^^^^^^^ +
-*************************** +
 URI - svn+ssh://​{SSHUSERNAME}@{SERVER_NAME}/​{REPO_DIR} URI - svn+ssh://​{SSHUSERNAME}@{SERVER_NAME}/​{REPO_DIR}
  
-e.g. svn co svn+ssh://yepmobi@yepmobile.webair.com/usr/www/​virtual/​yepmobi/​track.yeprevenue.com/svn +e.g. svn co svn+ssh://username@xyz.k2patel.com/srv/www/svn 
 +</​code>​
  
 Wrapper script for svnserve Wrapper script for svnserve
-^^^^^^^^^^^^^^^^^^^^^^^^^^^ +<code text>
-*************************** +
 First of all, rename the original svnserve command into svnserve.bin First of all, rename the original svnserve command into svnserve.bin
 (it usually resides in /​usr/​bin/​svnserve) (it usually resides in /​usr/​bin/​svnserve)
Line 160: Line 153:
  
 Save the file as "​svnserve",​ being the root superuser. Save the file as "​svnserve",​ being the root superuser.
 +</​code>​
  
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^+<code bash | svnserve>​
 #!/bin/sh #!/bin/sh
 # wrap in order to put root in by default # wrap in order to put root in by default
Line 167: Line 161:
  
 exec /​usr/​local/​bin/​svnserve.bin -r /​path/​to/​repository/​root "​$@"​ exec /​usr/​local/​bin/​svnserve.bin -r /​path/​to/​repository/​root "​$@"​
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^+</​code>​
subversion.1238382986.txt.gz · Last modified: 2020/08/10 02:29 (external edit)