Installing trac
cd /usr/ports/www/trac
make install clean
I left the default options in config screen
Setup a basic trac site for the example svn repository created in Setting up a Subversion Server on FreeBSD 6.2
cd /usr/local
mkdir trac
cd trac
mkdir MyRepoName
trac-admin MyRepoName initenv
chown -R www /usr/local/trac
Installing mod_python
cd /usr/ports/www/mod_python3
make install clean
To configure mod_python for trac I followed steps from TracModPython
vi /usr/local/etc/apache22/httpd.conf
LoadModule python_module libexec/apache22/mod_python.so
PythonOption mod_python.mutex_directory "/tmp"
PythonOption mod_python.mutex_locks 8
Configure trac with the same access as that given to the svn repository in Setting up a Subversion Server on FreeBSD 6.2
vi /usr/local/etc/apache22/Includes/trac.conf
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /usr/local/trac/MyRepoName
PythonOption TracUriRoot /trac/MyRepoName
AuthType Basic
AuthName "trac access"
AuthUserFile /usr/local/svn-repositories/conf/htpasswd
Require valid-user
SSLRequireSSL
apachectl graceful
https://192.168.0.100/trac/MyRepoName
Accept the certificate and enter your username and password, you should now see your trac site.