From 9230c18a1364d1dd00e8dc364df08c3565b38bd6 Mon Sep 17 00:00:00 2001 From: geos_one Date: Tue, 31 Aug 2010 16:13:04 +0000 Subject: [PATCH] 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 --- www-apps/trac-gitosisplugin/ChangeLog | 4 +++ www-apps/trac-gitosisplugin/Manifest | 4 +-- .../trac-gitosisplugin-1.0.2.ebuild | 30 +++++++++++++++++-- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/www-apps/trac-gitosisplugin/ChangeLog b/www-apps/trac-gitosisplugin/ChangeLog index f80ce2ac..5ff52228 100644 --- a/www-apps/trac-gitosisplugin/ChangeLog +++ b/www-apps/trac-gitosisplugin/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 31 Aug 2010; Mario Fetka + trac-gitosisplugin-1.0.2.ebuild: + add postinst section + 31 Aug 2010; Mario Fetka trac-gitosisplugin-1.0.2.ebuild: add arm keyword diff --git a/www-apps/trac-gitosisplugin/Manifest b/www-apps/trac-gitosisplugin/Manifest index 763de975..7c01bc34 100644 --- a/www-apps/trac-gitosisplugin/Manifest +++ b/www-apps/trac-gitosisplugin/Manifest @@ -1,3 +1,3 @@ -EBUILD trac-gitosisplugin-1.0.2.ebuild 794 RMD160 56a8dfb09e7e92b7b61107acb89602cf0e7cfe96 SHA1 43b2da488c2b3e168bbc8285cae1eea848597189 SHA256 45b657cbce885c615dd784d03a94f371147f34525929159b461b5f4858038df3 -MISC ChangeLog 345 RMD160 dfca823db9b33f5364470ddae3d1eda7d55cbf0e SHA1 de08715e586f2b678c205c21ac01c75770bbe04b SHA256 4efd0948dd433b9e3aed69f530727692ba0cdd4eb8fdcd4aef21f5f61f201297 +EBUILD trac-gitosisplugin-1.0.2.ebuild 1594 RMD160 3df38e5f413be15ce5c2fb573867d07dd5619eae SHA1 04c5e1acb74e01123125c0adbc5d9287287d9462 SHA256 3237d1dbff8231410457ae4a798d84a1dc2bf974e4e3f716d0ae32a0d47b7306 +MISC ChangeLog 455 RMD160 356a8ad3763d8f475b371f5c34b667a6963eedbc SHA1 2ae01c4ea2a4fec3fe92975c4abfb368a03b8b8f SHA256 f48818d29f82c01fe2027b3c4ac2051d577c6cbe9bfb62379e4786e4593ee9ac MISC metadata.xml 1238 RMD160 c82938e77f387291d6a1c3bf9b0d802f2878dd12 SHA1 b5738f14922c69e78cfb867acdc65eeea25977bf SHA256 2c13f98be5fa8bdaf21ac86bcd00bbeb8944df5615de0cfce35ae4c00ef4b4d5 diff --git a/www-apps/trac-gitosisplugin/trac-gitosisplugin-1.0.2.ebuild b/www-apps/trac-gitosisplugin/trac-gitosisplugin-1.0.2.ebuild index 72945162..17dd5959 100644 --- a/www-apps/trac-gitosisplugin/trac-gitosisplugin-1.0.2.ebuild +++ b/www-apps/trac-gitosisplugin/trac-gitosisplugin-1.0.2.ebuild @@ -18,14 +18,38 @@ SLOT="0" KEYWORDS="~amd64 ~arm ~x86" IUSE="" -DEPEND="dev-python/setuptools - app-arch/unzip" +DEPEND="dev-python/setuptools" RDEPEND=">=www-apps/trac-0.12 || ( 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() { distutils_src_install 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 @" + elog "" + elog " Give this directory to the user running Trac (here: apache)" + elog " chown -Rh apache.apache /var/www/.ssh" +}