TRAC e SVN

Da Opengate.

[modifica] Creazione di un nuovo repository SVN

si va in /usr/local/svn e si digita

svnadmin create NOMEREPOSITORY

mettere a posto i permessi

chown -R apache:svnusers NOME_REPOSITORY

andare sotto /home/projects

trac-admin NOME_REPOSITORY initenv

Inserire 'Project Name' Lasciare il default per la connection string Lasciare il default per Repository Type ( SVN ) Per la locazione del SVN inserire /usr/local/svn/NOMEREPOSITORY Lasciare i valori di default per i restanti parametri.

Configurare i permessi

chown -R apache:apache NOMEREPOSITORY

Andare in /home/projects/NOMEREPOSITORY/conf ed editare trac.ini Mettere nella sezione 'header logo'

alt =
height = -1
link = http://www.opengate.biz/
src = common/log.gif
width = 100

Andare sotto /etc/httpd/conf/ ed editare httpd.conf

e aggiungere in fondo al file

<Location /projects/NOMEREPOSITORY>
   AuthType Basic
   AuthName "Subversion repository"
   AuthUserFile /etc/httpd/conf/NOMEREPOSITORY
   Require valid-user
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnv /home/projects/NOMEREPOSITORY/
   PythonOption TracUriRoot /projects/NOMEREPOSITORY
</Location>

creare le utenze: per la prima

htpasswd -bc NOMEREPOSITORY NOME_UTENTE PASSWORD

per i successivi

htpasswd -b NOMEREPOSITORY NOME_UTENTE PASSWORD

per svn

htpasswd -b svnpwd NOME_UTENTE PASSWORD

verificare che la configurazione dell'apache sia corretta

service httpd configtest

che deve restituire Syntax OK

riavviare l'apache

service httpd graceful


aprire tortoise svn con il tasto desto e lanciare il Repo Browser
inserire l'indirizzo "http://office.opengate.biz/svn/NOMEREPOSITORY"
creare le directory branches, tags e trunk

andare nella directory trunk ed importare eventuali file già facenti parte del progetto.