Trac on OSX Leopard

May 23, 2009 by     No Comments    Posted under: Footprints + Diary
  1. Use svn 1.44′s svnadmin to create repository
  2. Use Macport to install python 2.6 and its subversion bindings
  3. cp /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Trac-0.11.4-py2.6.egg/trac/admin/templates/deploy_trac.fcgi /Library/WebServer/CGI-Executables/deploy_trac.fcgi
  4. edit /Library/WebServer/CGI-Executables/deploy_trac.fcgi and add in #!/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python on first line
  5. Follow ‘Configure Apache to run TRAC using FastCGI’ section in Installing a Secure Subversion Server on Leopard
  6. Add a plist:
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
    <plist version=”1.0″>
    <dict>
    <key>UserName</key>
    <string>root</string>
    <key>KeepAlive</key>
    <dict>
    <key>SuccessfulExit</key>
    <true/>
    </dict>
    <key>Label</key>
    <string>svnserve.plist</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/bin/svnserve</string>
    <string>-d</string>
    <string>-r</string>
    <string>/var/svn</string>
    </array>
    </dict>
    </plist>

Very PITA at some steps.

Got anything to say? Go ahead and leave a comment!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>