1 | # Copyright 1999-2010 Gentoo Foundation |
---|
2 | # Distributed under the terms of the GNU General Public License v2 |
---|
3 | # $Header: /var/cvsroot/gentoo-x86/www-apps/trac-git/trac-git-8215.ebuild,v 1.2 2010/07/05 11:00:44 hollow Exp $ |
---|
4 | |
---|
5 | EAPI="2" |
---|
6 | PYTHON_DEPEND="2" |
---|
7 | SUPPORT_PYTHON_ABIS="1" |
---|
8 | RESTRICT_PYTHON_ABIS="3.*" |
---|
9 | |
---|
10 | inherit distutils git |
---|
11 | |
---|
12 | EGIT_REPO_URI="git://github.com/dr4Ke/TracGitosisPlugin.git" |
---|
13 | DESCRIPTION="partial gitosis administration for Trac" |
---|
14 | HOMEPAGE="http://trac-hacks.org/wiki/TracGitosisPlugin" |
---|
15 | |
---|
16 | LICENSE="GPL-2" |
---|
17 | SLOT="0" |
---|
18 | KEYWORDS="~amd64 ~arm ~x86" |
---|
19 | IUSE="" |
---|
20 | |
---|
21 | DEPEND="dev-python/setuptools" |
---|
22 | RDEPEND=">=www-apps/trac-0.12 |
---|
23 | || ( dev-vcs/gitosis dev-vcs/gitosis-gentoo )" |
---|
24 | |
---|
25 | src_prepare() { |
---|
26 | git_src_prepare |
---|
27 | cp -Rv 0.11/* . |
---|
28 | distutils_src_prepare |
---|
29 | } |
---|
30 | |
---|
31 | pkg_postinst() { |
---|
32 | elog "To enable the GitosisPlugin plugin in your Trac environments, you have to add:" |
---|
33 | elog " [components]" |
---|
34 | elog " # for plugin version 0.11.0.1+" |
---|
35 | elog " tracgitosis.* = enabled" |
---|
36 | elog "" |
---|
37 | elog "to your trac.ini files." |
---|
38 | elog "" |
---|
39 | elog "You also have to create a new gitosis-admin user for trac" |
---|
40 | elog "" |
---|
41 | elog " Create the key pair without passphrase" |
---|
42 | elog " mkdir /var/www/.ssh" |
---|
43 | elog " ssh-keygen -f /var/www/.ssh/id_rsa" |
---|
44 | elog "" |
---|
45 | elog " Connect to the server hosting gitosis once to validate the server identity" |
---|
46 | elog " ssh -i /var/www/.ssh/id_rsa -o UserKnownHostsFile=/var/www/.ssh/known_hosts <git_user>@<git_server>" |
---|
47 | elog "" |
---|
48 | elog " Give this directory to the user running Trac (here: apache)" |
---|
49 | elog " chown -Rh apache.apache /var/www/.ssh" |
---|
50 | } |
---|