= Installing and Running Trac on Gentoo = Trac is included in portage as of 2004/04/29. Installing is as simple as: {{{ emerge trac }}} Past that, normal Trac configuration should apply. Someone's put together a really nice guide to setting up trac on gentoo [http://home.dju.elegiac.net/wiki/MultipleTracInstancesOnGentoo here]. There were a couple of little things that were required to make Trac on Gentoo work. * Make sure your berkdb and python use flags are set to 'true'! * '''If you have any trouble, go down to the bottom and start emerging components this is how I figured out that the svn bindings for Python weren't building, etc..''' Be sure to run the python update script if needed. * Once built, your alias for /trac will be different from the TracInstall doc. It'll look something like this: {{{ Alias /trac "/var/www/yourdomainhere/htdocs/trac/" }}} This makes Trac all pretty, like you're used to seeing! Otherwise it's got essentially no layout. == Install Trac from Source == Attached is the ebuild to build trac from it's source:trunk. To use it save and extract it to your '''PORTDIR_OVERLAY''', normally {{{ /usr/local/portage/www-apps }}} Of course if you already don't have it there, add to your '''make.conf''': {{{ PORTDIR_OVERLAY="/usr/local/portage/" }}} So, from scratch, add the above to your '''make.conf''' and: {{{ mkdir /usr/local/portage/ mkdir /usr/local/portage/www-apps cd /usr/local/portage/www-apps wget http://projects.edgewall.com/trac/attachment/wiki/TracOnGentoo/trac-svn-1.tar tar xvf trac-svn-1.tar rm trac-svn-1.tar mkdir /usr/local/portage/dev-python cd /usr/local/portage/dev-python wget http://projects.edgewall.com/trac/attachment/wiki/TracOnGentoo/pysqlite-1.1.6.tar tar xvf pysqlite-1.1.6.tar rm pysqlite-1.1.6.tar }}} To build from what Gentoo provides, although I havent tested like this, simply do: {{{ emerge trac-svn -va }}} If you want to be on the edge like me: {{{ echo =www-apps/trac-svn-1-r1 ~x86 >> /etc/portage/package.keywords echo =dev-python/pysqlite-1.1.6 ~x86 >> /etc/portage/package.keywords echo =dev-lang/swig-1.3.24 ~x86 >> /etc/portage/package.keywords echo =dev-lang/swig-1.3.24 >> /etc/portage/package.unmask echo =dev-util/subversion-1.2.1 ~x86 >> /etc/portage/package.keywords }}} And you'll probably will also need to(portage will complain): {{{ echo =net-www/apache-2.0.54-r13 ~x86 >> /etc/portage/package.keywords echo =net-www/gentoo-webroot-default-0.2 ~x86 >> /etc/portage/package.keywords echo =dev-libs/apr-0.9.6-r3 ~x86 >> /etc/portage/package.keywords echo =dev-libs/apr-util-0.9.6-r2 ~x86 >> /etc/portage/package.keywords }}} These are the ebuilds I'm using: {{{ dev-lang/python-2.3.5 dev-lang/swig-1.3.24 dev-util/subversion-1.2.1 dev-db/sqlite-3.2.1-r3 dev-python/pysqlite-1.1.6 [cutom ebuild - see attached] dev-libs/clearsilver-0.9.7 dev-python/docutils-0.3.5 app-text/silvercity-0.9.5-r1 }}} '''The attached ''trac-svn.tar'' and ''trac-svn.2.tar'' are obsolete. If someone can, please delete them'''