? Earlier 2 items total Later ?

On this page:?

Apply the 'anchor patch' to Trac

The 'anchor patch' adds support for a couple of very useful Trac macros:

* TocMacro http://trac-hacks.swapoff.org/wiki/TocMacro
* RefMacro http://trac-hacks.swapoff.org/wiki/RefMacro

To apply the patch without bothering the overworked TXD admnins, you can set up your own local copy of the Trac python package.

Assuming you have copied anchor.diff from

http://trac-hacks.swapoff.org/wiki/AnchorPatch

to your home directory, and that you are using bash and have a valid .bash_profile in your home (.profile will do too):

mkdir -p ~/lib/python2.4/site-packages
cp -R /usr/local/lib/python2.4/site-packages/trac ~/lib/python2.4/site-packages/
cd ~/lib/python2.4/site-packages
patch -p1 <~/anchor.diff
echo 'PYTHONPATH=$HOME/lib/python2.4/site-packages:$PYTHONPATH; export PYTHONPATH' >> ~/.bash_profile
python /usr/local/lib/python2.4/compileall.py ~/lib/python2.4/site-packages/trac


Now kill and restart tracd, and it should pick up the trac module in your home instead of the default.

Lighttpd proxy with Tracd specific example

$HTTP["host"] == "trac.textdrive.com" #the == is to exactly match
{
proxy.server = (
"" => (                               #this is for the root, can be a .extension in other uses
"trac" => (                           #just a name, your choice
"host" => "70.84.29.150", 
"port" => 9000 
           )
       )
                )
}

? Earlier 2 items total Later ?