MacPorts can be found at http://www.macports.org. A port for trac exists, its current portfile can be seen [http://trac.macports.org/browser/trunk/dports/devel/trac/Portfile here]. The MacPorts project also uses Trac for its own bugtracking system and wiki, which can be found [http://trac.macports.org/ here].