summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-12-04 16:37:33 +0000
committerChristian Ruppert <idl0r@gentoo.org>2011-12-04 16:37:33 +0000
commit9d38828d0608e8ff61c2c7a19b854da4e63685a1 (patch)
tree7ed8e17534698d03ac5ee48f50431f4de77d6fd8 /dev-vcs
parentBump giggle to 0.6.1. (diff)
downloadgentoo-2-9d38828d0608e8ff61c2c7a19b854da4e63685a1.tar.gz
gentoo-2-9d38828d0608e8ff61c2c7a19b854da4e63685a1.tar.bz2
gentoo-2-9d38828d0608e8ff61c2c7a19b854da4e63685a1.zip
Version bump to 2.2.
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
Diffstat (limited to 'dev-vcs')
-rw-r--r--dev-vcs/gitolite-gentoo/ChangeLog9
-rw-r--r--dev-vcs/gitolite-gentoo/files/gitolite-gentoo-2.2-gl-system-setup-exit.patch47
-rw-r--r--dev-vcs/gitolite-gentoo/gitolite-gentoo-2.2.ebuild76
3 files changed, 131 insertions, 1 deletions
diff --git a/dev-vcs/gitolite-gentoo/ChangeLog b/dev-vcs/gitolite-gentoo/ChangeLog
index 1d567e639584..e3013ed665a0 100644
--- a/dev-vcs/gitolite-gentoo/ChangeLog
+++ b/dev-vcs/gitolite-gentoo/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-vcs/gitolite-gentoo
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-vcs/gitolite-gentoo/ChangeLog,v 1.19 2011/10/17 21:12:52 idl0r Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/gitolite-gentoo/ChangeLog,v 1.20 2011/12/04 16:37:33 idl0r Exp $
+
+*gitolite-gentoo-2.2 (04 Dec 2011)
+
+ 04 Dec 2011; Christian Ruppert <idl0r@gentoo.org>
+ +gitolite-gentoo-2.2.ebuild,
+ +files/gitolite-gentoo-2.2-gl-system-setup-exit.patch:
+ Version bump to 2.2.
*gitolite-gentoo-2.1.0 (17 Oct 2011)
diff --git a/dev-vcs/gitolite-gentoo/files/gitolite-gentoo-2.2-gl-system-setup-exit.patch b/dev-vcs/gitolite-gentoo/files/gitolite-gentoo-2.2-gl-system-setup-exit.patch
new file mode 100644
index 000000000000..1d3e12aca05e
--- /dev/null
+++ b/dev-vcs/gitolite-gentoo/files/gitolite-gentoo-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-gentoo/gitolite-gentoo-2.2.ebuild b/dev-vcs/gitolite-gentoo/gitolite-gentoo-2.2.ebuild
new file mode 100644
index 000000000000..9009fe907dd9
--- /dev/null
+++ b/dev-vcs/gitolite-gentoo/gitolite-gentoo-2.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/gitolite-gentoo/gitolite-gentoo-2.2.ebuild,v 1.1 2011/12/04 16:37:33 idl0r Exp $
+
+EAPI=3
+
+inherit eutils perl-module
+
+DESCRIPTION="Highly flexible server for git directory version tracker, Gentoo fork"
+HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/gitolite-gentoo.git;a=summary"
+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
+ dev-perl/Net-SSH-AuthorizedKeysFile
+ 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}-gentoo" > 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
+
+ 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
+ ewarn
+ elog "If you use the umask feature and upgrade from <=gitolite-gentoo-1.5.9.1"
+ elog "then please check the permissions of all repositories using the umask feature"
+ ewarn
+}