I wrote a /opt style set of trac installation scripts, based on natmaster’s guide.
http://cell.dreamhosters.com/dreamhost/trac-installer/