git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@575 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2008-11-23 14:07:04 +00:00
parent 5bd7065cbe
commit b34e887be5
9 changed files with 701 additions and 0 deletions

404
www-apps/trac/ChangeLog Normal file
View File

@ -0,0 +1,404 @@
# ChangeLog for www-apps/trac
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/ChangeLog,v 1.84 2008/11/17 04:40:58 wrobel Exp $
17 Nov 2008; Gunnar Wrobel <wrobel@gentoo.org> -trac-0.10.5.ebuild:
Removed vulnerable www-apps/trac-0.10.5 (sec issue #246130).
16 Nov 2008; Markus Meier <maekke@gentoo.org> trac-0.11.2.ebuild:
amd64/x86 stable, bug #246130
15 Nov 2008; Tobias Scherbaum <dertobi123@gentoo.org> trac-0.11.2.ebuild:
ppc stable, bug #246130
*trac-0.11.2 (09 Nov 2008)
09 Nov 2008; Gunnar Wrobel <wrobel@gentoo.org> -trac-0.11.ebuild,
-trac-0.11.1.ebuild, -trac-0.11.1-r2.ebuild, +trac-0.11.2.ebuild:
Removed the trac-0.11.* ebuilds, added trac-0.11.2 with respect to sec issue
#246130.
*trac-0.11.1-r2 (15 Sep 2008)
15 Sep 2008; wrobel@gentoo.org -trac-0.11.1-r1.ebuild,
+trac-0.11.1-r2.ebuild:
Complete fix for #234137.
*trac-0.11.1-r1 (10 Sep 2008)
10 Sep 2008; wrobel@gentoo.org +files/tracd.initd.2,
+trac-0.11.1-r1.ebuild:
Added trac-0.11.1-r1 that should fix #236509.
23 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml:
add GLEP 56 USE flag desc from use.local.desc
*trac-0.11.1 (08 Aug 2008)
08 Aug 2008; wrobel@gentoo.org +trac-0.11.1.ebuild:
Added trac-0.11.1 (#234216).
05 Aug 2008; wrobel@gentoo.org -trac-0.10.4.ebuild:
Removed vulnerable trac-0.10.4 (#233175).
04 Aug 2008; Tobias Heinlein <keytoaster@gentoo.org> trac-0.10.5.ebuild:
amd64 stable wrt security bug #233175
03 Aug 2008; Markus Ullmann <jokey@gentoo.org> trac-0.10.5.ebuild:
Stable on x86 wrt security bug #233175
03 Aug 2008; Tobias Scherbaum <dertobi123@gentoo.org> trac-0.10.5.ebuild:
Fix quoting
03 Aug 2008; Tobias Scherbaum <dertobi123@gentoo.org> trac-0.10.5.ebuild:
ppc stable, bug #233175
25 Jul 2008; Friedrich Oslage <bluebird@gentoo.org> trac-0.11.ebuild:
Add ~sparc keyword, bug #232008
*trac-0.10.5 (18 Jul 2008)
18 Jul 2008; Peter Volkov <pva@gentoo.org> +trac-0.10.5.ebuild:
Another version bump, thank m4rku5 who noticed that eclipse plugin does
not support trac-0.11 yet.
17 Jul 2008; Markus Rothe <corsair@gentoo.org> trac-0.11.ebuild:
Added ~ppc64; bug #232008
16 Jul 2008; Peter Volkov <pva@gentoo.org> trac-0.11.ebuild:
Dropping ppc ppc64 sparc keywords as dev-python/genshi is not keyworded
too.
*trac-0.11 (16 Jul 2008)
16 Jul 2008; Peter Volkov <pva@gentoo.org> -files/0.9.6-postinst-en.txt,
files/tracd.initd, -trac-0.9.6.ebuild, -trac-0.10.3.1.ebuild,
-trac-0.11_beta2.ebuild, +trac-0.11.ebuild:
Version bump, bug #225891, thanks all who participated. Bug #215127 is
fixed, thank Damien Gombault for report. Removed old.
*trac-0.11_beta2 (28 Apr 2008)
28 Apr 2008; Robert Buchholz <rbu@gentoo.org> metadata.xml,
-trac-0.11_beta1.ebuild, +trac-0.11_beta2.ebuild:
Version bump (bug #214048). Thanks to Christian van der Leeden.
Also, removing dju as maintainer because he is retiring (bug #87168).
27 Apr 2008; Markus Ullmann <jokey@gentoo.org> trac-0.10.4.ebuild:
Stable on x86 wrt bug #196505
*trac-0.11_beta1 (06 Jan 2008)
06 Jan 2008; Julien Allanos <dju@gentoo.org> files/postinst-en.txt,
+files/postupgrade-en.txt, +trac-0.11_beta1.ebuild:
Bump to 0.11_beta1, closing bugs #150632 and #204074.
26 Oct 2007; nixnut <nixnut@gentoo.org> trac-0.10.4.ebuild:
Stable on ppc wrt bug 196505
24 Oct 2007; Steve Dibb <beandog@gentoo.org> trac-0.10.4.ebuild:
amd64 stable, bug 196505
24 Aug 2007; Steve Dibb <beandog@gentoo.org> trac-0.10.3.1.ebuild:
amd64 stable
19 Aug 2007; Julien Allanos <dju@gentoo.org> trac-0.10.3.1.ebuild,
trac-0.10.4.ebuild:
Fixes for incoming python-2.5, closing bug #166612.
29 Jul 2007; Christian Heim <phreak@gentoo.org> trac-0.10.3.1.ebuild,
trac-0.10.4.ebuild:
Fixing the DEPEND/RDEPEND for the move of net-www/apache to
www-servers/apache (#78622).
19 Jun 2007; Julien Allanos <dju@gentoo.org> files/tracd.initd:
Fixed tracd init script, closing bug #179197.
*trac-0.10.4 (23 Apr 2007)
23 Apr 2007; Julien Allanos <dju@gentoo.org> -trac-0.10.1.ebuild,
-trac-0.10.3.ebuild, +trac-0.10.4.ebuild:
Added 0.10.4, fixing bug #175354. Removed vulnerable 0.10.* ebuilds.
20 Mar 2007; Tobias Scherbaum <dertobi123@gentoo.org>
trac-0.10.3.1.ebuild:
Stable on ppc wrt bug #170041.
09 Mar 2007; Christian Faulhammer <opfer@gentoo.org> trac-0.10.3.1.ebuild:
stable x86; bug 170041
*trac-0.10.3.1 (08 Mar 2007)
08 Mar 2007; Julien Allanos <dju@gentoo.org> +trac-0.10.3.1.ebuild:
Version bump, security release fixing XSS vulnerability, see bug #170041.
25 Feb 2007; Matti Bickel <mabi@gentoo.org> trac-0.10.3.ebuild:
ppc stable (bug #159136)
13 Feb 2007; Markus Rothe <corsair@gentoo.org> trac-0.10.3.ebuild:
Added ~ppc64; bug #166675
30 Jan 2007; Raúl Porcel <armin76@gentoo.org> trac-0.10.3.ebuild:
x86 stable wrt bug 159136
07 Jan 2007; Julien Allanos <dju@gentoo.org> trac-0.10.1.ebuild,
trac-0.10.3.ebuild:
Changed einfo() to elog(), wrt bug #139814.
07 Jan 2007; Julien Allanos <dju@gentoo.org> trac-0.10.1.ebuild,
-trac-0.10.2.ebuild, trac-0.10.3.ebuild:
Fixed built_with_use_error() internal function name, closing bug #160651.
Removed 0.10.2 ebuild.
*trac-0.10.3 (14 Dec 2006)
14 Dec 2006; <dju@gentoo.org> +trac-0.10.3.ebuild:
Version bump to 0.10.3, closing bug #157976.
23 Nov 2006; Francesco Riosa <vivo@gentoo.org> trac-0.10.1.ebuild,
trac-0.10.2.ebuild:
dev-db/mysql => virtual/mysql
13 Nov 2006; Julien Allanos <dju@gentoo.org> -files/0.9.5-postinst-en.txt,
-files/0.10-postinst-en.txt, -trac-0.9.5.ebuild, -trac-0.10.ebuild:
Removing some vulnerable ebuilds.
*trac-0.10.2 (13 Nov 2006)
13 Nov 2006; Julien Allanos <dju@gentoo.org> +trac-0.10.2.ebuild:
Version bump, fixes bug #154780.
13 Nov 2006; Tobias Scherbaum <dertobi123@gentoo.org> trac-0.10.1.ebuild:
ppc stable, bug #154574
11 Nov 2006; Andrej Kacian <ticho@gentoo.org> trac-0.10.1.ebuild:
Stable on x86, bug #154574.
*trac-0.10.1 (09 Nov 2006)
09 Nov 2006; Julien Allanos <dju@gentoo.org> +files/postinst-en.txt,
+trac-0.10.1.ebuild:
Version bump, addresses cross-site request forgery security issue (bug
#154574).
*trac-0.10 (03 Oct 2006)
03 Oct 2006; Julien Allanos <dju@gentoo.org> +files/0.10-postinst-en.txt,
+trac-0.10.ebuild:
Version bump (bug #149433).
11 Aug 2006; Petteri Räty <betelgeuse@gentoo.org> trac-0.9.6.ebuild:
Added a check for clearsilver being built with USE=python. Resolves bug
#143572.
13 Jul 2006; Joshua Jackson <tsunam@gentoo.org> trac-0.9.6.ebuild:
stable x86; security bug #139467
10 Jul 2006; Tobias Scherbaum <dertobi123@gentoo.org> trac-0.9.6.ebuild:
ppc stable, bug #139467
*trac-0.9.6 (09 Jul 2006)
09 Jul 2006; Stuart Herbert <stuart@gentoo.org>
+files/0.9.6-postinst-en.txt, +trac-0.9.6.ebuild:
Version bump; addresses remote denial of service report
01 Jun 2006; Julien Allanos <dju@gentoo.org> -files/0.9.3-postinst-en.txt,
-files/0.9.4-postinst-en.txt, -files/0.8.4-postinst-en.txt,
-trac-0.8.4.ebuild, -trac-0.9.3.ebuild, -trac-0.9.4.ebuild:
Removed old vulnerable ebuilds.
22 Apr 2006; Mark Loeser <halcy0n@gentoo.org> trac-0.9.5.ebuild:
Stable on x86; bug #130399
20 Apr 2006; Tobias Scherbaum <dertobi123@gentoo.org> trac-0.9.5.ebuild:
ppc stable, bug #130399
*trac-0.9.5 (19 Apr 2006)
19 Apr 2006; Julien Allanos <dju@gentoo.org> +files/0.9.5-postinst-en.txt,
+trac-0.9.5.ebuild:
Version bump to 0.9.5 due to security issues (bug #130399).
09 Mar 2006; Julien Allanos <dju@gentoo.org> trac-0.9.4.ebuild:
Moved tracd user and group creation to pkg_setup() (see bug #124680).
*trac-0.9.4 (22 Feb 2006)
22 Feb 2006; Julien Allanos <dju@gentoo.org> +files/0.9.4-postinst-en.txt,
+files/tracd.confd, +files/tracd.initd, +trac-0.9.4.ebuild:
Version bump. Added an init script for tracd, closing bug #121566.
07 Feb 2006; Julien Allanos <dju@gentoo.org> trac-0.9.3.ebuild:
Check if subversion was built with USE python. Added contrib/ dir
to docs, closes bug #121601.
12 Jan 2006; Julien Allanos <dju@gentoo.org> -files/0.8.1-postinst-en.txt,
-trac-0.8.2.ebuild:
Removing old ebuild.
11 Jan 2006; Tobias Scherbaum <dertobi123@gentoo.org> trac-0.9.3.ebuild:
ppc stable, bug #118302
10 Jan 2006; Mark Loeser <halcy0n@gentoo.org> trac-0.9.3.ebuild:
Stable on x86; bug #118302
*trac-0.9.3 (08 Jan 2006)
08 Jan 2006; Julien Allanos <dju@gentoo.org> -files/0.9.2-postinst-en.txt,
+files/0.9.3-postinst-en.txt, -trac-0.9.2.ebuild, +trac-0.9.3.ebuild:
Version bump to 0.9.3 due to security issues (bug #118302). Removing known
vulnerable version (0.9.2).
*trac-0.9.2 (05 Dec 2005)
05 Dec 2005; Julien Allanos <dju@gentoo.org> -files/0.9.1-postinst-en.txt,
+files/0.9.2-postinst-en.txt, -trac-0.9.1.ebuild, +trac-0.9.2.ebuild:
Version bump to 0.9.2 for security issue. Removed 0.9.1.
*trac-0.9.1 (02 Dec 2005)
02 Dec 2005; Julien Allanos <dju@gentoo.org> +files/0.9.1-postinst-en.txt,
-files/0.9_beta2-postinst-en.txt, -files/0.9-postinst-en.txt,
-trac-0.9_beta2.ebuild, -trac-0.9.ebuild, +trac-0.9.1.ebuild:
Version bump to 0.9.1 due to security issue (bug #114205). Removing
vulnerable versions from 0.9 serie.
20 Nov 2005; Joseph Jezak <josejx@gentoo.org> trac-0.9.ebuild:
Marked ~ppc for bug #111069.
09 Nov 2005; Jason Wever <weeve@gentoo.org> trac-0.9.ebuild:
Added ~sparc keyword wrt bug #111069.
01 Nov 2005; Marcus D. Hanwell <cryos@gentoo.org> trac-0.9.ebuild:
Marked ~amd64, bug 111069.
*trac-0.9 (31 Oct 2005)
31 Oct 2005; Julien Allanos <dju@gentoo.org> +files/0.9-postinst-en.txt,
+trac-0.9.ebuild:
Version bump.
*trac-0.9_beta2 (28 Sep 2005)
28 Sep 2005; Julien Allanos <dju@gentoo.org>
+files/0.9_beta2-postinst-en.txt, +trac-0.9_beta2.ebuild:
Version bump (new 0.9 series).
06 Jul 2005; Julien Allanos <dju@gentoo.org> -files/0.7.1-postinst-en.txt,
-files/0.8-postinst-en.txt, -files/0.7-postinst-en.txt,
-files/postinst-en.txt, -trac-0.6.1.ebuild, -trac-0.7.ebuild,
-trac-0.7.1.ebuild, -trac-0.8.ebuild, -trac-0.8.1.ebuild:
Removed old ebuids.
05 Jul 2005; Julien Allanos <dju@gentoo.org> +files/0.8.4-postinst-en.txt,
metadata.xml, trac-0.8.4.ebuild:
Fixed dependencies, updated post-installation instructions.
Added myself as the maintainer.
21 Jun 2005; Michael Hanselmann <hansmi@gentoo.org> trac-0.8.4.ebuild:
Stable on ppc (#96572).
*trac-0.8.4 (21 Jun 2005)
21 Jun 2005; Christian Parpart <trapni@gentoo.org> +trac-0.8.4.ebuild:
version bump (security fix)
02 Jun 2005; Christian Parpart <trapni@gentoo.org> trac-0.8.2.ebuild:
fixing postinst documentation problem
*trac-0.8.2 (01 Jun 2005)
01 Jun 2005; Christian Parpart <trapni@gentoo.org> +trac-0.8.2.ebuild:
bumping up to 0.8.2
06 May 2005; Sven Wegener <swegener@gentoo.org> trac-0.8.ebuild,
trac-0.8.1.ebuild:
Removed * postfix from <, <=, >= and > dependencies.
01 May 2005; Christian Parpart <trapni@gentoo.org> trac-0.8.1.ebuild:
went amd64 back to ~amd64, silvercity needs to stabelize before
30 Apr 2005; Christian Parpart <trapni@gentoo.org> trac-0.8.1.ebuild:
stable on x86 and amd64
20 Apr 2005; Michael Hanselmann <hansmi@gentoo.org> trac-0.8.ebuild:
Stable on ppc.
*trac-0.8.1 (11 Apr 2005)
11 Apr 2005; Christian Parpart <trapni@gentoo.org>
+files/0.8.1-postinst-en.txt, +trac-0.8.1.ebuild:
version bump
*trac-0.8.1 (11 Apr 2005)
11 Apr 2005; Christian Parpart <trapni@gentoo.org>
+files/0.8.1-postinst-en.txt, +trac-0.8.1.ebuild:
version bump
*trac-0.8 (11 Dec 2004)
11 Dec 2004; Stuart Herbert <stuart@gentoo.org> +files/0.8-postinst-en.txt,
trac-0.7.1.ebuild, +trac-0.8.ebuild:
Version bump; thanks to dju` as always ;-)
30 Nov 2004; Sven Wegener <swegener@gentoo.org> trac-0.7.1.ebuild:
Fixed invalid atoms in *DEPEND.
23 Oct 2004; Jason Wever <weeve@gentoo.org> trac-0.7.1.ebuild:
Added ~sparc keyword.
08 Sep 2004; Renat Lumpau <rl03@gentoo.org> metadata.xml:
Fixed herd name
05 Sep 2004; Sven Wegener <swegener@gentoo.org> :
Fixed ChangeLog header.
03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> trac-0.6.1.ebuild,
trac-0.7.1.ebuild, trac-0.7.ebuild:
Masked trac-0.7.ebuild stable for ppc
03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> trac-0.6.1.ebuild,
trac-0.7.1.ebuild:
Masked trac-0.7.1.ebuild stable for ppc
03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> trac-0.6.1.ebuild:
Masked trac-0.6.1.ebuild stable for ppc
*trac-0.7 (15 Aug 2004)
15 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+files/0.7-postinst-en.txt, +files/0.7.1-postinst-en.txt,
+files/postinst-en.txt, +trac-0.6.1.ebuild, +trac-0.7.1.ebuild,
+trac-0.7.ebuild:
Moved from net-www/trac to www-apps/trac.
13 Aug 2004; Stuart Herbert <stuart@gentoo.org> trac-0.7.1.ebuild:
Fixed problem where webapp.eclass's pkg_postinst() wasn't getting
automatically called; thanks to ferringb@gentoo.org for the fix
*trac-0.7.1 (09 Aug 2004)
09 Aug 2004; Stuart Herbert <stuart@gentoo.org>
+files/0.7.1-postinst-en.txt, +trac-0.7.1.ebuild:
Version bump; thanks to dju` <dju@elegiac.net>; see bug #52929
26 May 2004; Stuart Herbert <stuart@gentoo.org> trac-0.7.ebuild:
Added ~sparc
*trac-0.7 (26 May 2004)
26 May 2004; Stuart Herbert <stuart@gentoo.org> trac-0.7.ebuild,
files/0.7-postinst-en.txt:
Version bump
29 Apr 2004; David Holm <dholm@gentoo.org> trac-0.6.1.ebuild:
Added to ~ppc.
*trac-0.6.1 (28 Apr 2004)
28 Apr 2004; Stuart Herbert <stuart@gentoo.org> metadata.xml,
trac-0.6.1.ebuild, files/postinst-en.txt:
Initial import; thanks to dju` <dju@elegiac.net>; see bug #48818

9
www-apps/trac/Manifest Normal file
View File

@ -0,0 +1,9 @@
AUX postinst-en.txt 1349 RMD160 019db0eb917956b84e2afe621edcba501e83a105 SHA1 337a6d417aee1cb94d936952584a154a18ae6d74 SHA256 af9ea54a0499737a454852d8f878368fea6540dc50fce3ce486ede2a0a201a39
AUX postupgrade-en.txt 674 RMD160 088b1b590ebd7876347b06e71f9dda549238eda1 SHA1 f45997b23c35eec1188003b21dd971d28961ab98 SHA256 4ce5f023f0f2312ac6b6162b2db510397d204cc168db1d5c09ad3aae678ea6b0
AUX tracd.confd 359 RMD160 7328dd041576abbc76130ce220041d837289dd00 SHA1 91a6077f1baf9301082826697e8828c6039f7648 SHA256 6ae50c887d18f8eeda7d59c4d3fd1b5e07e407711c4e4679fef3583f7be8ed6e
AUX tracd.initd 881 RMD160 c215a990133d5b655bc94e13ab4de9d1c938a163 SHA1 2c1a9dbae7e4890c2fb71f22091786ba7396c940 SHA256 6e76bfffe7f6928bff24d79b97aa8bbd27dafdfbb16fe8c79b7ad298e202d950
AUX tracd.initd.2 939 RMD160 2991a7a8d2d1a2911a899ed5f356fd88de872b5d SHA1 c8d00dc0e7ca92f17caa4ec1dfa49d3178fbc735 SHA256 9cd796e0fb516a91f5ec69037819144e9b9920af5df4f91839f9fb7fc67823a0
DIST Trac-0.11.2.1.tar.gz 713838 RMD160 aeb8e861f144c2b91698c0e6d25d06778345842c SHA1 30643926822ea2185307ee21993abe59ee357564 SHA256 bc95802880a9a4b430286812ff848f72e652603fc2cc5be05844f70c0fccab3a
EBUILD trac-0.11.2.1.ebuild 3977 RMD160 d3cb051a711d6d3bdc0d685736611285faf0b544 SHA1 ede3cad1b08ccdc2bc5160b5c78d9a95a199e692 SHA256 b46aa874abe5d72319a033a7ea5d48b06ca8adff66b43a042903cf08fdf36873
MISC ChangeLog 13811 RMD160 583ae9a56ab1d91f606d35a2871276ed81920ace SHA1 3447cbf81a4b37e76be225b1ac37762e27ce49d9 SHA256 6f5bd93a8a3b547b218828005b52f86ca96d53f35aa1f2a6b8188f8fb5ac43e3
MISC metadata.xml 294 RMD160 583b0b68a78884cf52e3a16a0aa9195dbb50654d SHA1 f73728c47f88df1bd4b4760b28c4f48c63a30ebb SHA256 a77b23b4cddd5cd048cbe2c0fdd3950d53ef2b48d30cdf1b1f501ee25a690e08

View File

@ -0,0 +1,41 @@
Install Instructions
====================
This is brief and generic information about Trac.
See the releases notes at http://trac.edgewall.org/wiki/TracDev/ReleaseNotes
for the Trac version you have installed to learn about software changes and
possible caveats.
Web Server
----------
Trac installation depends on the web server you are using.
FastCGI users: see http://trac.edgewall.org/wiki/TracFastCgi
CGI users: see http://trac.edgewall.org/wiki/TracCgi
Apache 2 and mod_python users: you have to manually emerge
www-apache/mod_python. See http://trac.edgewall.org/wiki/TracModPython
You can also use Trac without having to install a web server. See
http://projects.edgewall.com/trac/wiki/TracStandalone to know more.
Trac relies on the web server for users authentication. Please refer to the
Trac wiki and to your web server documentation to set up authentication.
Trac environments
-----------------
To complete the install, create your first Trac environment by running this
command:
trac-admin /var/lib/trac/<project-name> initenv
Don't forget to review the configuration file! It is located at
/var/lib/trac/<project-name>/conf/trac.ini. Consult its reference at
http://projects.edgewall.com/trac/wiki/TracIni
See http://trac.edgewall.org/wiki/TracEnvironment to know more about Trac
environments and how to configure them.

View File

@ -0,0 +1,19 @@
Upgrade Instructions
====================
This is brief and generic information about Trac.
See the releases notes at http://trac.edgewall.org/wiki/TracDev/ReleaseNotes
for the Trac version you have installed to learn about software changes and
possible caveats.
If you are upgrading from a previous Trac version, please follow the
instructions here:
http://projects.edgewall.com/trac/wiki/TracUpgrade
You will need to run trac-admin commands (upgrade, wiki upgrade...) for each
Trac environment you have.
You might also want to check for new configuration options by comparing trac.ini
file with trac.ini.sample file in the conf/ directory in each Trac environment.

View File

@ -0,0 +1,13 @@
# The commented variables in this file are the defaults that are used
# in the init-script. You don't need to uncomment them except to
# customize them to different values.
# Port for tracd
#TRACD_PORT="8000"
# Options for tracd
#TRACD_OPTS="--env-parent-dir /var/lib/trac/"
# User and group as which to run tracd
#TRACD_USER="tracd"
#TRACD_GROUP="tracd"

26
www-apps/trac/files/tracd.initd Executable file
View File

@ -0,0 +1,26 @@
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/files/tracd.initd,v 1.3 2008/07/16 21:20:07 pva Exp $
depend() {
need net
}
start() {
ebegin "Starting tracd"
# tracd fails to create pidfile if started as non-root user, thus we are asking
# s-s-d to do that. To have correct pid we avoid -d option of tracd and use
# --background option of s-s-d.
start-stop-daemon --start --chuid ${TRACD_USER:-tracd}:${TRACD_GROUP:-tracd} \
--pidfile /var/run/tracd.pid --make-pidfile --background \
--exec /usr/bin/python -- /usr/bin/tracd \
-p ${TRACD_PORT:-8000} ${TRACD_OPTS:---env-parent-dir /var/lib/trac/}
eend $?
}
stop() {
ebegin "Stopping tracd"
start-stop-daemon --stop --quiet --pidfile /var/run/tracd.pid
eend $?
}

View File

@ -0,0 +1,27 @@
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/files/tracd.initd.2,v 1.1 2008/09/10 07:50:30 wrobel Exp $
depend() {
need net
}
start() {
ebegin "Starting tracd"
# tracd fails to create pidfile if started as non-root user, thus we are asking
# s-s-d to do that. To have correct pid we avoid -d option of tracd and use
# --background option of s-s-d.
start-stop-daemon --start --chuid ${TRACD_USER:-tracd}:${TRACD_GROUP:-tracd} \
--pidfile /var/run/tracd.pid --make-pidfile --background \
--env PYTHON_EGG_CACHE="/var/lib/trac/egg-cache" \
--exec /usr/bin/python -- /usr/bin/tracd \
-p ${TRACD_PORT:-8000} ${TRACD_OPTS:---env-parent-dir /var/lib/trac/}
eend $?
}
stop() {
ebegin "Stopping tracd"
start-stop-daemon --stop --quiet --pidfile /var/run/tracd.pid
eend $?
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>web-apps</herd>
<use>
<flag name='silvercity'>Add <pkg>app-text/silvercity</pkg> support to
colourize code stored in the repository</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,153 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.11.2.ebuild,v 1.3 2008/11/16 17:47:23 maekke Exp $
inherit distutils webapp
MY_PV=${PV/_beta/b}
MY_P=Trac-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
HOMEPAGE="http://trac.edgewall.com/"
LICENSE="trac"
SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz"
IUSE="cgi fastcgi mysql postgres sqlite subversion"
KEYWORDS="amd64 ppc ~ppc64 ~sparc x86"
# doing so because tools, python packages... overlap
SLOT="0"
WEBAPP_MANUAL_SLOT="yes"
DEPEND="
${DEPEND}
dev-python/setuptools
"
RDEPEND="
${RDEPEND}
>=dev-python/genshi-0.5
dev-python/pygments
>=dev-python/docutils-0.3.9
dev-python/pytz
cgi? (
virtual/httpd-cgi
)
fastcgi? (
virtual/httpd-fastcgi
)
mysql? (
>=dev-python/mysql-python-1.2.1
>=virtual/mysql-4.1
)
postgres? (
>=dev-python/psycopg-2
)
sqlite? (
>=dev-db/sqlite-3.3.4
|| (
>=dev-lang/python-2.5
>=dev-python/pysqlite-2.3.2
)
)
subversion? (
>=dev-util/subversion-1.4.2
)
!www-apps/trac-webadmin
"
# The following function should be added to eutils.eclass (see bug #143572):
# Generate an standard error message for missing USE flags
# in existing packages, and die.
#
# Usage: built_with_use_die <category/package> <functionality> [<USE flag>]
# ex: built_with_use_die dev-util/subversion python
# or: built_with_use_die www-servers/apache LDAP ldap
#
# Typical usage:
# if ! built_with_use dev-util/subversion python ; then
# built_with_use_die dev-util/subversion python
# fi
#
# Note: when <USE flag> is not specified, <functionality> is used for the USE flag name.
built_with_use_die() {
local package=$1
local func=$2
local use_flag=$3
[[ -z ${use_flag} ]] && use_flag=${func}
eerror "Your ${package} package has been built without"
eerror "${func} support, please enable the '${use_flag}' USE flag and"
eerror "re-emerge ${package}."
elog "You can enable this USE flag either globally in /etc/make.conf,"
elog "or just for specific packages in /etc/portage/package.use."
die "${package} missing ${func} support"
}
pkg_setup() {
webapp_pkg_setup
if ! use mysql && ! use postgres && ! use sqlite ; then
eerror "You must select at least one database backend, by enabling"
eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
die "no database backend selected"
fi
# python has built-in sqlite support starting from 2.5
if use sqlite && \
has_version ">=dev-lang/python-2.5" && \
! has_version ">=dev-python/pysqlite-2.3" && \
! built_with_use dev-lang/python sqlite ; then
eerror "To use the sqlite database backend, you must either:"
eerror "- build dev-lang/python with sqlite support, using the 'sqlite'"
eerror " USE flag, or"
eerror "- emerge dev-python/pysqlite"
die "missing python sqlite support"
fi
if use subversion && \
! built_with_use dev-util/subversion python ; then
built_with_use_die dev-util/subversion python
fi
enewgroup tracd
enewuser tracd -1 -1 -1 tracd
}
src_install() {
webapp_src_preinst
distutils_src_install
# project environments might go in here
keepdir /var/lib/trac
# Use this as the egg-cache for tracd
dodir /var/lib/trac/egg-cache
keepdir /var/lib/trac/egg-cache
fowners tracd:tracd /var/lib/trac/egg-cache
# documentation
cp -r contrib "${D}"/usr/share/doc/${P}/
# tracd init script
newconfd "${FILESDIR}"/tracd.confd tracd
newinitd "${FILESDIR}"/tracd.initd.2 tracd
if use cgi ; then
cp cgi-bin/trac.cgi "${D}"/${MY_CGIBINDIR} || die
fi
if use fastcgi ; then
cp cgi-bin/trac.fcgi "${D}"/${MY_CGIBINDIR} || die
fi
for lang in en; do
webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt
webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt
done
webapp_src_install
}