Changes between Version 50 and Version 51 of TracOnGentoo
- Timestamp:
- Oct 26, 2015, 8:01:01 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnGentoo
v50 v51 1 [[PageOutline(2-5,Contents,pullout)]] 2 1 3 = Installing and Running Trac on Gentoo 2 4 3 5 Trac is included in [http://packages.gentoo.org/package/www-apps/trac Gentoo portage] as of 2004/04/29. Installing is as simple as: 4 6 5 {{{ 6 7 {{{#!sh 8 emerge trac 7 9 }}} 8 10 … … 10 12 For the instructions below, read the generic TracInstall instructions about the recommended versions of the dependent packages. 11 13 12 A nice guide to setting up Trac on gentoo [http://www.gentoo-wiki.info/Trac here].14 A nice guide to setting up Trac on Gentoo [http://www.gentoo-wiki.info/Trac here]. 13 15 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 16 There 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. 20 19 * Once built, your alias for /trac will be different from the TracInstall doc. It will look something like this: 21 20 22 {{{ 21 {{{#!apache 23 22 Alias /trac "/var/www/yourdomainhere/htdocs/trac/" 24 23 }}} … … 30 29 Attached is the ebuild to build trac from its source:trunk. 31 30 To use it save and extract it to your '''PORTDIR_OVERLAY''', normally: 32 {{{ 31 {{{#!sh 33 32 /usr/local/portage/www-apps 34 33 }}} 35 34 36 35 Of course if you already don't have it there, add to your '''make.conf''': 37 {{{ 36 {{{#!sh 38 37 PORTDIR_OVERLAY="/usr/local/portage/" 39 38 }}} 39 40 40 So, from scratch, add the above to your '''make.conf''' and: 41 {{{ 41 {{{#!sh 42 42 mkdir /usr/local/portage/ 43 43 mkdir /usr/local/portage/www-apps … … 52 52 rm pysqlite-2.3.2.tar 53 53 }}} 54 54 55 To build from what Gentoo provides, although I havent tested like this, simply do: 55 {{{ 56 {{{#!sh 56 57 emerge trac-svn -va 57 58 }}} 58 59 59 60 If you want to be on the edge like me: 60 {{{ 61 {{{#!sh 61 62 echo =www-apps/trac-svn-1-r1 ~x86 >> /etc/portage/package.keywords 62 63 echo =dev-python/pysqlite-1.1.6 ~x86 >> /etc/portage/package.keywords … … 65 66 echo =dev-util/subversion-1.2.1 ~x86 >> /etc/portage/package.keywords 66 67 }}} 68 67 69 And you'll probably will also need to do the following: 68 {{{ 70 {{{#!sh 69 71 echo =net-www/apache-2.0.54-r13 ~x86 >> /etc/portage/package.keywords 70 72 echo =net-www/gentoo-webroot-default-0.2 ~x86 >> /etc/portage/package.keywords … … 73 75 }}} 74 76 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. 76 78 77 79 These are the ebuilds you can use: … … 93 95 I'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: 94 96 95 {{{ 97 {{{#!sh 96 98 www-apps/trac enscript silvercity sqlite vhosts 97 99 }}} … … 140 142 For Trac-0.12 no Postgres/MySQL, SQLite used: 141 143 142 {{{ 144 {{{#!sh 143 145 # emerge -vu apache mod_python trac 144 146 # webapp-config -I -h localhost -d /trac trac 0.12