www-apps/trac-gitosisplugin: add postinst section
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2347 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
parent
8cd2e77c9a
commit
9230c18a13
@ -2,6 +2,10 @@
|
|||||||
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
|
31 Aug 2010; Mario Fetka <mario.fetka@gmail.com>
|
||||||
|
trac-gitosisplugin-1.0.2.ebuild:
|
||||||
|
add postinst section
|
||||||
|
|
||||||
31 Aug 2010; Mario Fetka <mario.fetka@gmail.com>
|
31 Aug 2010; Mario Fetka <mario.fetka@gmail.com>
|
||||||
trac-gitosisplugin-1.0.2.ebuild:
|
trac-gitosisplugin-1.0.2.ebuild:
|
||||||
add arm keyword
|
add arm keyword
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
EBUILD trac-gitosisplugin-1.0.2.ebuild 794 RMD160 56a8dfb09e7e92b7b61107acb89602cf0e7cfe96 SHA1 43b2da488c2b3e168bbc8285cae1eea848597189 SHA256 45b657cbce885c615dd784d03a94f371147f34525929159b461b5f4858038df3
|
EBUILD trac-gitosisplugin-1.0.2.ebuild 1594 RMD160 3df38e5f413be15ce5c2fb573867d07dd5619eae SHA1 04c5e1acb74e01123125c0adbc5d9287287d9462 SHA256 3237d1dbff8231410457ae4a798d84a1dc2bf974e4e3f716d0ae32a0d47b7306
|
||||||
MISC ChangeLog 345 RMD160 dfca823db9b33f5364470ddae3d1eda7d55cbf0e SHA1 de08715e586f2b678c205c21ac01c75770bbe04b SHA256 4efd0948dd433b9e3aed69f530727692ba0cdd4eb8fdcd4aef21f5f61f201297
|
MISC ChangeLog 455 RMD160 356a8ad3763d8f475b371f5c34b667a6963eedbc SHA1 2ae01c4ea2a4fec3fe92975c4abfb368a03b8b8f SHA256 f48818d29f82c01fe2027b3c4ac2051d577c6cbe9bfb62379e4786e4593ee9ac
|
||||||
MISC metadata.xml 1238 RMD160 c82938e77f387291d6a1c3bf9b0d802f2878dd12 SHA1 b5738f14922c69e78cfb867acdc65eeea25977bf SHA256 2c13f98be5fa8bdaf21ac86bcd00bbeb8944df5615de0cfce35ae4c00ef4b4d5
|
MISC metadata.xml 1238 RMD160 c82938e77f387291d6a1c3bf9b0d802f2878dd12 SHA1 b5738f14922c69e78cfb867acdc65eeea25977bf SHA256 2c13f98be5fa8bdaf21ac86bcd00bbeb8944df5615de0cfce35ae4c00ef4b4d5
|
||||||
|
@ -18,14 +18,38 @@ SLOT="0"
|
|||||||
KEYWORDS="~amd64 ~arm ~x86"
|
KEYWORDS="~amd64 ~arm ~x86"
|
||||||
IUSE=""
|
IUSE=""
|
||||||
|
|
||||||
DEPEND="dev-python/setuptools
|
DEPEND="dev-python/setuptools"
|
||||||
app-arch/unzip"
|
|
||||||
RDEPEND=">=www-apps/trac-0.12
|
RDEPEND=">=www-apps/trac-0.12
|
||||||
|| ( dev-vcs/gitosis dev-vcs/gitosis-gentoo )"
|
|| ( dev-vcs/gitosis dev-vcs/gitosis-gentoo )"
|
||||||
|
|
||||||
S="${WORKDIR}/gitosisplugin/0.11"
|
src_prepare() {
|
||||||
|
git_src_prepare
|
||||||
|
cp -Rv 0.11/* .
|
||||||
|
distutils_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
distutils_src_install
|
distutils_src_install
|
||||||
rm -f "${D}"/usr/{README,COPYING}
|
rm -f "${D}"/usr/{README,COPYING}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user