MacPorts can be found at http://www.macports.org.
A port for trac exists, its current portfile can be seen here.