Package-Manager: portage-2.2.0_alpha166
RepoMan-Options: --force
This commit is contained in:
Mario Fetka 2013-04-22 21:25:37 +02:00
parent ad392a36d4
commit c747aea35c
9 changed files with 275 additions and 0 deletions

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

@ -0,0 +1,11 @@
# ChangeLog for www-apps/trac
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*trac-0.12.5 (22 Apr 2013)
22 Apr 2013; Mario Fetka <mario.fetka@gmail.com>
+files/1.0.1-git-identity.patch, +files/postinst-en.txt,
+files/postupgrade-en.txt, +files/tracd.confd, +files/tracd.initd,
+metadata.xml, +trac-0.12.5.ebuild:
Bump

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

@ -0,0 +1,9 @@
AUX 1.0.1-git-identity.patch 1691 SHA256 2ffbc7093cbdb6eefa7e4e936f25bdbbbf8b34a145c21e49116fb374c5e5b82b SHA512 02f51cec8633195befdb39e10057fafed5faaace6a8e0e4d14334cbb77af0e3a397c531d25c14da6f5851de0974516b9d9ce391329a6b8de8b984fb934ad0c70 WHIRLPOOL 1a294cd7cca5cccfee2b3dacd251e55ae918fa28efad15f98013ab45730e2965fd1875af6ba1b21a4ef8d52472b0a24109e4ab9dda0ee204c54fb943f10f17bc
AUX postinst-en.txt 1331 SHA256 1799cf63e70e2ed7c3b1a1148b29ce456dda8e84ef137605549de7f1e2856a95 SHA512 6bde40a16545462ef0d8654ffc860e031f5978a253b0fe68df24b18a281f396fd560e4b39a6c53ecee52c9be941ca83dccd1aee9a98dccf570a9f5b0f0c6bbaf WHIRLPOOL d082aec44d057e3e0a7ccae6989a09c6c2e259bcc896cdd2bbea650c69c069fb9cbae7abd0db46f6c1cf6888cc36656a6a7271e2dfc962e21c5fa74708740ad8
AUX postupgrade-en.txt 665 SHA256 aec1179a04056a650a4f7429a927f510cd0e7256f889fdae2575ef471634ba41 SHA512 bc4684dff491d6140d7d97a1de6cc2773d5f834054bc3d8c122c5d6777f543a08f93e4142c50dcbda862d75ba5c19ffd49ca37876e57df4ee19869099a346a4f WHIRLPOOL 512578b971cee45e0699e7461dd12ee37844bda48e69018d8956f81768e13a31ff30f91421697228410e61fa7159dc1a07e0831d8f4941e6d1bf1855d8d08207
AUX tracd.confd 359 SHA256 6ae50c887d18f8eeda7d59c4d3fd1b5e07e407711c4e4679fef3583f7be8ed6e SHA512 38a961fe59b690eb91e20143aaea6aa1becda8c2afa103599d14ff86c7aae88f06b57b342302de1f067dac5d99024b9cc72896a84349e09b3ff40c9a20f97bb1 WHIRLPOOL 591394e732d39bc13f97004cfb3c18128aa16a55557172d872797b5ca5c69e5f15d1420e697a4e40215b2a893ed684ba6b6388abacd97874fd6f04953b579e1a
AUX tracd.initd 927 SHA256 562c02b327609f526687009fe245c90b64e1aae40dd855151cd3361a00abce93 SHA512 b28f12397f5177abc55389b551c7fbd6b2d60a660eb9da49c42134f3c3c602e6c955f302a2cc88e4ee3bc3ce17e61dde888ebc12b227d04c6ee14e045656bb42 WHIRLPOOL 9b63f2cb6aa0f4cb03b70fe3241229e15b794bd1a167e4e684205fc6541ee1fe656544971b02d9ab37d7906535cb4eed6903fd8aab28c2a55f3e04b2e4673650
DIST Trac-0.12.5.tar.gz 2473177 SHA256 5adc3e5898023fb83ffa293e76319c60b9b17a449353b20006bd4ec98874005f SHA512 0b8418645a457792399fb0879b54d589c5fac891df3ad067ef7f7a378c528356851fe50f0c7937bd84a40a1ae471d20c09d69449101cdf0d06e984824b8bb83e WHIRLPOOL 5e2991929d0ea11cee577e87939c01e1bb3db411f014f1d0f2af394e286fdbcb9feb3f74265833938594b161e6647d46b3fa609e10cb33baa37b19177bd06485
EBUILD trac-0.12.5.ebuild 2537 SHA256 c7e4901196bc026990247e65e34fa043847b2e7a2f4b0967ad30c86657ce1d5a SHA512 cdf08ffcbf62b99e3fde5e1fa905b70a2ef7546fbc8f578552b193bbe1ff36bbeac5d068d00cd1ff32be678572176ff9e14bc50d239aa148526c41b71a82bf71 WHIRLPOOL 4bff25302f180f6134a8d88c38895dc10462c11cf11a19872057e65f42cd2989672a0eb93e86fd3b1f24dc6081eb95e557fe30659932a621a37ebe4b27ed6a4f
MISC ChangeLog 366 SHA256 9d4f295e3040d22c7b683a7901d4cb2e5263400dfc87602799b19d3195507d9b SHA512 42e5e85e4d46f4d73077a6de11ca0b3a42012b4b76e3924b1334c7ed185bd553387072fbbdc70092b617c1bd8a51bb29dd65ad02a8b53e9d7bc3c76dfab1d139 WHIRLPOOL afce2eb6df5a8c916d602545756efad351eafe9a4f9186882d405aa82f7dd8819a41c70ead31dd52fdee1b44a36e0dc9206beda7172eb47df875ce30715f98d6
MISC metadata.xml 353 SHA256 12d6ceeed2212b5daf258a1dc4fee3fb6acd607e866e4062a907c157ac387059 SHA512 91ea81b7eb3471f855e1b697629bcd70c8bd20fbedb601d52580fc8f652d4444ff62fe3ae1052e440b9691962b1a3b942d8c2ca739c432c505f3c798128c1e3c WHIRLPOOL ad21708451d96efaf7aec37feff0e6e4eda8ffda9ee7a8483da15a529aa0ba1eee840efd73638d3a7922c8a33345ef4fd4797dbc22e99be902f1e37559ff9cd1

View File

@ -0,0 +1,36 @@
http://trac.edgewall.org/changeset/11675
Index: /branches/1.0-stable/tracopt/versioncontrol/git/tests/PyGIT.py
===================================================================
--- /branches/1.0-stable/tracopt/versioncontrol/git/tests/PyGIT.py (revision 11674)
+++ /branches/1.0-stable/tracopt/versioncontrol/git/tests/PyGIT.py (revision 11675)
@@ -153,4 +153,6 @@
# create git repository and master branch
self._git('init', self.repos_path)
+ self._git('config', 'user.name', u"Joé")
+ self._git('config', 'user.email', "joe@example.com")
create_file(os.path.join(self.repos_path, '.gitignore'))
self._git('add', '.gitignore')
@@ -166,5 +168,5 @@
cwd=self.repos_path)
proc.wait()
- assert proc.returncode == 0
+ assert proc.returncode == 0, proc.stderr.read()
return proc
@@ -181,5 +183,6 @@
create_file(os.path.join(self.repos_path, 'tickét.txt'))
self._git('add', 'tickét.txt')
- self._git('commit', '-m', 'unicode-filename')
+ self._git('commit', '-m', 'unicode-filename',
+ '--date', 'Sun Feb 3 18:30 2013 +0100')
storage = self._storage()
filenames = sorted(fname for mode, type, sha, size, fname
@@ -189,4 +192,7 @@
self.assertEquals(u'.gitignore', filenames[0])
self.assertEquals(u'tickét.txt', filenames[1])
+ # check commit author, for good measure
+ self.assertEquals(u'Joé <joe@example.com> 1359912600 +0100',
+ storage.read_commit(storage.head())[1]['author'][0])
def test_unicode_branches(self):

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://trac.edgewall.org/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://trac.edgewall.org/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://trac.edgewall.org/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"

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

@ -0,0 +1,27 @@
#!/sbin/runscript
# Copyright 1999-2013 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.6 2011/12/31 20:17:51 idl0r 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 --user ${TRACD_USER:-tracd} --group ${TRACD_GROUP:-tracd} \
--pidfile /var/run/tracd.pid --make-pidfile --background \
--env PYTHON_EGG_CACHE="/var/lib/trac/egg-cache" \
--exec /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,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>web-apps</herd>
<maintainer>
<email>djc@gentoo.org</email>
<name>Dirkjan Ochtman</name>
</maintainer>
<use>
<flag name="i18n">Enable support for i18n with dev-python/Babel</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,107 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.12.3.ebuild,v 1.5 2012/07/02 21:46:07 johu Exp $
EAPI="4"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit distutils user webapp
MY_PV=${PV/_beta/b}
MY_P=Trac-${MY_PV}
DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
HOMEPAGE="http://trac.edgewall.com/ http://pypi.python.org/pypi/Trac"
SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc ~ppc64 ~sparc x86 ~x86-fbsd"
IUSE="cgi fastcgi i18n mysql postgres +sqlite subversion"
REQUIRED_USE="|| ( mysql postgres sqlite )"
RDEPEND="
dev-python/setuptools
dev-python/docutils
dev-python/genshi
dev-python/pygments
dev-python/pytz
i18n? ( >=dev-python/Babel-0.9.5 )
cgi? ( virtual/httpd-cgi )
fastcgi? ( virtual/httpd-fastcgi )
mysql? ( dev-python/mysql-python )
postgres? ( >=dev-python/psycopg-2 )
sqlite? (
>=dev-db/sqlite-3.3.4
|| ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] >=dev-python/pysqlite-2.3.2 )
)
subversion? ( dev-vcs/subversion[python] )
"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
WEBAPP_MANUAL_SLOT="yes"
pkg_setup() {
python_pkg_setup
webapp_pkg_setup
enewgroup tracd
enewuser tracd -1 -1 -1 tracd
}
src_test() {
testing() {
PYTHONPATH=. "$(PYTHON)" trac/test.py
}
python_execute_function testing
if use i18n; then
make check
fi
}
# the default src_compile just calls setup.py build
# currently, this switches i18n catalog compilation based on presence of Babel
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
dodoc -r contrib
# tracd init script
newconfd "${FILESDIR}"/tracd.confd tracd
newinitd "${FILESDIR}"/tracd.initd tracd
if use cgi; then
cp cgi-bin/trac.cgi "${ED}${MY_CGIBINDIR}" || die
fi
if use fastcgi; then
cp cgi-bin/trac.fcgi "${ED}${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
}
pkg_postinst() {
distutils_pkg_postinst
webapp_pkg_postinst
}