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