Edgewall Software

Version 2 (modified by anonymous, 20 years ago) ( diff )

Installing and Running Trac on Gentoo

Here is an ebuild that is suitable for installing Trac 0.6.1 on Gentoo Linux. It should include all dependencies listed in the install guide. Since I have only tested on x86, it only includes the ~x86 keyword, so you will have to emerge with ACCEPT_KEYWORDS=~x86 set, or include the following in your /etc/portage/package.keywords:

  net-www/trac ~x86

You will probably need to do the same thing for some other packages with ~x86, because at the moment, subversion and clearsilver only have ~x86 ebuilds in the main portage tree. It does not include a webserver dependency, as Trac can be installed on any http server that supports CGI, and that installation is not done as part of the ebuild anyway.

Here is the ebuild:

# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Software project portal with subversion integration, bug tracking, and wiki"
HOMEPAGE="http://projects.edgewall.com/trac/"
SRC_URI="ftp://ftp.edgewall.com/pub/trac/${P}.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=">=dev-lang/python-2.1
        >=dev-util/subversion-0.37
        dev-db/sqlite
        >=dev-python/pysqlite-0.4.3
        >=dev-libs/clearsilver-0.9.3"

src_compile() {
        einfo "No compilation required"
}

src_install() {
        python ./setup.py install --prefix=/usr --root ${D} || die
}

The best place to install it would be in your local portage overlay. Uncomment PORTDIR_OVERLAY in your make.conf, and save this ebuild as ${PORTDIR_OVERLAY}/net-www/trac/trac-0.6.1.ebuild. Then run ebuild ${PORTDIR_OVERLAY}/net-www/trac/trac-0.6.1.ebuild digest to create the md5 sum for the source archive. Then emerge trac.

The ebuild has not been submitted to the Gentoo maintainers yet, as I want to make sure it works cleanly. Once I'm sure it works reasonably well, I will submit it so it will be in the main portage tree, and all this extra nonsense won't be necessary.

Enjoy!

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.