diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2011-12-04 16:40:10 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2011-12-04 16:40:10 +0000 |
commit | 26e57cc42cb8b0a9d3776d4da4c314fecbd467e7 (patch) | |
tree | 844da356986a53fe9e9de7859fffa6698ee39307 /dev-vcs/gitolite | |
parent | Version bump. Added FEATURES=test. (diff) | |
download | historical-26e57cc42cb8b0a9d3776d4da4c314fecbd467e7.tar.gz historical-26e57cc42cb8b0a9d3776d4da4c314fecbd467e7.tar.bz2 historical-26e57cc42cb8b0a9d3776d4da4c314fecbd467e7.zip |
Version bump to 2.2, bug 391047.
Package-Manager: portage-2.2.0_alpha79/cvs/Linux x86_64
Diffstat (limited to 'dev-vcs/gitolite')
-rw-r--r-- | dev-vcs/gitolite/ChangeLog | 8 | ||||
-rw-r--r-- | dev-vcs/gitolite/files/gitolite-2.2-gl-system-setup-exit.patch | 47 | ||||
-rw-r--r-- | dev-vcs/gitolite/gitolite-2.2.ebuild | 72 |
3 files changed, 126 insertions, 1 deletions
diff --git a/dev-vcs/gitolite/ChangeLog b/dev-vcs/gitolite/ChangeLog index e4c7f4bad9e4..ef549bef652b 100644 --- a/dev-vcs/gitolite/ChangeLog +++ b/dev-vcs/gitolite/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-vcs/gitolite # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/gitolite/ChangeLog,v 1.10 2011/10/17 19:47:06 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/gitolite/ChangeLog,v 1.11 2011/12/04 16:40:10 idl0r Exp $ + +*gitolite-2.2 (04 Dec 2011) + + 04 Dec 2011; Christian Ruppert <idl0r@gentoo.org> +gitolite-2.2.ebuild, + +files/gitolite-2.2-gl-system-setup-exit.patch: + Version bump to 2.2, bug 391047. *gitolite-2.1.0 (17 Oct 2011) diff --git a/dev-vcs/gitolite/files/gitolite-2.2-gl-system-setup-exit.patch b/dev-vcs/gitolite/files/gitolite-2.2-gl-system-setup-exit.patch new file mode 100644 index 000000000000..1d3e12aca05e --- /dev/null +++ b/dev-vcs/gitolite/files/gitolite-2.2-gl-system-setup-exit.patch @@ -0,0 +1,47 @@ +From ab9d0d2f57ed84c01513053b88587dac82d9ed66 Mon Sep 17 00:00:00 2001 +From: Sitaram Chamarty <sitaram@atc.tcs.com> +Date: Thu, 17 Nov 2011 18:49:24 +0530 +Subject: [PATCH] a couple of very minor oopsies + +(1) c5f342a forgot authkeys can have blank lines also + +(2) f0cedeb ended gl-system-install on a non-0 ret code + +both caught by matthewtdawson at gmail +--- + src/gl-system-install | 4 +++- + src/sshkeys-lint | 2 +- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/gl-system-install b/src/gl-system-install +index 0eec005..d7df7e4 100755 +--- a/src/gl-system-install ++++ b/src/gl-system-install +@@ -108,8 +108,10 @@ gl-setup is not in your \$PATH. + $path_advice" + + which=`dirname $which` +-[ "$which" != "$gl_bin_dir" ] && die " ***** WARNING ***** ++[ "$which" = "$gl_bin_dir" ] || die " ***** WARNING ***** + $which precedes $gl_bin_dir in your \$PATH, + and it *also* contains gl-setup. This is almost certainly going to confuse + you or me later. + $path_advice" ++ ++exit 0 +diff --git a/src/sshkeys-lint b/src/sshkeys-lint +index bcb8f7b..96c027f 100755 +--- a/src/sshkeys-lint ++++ b/src/sshkeys-lint +@@ -119,7 +119,7 @@ sub ak_comment { + $in_gl_section = 1 if /^# gitolite start/; + $in_gl_section = 0 if /^# gitolite end/; + die "gitosis? what's that?\n" if /^#.*gitosis/; +- return /^\s*#/; ++ return /^\s*(#|$)/; + } + + sub fprint { +-- +1.7.5.4 + diff --git a/dev-vcs/gitolite/gitolite-2.2.ebuild b/dev-vcs/gitolite/gitolite-2.2.ebuild new file mode 100644 index 000000000000..db6b8cddac50 --- /dev/null +++ b/dev-vcs/gitolite/gitolite-2.2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/gitolite/gitolite-2.2.ebuild,v 1.1 2011/12/04 16:40:10 idl0r Exp $ + +EAPI=4 + +inherit eutils perl-module + +DESCRIPTION="Highly flexible server for git directory version tracker" +HOMEPAGE="http://github.com/sitaramc/gitolite" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="contrib vim-syntax" + +DEPEND="dev-lang/perl + >=dev-vcs/git-1.6.6" +RDEPEND="${DEPEND} + !dev-vcs/gitolite-gentoo + vim-syntax? ( app-vim/gitolite-syntax )" + +pkg_setup() { + enewgroup git + enewuser git -1 /bin/bash /var/lib/gitolite git +} + +src_prepare() { + rm Makefile doc/COPYING || die + rm -rf contrib/{gitweb,vim} || die + + echo "${PF}" > conf/VERSION + + epatch "${FILESDIR}/${P}-gl-system-setup-exit.patch" +} + +src_install() { + local gl_bin="${D}/usr/bin" + + dodir /usr/share/gitolite/{conf,hooks} /usr/bin || die + + # install using upstream method + export PATH="${D}"/usr/bin:$PATH + ./src/gl-system-install ${gl_bin//\/\///} \ + "${D}"/usr/share/gitolite/conf "${D}"/usr/share/gitolite/hooks || die + sed -i -e "s:${D}::g" "${D}/usr/bin/gl-setup" \ + "${D}/usr/share/gitolite/conf/example.gitolite.rc" || die + + rm "${D}"/usr/bin/*.pm + insinto "${VENDOR_LIB}" + doins src/*.pm || die + + dodoc README.mkd doc/* + + if use contrib; then + insinto /usr/share/doc/${PF} + doins -r contrib/ || die + fi + + keepdir /var/lib/gitolite + fowners git:git /var/lib/gitolite + fperms 750 /var/lib/gitolite +} + +pkg_postinst() { + # bug 352291 + ewarn + elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitolite)." + elog "Especially if you're migrating from gitosis." + ewarn +} |