source: www-apps/trac-gitosisplugin/trac-gitosisplugin-1.0.4.ebuild @ c1f40de

Revision c1f40de, 1.5 KB checked in by geos_one <geos_one@…>, 10 years ago (diff)

www-apps/trac-gitosisplugin: Add distutils_pkg_postinst to postinstall section

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2400 6952d904-891a-0410-993b-d76249ca496b

  • Property mode set to 100644
Line 
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
5EAPI="2"
6PYTHON_DEPEND="2"
7SUPPORT_PYTHON_ABIS="1"
8RESTRICT_PYTHON_ABIS="3.*"
9
10inherit distutils git
11
12EGIT_REPO_URI="git://github.com/dr4Ke/TracGitosisPlugin.git"
13DESCRIPTION="partial gitosis administration for Trac"
14HOMEPAGE="http://trac-hacks.org/wiki/TracGitosisPlugin"
15
16LICENSE="GPL-2"
17SLOT="0"
18KEYWORDS="~amd64 ~arm ~x86"
19IUSE=""
20
21DEPEND="dev-python/setuptools"
22RDEPEND=">=www-apps/trac-0.12
23        || ( dev-vcs/gitosis dev-vcs/gitosis-gentoo )"
24
25src_prepare() {
26        git_src_prepare
27        cp -Rv 0.11/* .
28        distutils_src_prepare
29}
30
31pkg_postinst() {
32        distutils_pkg_postinst
33        elog "To enable the GitosisPlugin plugin in your Trac environments, you have to add:"
34        elog "  [components]"
35        elog "  # for plugin version 0.11.0.1+"
36        elog "  tracgitosis.* = enabled"
37        elog ""
38        elog "to your trac.ini files."
39        elog ""
40        elog "You also have to create a new gitosis-admin user for trac"
41        elog ""
42        elog "  Create the key pair without passphrase"
43        elog "  mkdir /var/www/.ssh"
44        elog "  ssh-keygen -f /var/www/.ssh/id_rsa"
45        elog ""
46        elog "  Connect to the server hosting gitosis once to validate the server identity"
47        elog "  ssh -i /var/www/.ssh/id_rsa -o UserKnownHostsFile=/var/www/.ssh/known_hosts <git_user>@<git_server>"
48        elog ""
49        elog "  Give this directory to the user running Trac (here: apache)"
50        elog "  chown -Rh apache.apache /var/www/.ssh"
51}
Note: See TracBrowser for help on using the repository browser.