Edgewall Software

Changes between Version 50 and Version 51 of TracOnGentoo


Ignore:
Timestamp:
Oct 26, 2015, 8:01:01 PM (4 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracOnGentoo

    v50 v51  
     1[[PageOutline(2-5,Contents,pullout)]]
     2
    13= Installing and Running Trac on Gentoo
    24
    35Trac is included in [http://packages.gentoo.org/package/www-apps/trac Gentoo portage] as of 2004/04/29. Installing is as simple as:
    46
    5 {{{
    6   emerge trac
     7{{{#!sh
     8emerge trac
    79}}}
    810
     
    1012For the instructions below, read the generic TracInstall instructions about the recommended versions of the dependent packages.
    1113
    12 A nice guide to setting up Trac on gentoo [http://www.gentoo-wiki.info/Trac here].
     14A nice guide to setting up Trac on Gentoo [http://www.gentoo-wiki.info/Trac here].
    1315
    14 There were a couple of things that were required to make Trac on Gentoo work.
    15 
    16  * Make sure your berkdb and python use flags are set!
    17 
    18  * '''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.
    19 
     16There were a couple of things that were required to make Trac on Gentoo work:
     17 * Make sure your berkdb and Python use flags are set.
     18 * 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.
    2019 * Once built, your alias for /trac will be different from the TracInstall doc. It will look something like this:
    2120
    22 {{{
     21{{{#!apache
    2322Alias /trac "/var/www/yourdomainhere/htdocs/trac/"
    2423}}}
     
    3029Attached is the ebuild to build trac from its source:trunk.
    3130To use it save and extract it to your '''PORTDIR_OVERLAY''', normally:
    32 {{{
     31{{{#!sh
    3332/usr/local/portage/www-apps
    3433}}}
    3534
    3635Of course if you already don't have it there, add to your '''make.conf''':
    37 {{{
     36{{{#!sh
    3837PORTDIR_OVERLAY="/usr/local/portage/"
    3938}}}
     39
    4040So, from scratch, add the above to your '''make.conf''' and:
    41 {{{
     41{{{#!sh
    4242mkdir /usr/local/portage/
    4343mkdir /usr/local/portage/www-apps
     
    5252rm pysqlite-2.3.2.tar
    5353}}}
     54
    5455To build from what Gentoo provides, although I havent tested like this, simply do:
    55 {{{
     56{{{#!sh
    5657emerge trac-svn -va
    5758}}}
    5859
    5960If you want to be on the edge like me:
    60 {{{
     61{{{#!sh
    6162echo =www-apps/trac-svn-1-r1 ~x86 >> /etc/portage/package.keywords
    6263echo =dev-python/pysqlite-1.1.6 ~x86 >> /etc/portage/package.keywords
     
    6566echo =dev-util/subversion-1.2.1 ~x86 >> /etc/portage/package.keywords
    6667}}}
     68
    6769And you'll probably will also need to do the following:
    68 {{{
     70{{{#!sh
    6971echo =net-www/apache-2.0.54-r13 ~x86 >> /etc/portage/package.keywords
    7072echo =net-www/gentoo-webroot-default-0.2 ~x86 >> /etc/portage/package.keywords
     
    7375}}}
    7476
    75 '''Note:''' portage will complain because this is NOT the right way to do it! You need to use the newer method to unmask masked packages. Please see http://gentoo-wiki.com/Masked for the right way to do this.
     77'''Note:''' portage will complain, because this is NOT the right way to do it! You need to use the newer method to unmask masked packages. Please see http://gentoo-wiki.com/Masked for the right way to do this.
    7678
    7779These are the ebuilds you can use:
     
    9395I'm not sure berkdb needs to be set as mentioned above by another user. You do need to choose between SQLite and Postgresql though. Newer ebuilds don't assume SQLite. It may be a good idea to set this in /etc/portage/package.use, such as:
    9496
    95 {{{
     97{{{#!sh
    9698www-apps/trac enscript silvercity sqlite vhosts
    9799}}}
     
    140142For Trac-0.12 no Postgres/MySQL, SQLite used:
    141143
    142 {{{
     144{{{#!sh
    143145# emerge -vu apache mod_python trac
    144146# webapp-config -I -h localhost -d /trac trac 0.12