User Tools

Site Tools


archive:trac_svn

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
archive:trac_svn [2009/06/03 23:45]
hef
archive:trac_svn [2021/05/02 21:36] (current)
Line 1: Line 1:
 +====== SVN/Trac ======
 +
 +<WRAP center round alert 60%>
 +====== Notice ======
 +
 +SVN and Trac hosting has been discontinued,​ however the ACM offers git hosting to members via
 +
 +https://​acm.cs.uic.edu/​git
 +
 +</​WRAP>​
 +Which includes project wiki pages and other features that are typical to trac. If you have an existing SVN repo please use an available 'svn to git' conversion tools and switch if you wish publicly host your code with us. You can still use and create SVN repos local to your user account. **However**,​ there will be no assistance provided to host them in a shared manner.
 +
 +
 +===== The documentation below is for legacy and reference purposes only =====
 +
 +----
 +
 For a list of trac repos: For a list of trac repos:
-https://​acm.cs.uic.edu/​trac/​+<del>https://​acm.cs.uic.edu/​trac/​</​del>​
  
 for a list of svn repos: for a list of svn repos:
-https://​acm.cs.uic.edu/​svn/​+<del>https://​acm.cs.uic.edu/​svn/​</​del>​
  
 your credentials are standard AD credentials your credentials are standard AD credentials
-====== Creating a new project ====== 
-for sysadmins: 
  
-===== create svn repo and trac project page =====+====== Server Setup ===== 
 +==== prerequisites ==== 
 +Have apache with ssl ready. 
 +Have ldap ready.== 
 +Install trac, and svn. 
 + 
 +==== Configure apache ==== 
 + 
 +Only do this once.  (Not once per project, only once per server) 
 + 
 +<​file|/​etc/​httpd/​conf/​vhosts/​acm.cs.uic.edu-secure>​ 
 +        ## trac/svn section -- hef ## 
 +        <​Location "/​trac">​ 
 +                SetHandler mod_python 
 +                PythonInterpreter main_interpreter 
 +                PythonHandler ​  ​trac.web.modpython_frontend 
 +                PythonOption ​   TracEnvParentDir /​var/​lib/​trac 
 +                PythonOption ​   TracUriRoot /trac 
 +                SetEnv TRAC_ENV_PARENT_DIR "/​var/​lib/​trac"​ 
 +                PythonOption PYTHON_EGG_CACHE "/​var/​www/​acm.cs.uic.edu/​egg-cache"​ 
 +        </​Location>​ 
 +        <​LocationMatch "/​trac/​[^/​]+/​login">​ 
 +                AuthType Basic 
 +                AuthName "​Trac"​ 
 +                AuthBasicProvider "​ldap"​ 
 +                AuthLDAPURL "​ldap://​acm.cs:​3268/​DC=acm,​DC=cs?​sAMAccountName?​sub?​(objectClass=user)"​ 
 +                AuthLdapBindDN ​ apacheacm@acm.cs 
 +                AuthLDAPBindPassword "​YourLdapBindPassword"​ 
 +                require valid-user 
 +        </​LocationMatch>​ 
 +        <​Location /svn> 
 +                DAV svn 
 +                SVNParentPath /​var/​svn/​repos 
 +                SVNListParentPath on 
 +                AuthzSVNAccessFile /​var/​svn/​conf/​SVNAccessFile 
 +                AuthType Basic 
 +                AuthName "​Trac"​ 
 +                AuthBasicProvider "​ldap"​ 
 +                AuthLDAPURL "​ldap://​acm.cs:​3268/​DC=acm,​DC=cs?​sAMAccountName?​sub?​(objectClass=user)"​ 
 +                AuthLdapBindDN ​ apacheacm@acm.cs 
 +                AuthLDAPBindPassword "​YourLdapBindPassword"​ 
 +                <​LimitExcept GET PROPFIND OPTIONS REPORT>​ 
 +                        require valid-user 
 +                </​LimitExcept>​ 
 + 
 +        </​Location>​ 
 +        ## end trac/svn section ## 
 + 
 +</​file>​ 
 +If you are not using AD for ldap, your ldap settings and BindDN will look wildly different. 
 +===== Creating a new project ===== 
 +for sysadmins:​ 
 +==== create svn repo and trac project page ====
  
   svnadmin create --fs-type fsfs /​var/​svn/​repos/​myproject   svnadmin create --fs-type fsfs /​var/​svn/​repos/​myproject
-  trac-admin /path/to/myproject initenv+  trac-admin /var/lib/trac/myproject initenv
   chown -R www-data /​var/​lib/​trac/​myproject   chown -R www-data /​var/​lib/​trac/​myproject
   trac-admin /​var/​lib/​trac/​myproject permission add myuser TRAC_ADMIN   trac-admin /​var/​lib/​trac/​myproject permission add myuser TRAC_ADMIN
  
-===== adding trac access ​=====+==== adding trac access ====
  
 <​file|/​var/​lib/​trac/​myproject/​conf/​trac.ini>​ <​file|/​var/​lib/​trac/​myproject/​conf/​trac.ini>​
Line 24: Line 91:
 </​file>​ </​file>​
  
-===== svn write access ​=====+==== svn write access ====
 <​file|/​var/​svn/​conf/​SVNAccessFile>​ <​file|/​var/​svn/​conf/​SVNAccessFile>​
 [myproject:/​] [myproject:/​]
Line 31: Line 98:
 </​file>​ </​file>​
  
-====== Future stuff ======+===== Future stuff =====
  
 trac respects AuthzSVNAccessFile but does not manage it... yet. trac respects AuthzSVNAccessFile but does not manage it... yet.
archive/trac_svn.1244072755.txt.gz · Last modified: 2021/05/02 21:36 (external edit)