diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2010-11-02 21:08:07 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2010-11-02 21:08:07 +0000 |
commit | 8de558afbcdded2b6eea10088d0441da55ad9b09 (patch) | |
tree | 69f9823e2eaa8177b373b58b5272dedf5a3fc7b2 /dev-vcs | |
parent | Initial import of app-vim/gitolite-syntax-20100826 (diff) | |
download | historical-8de558afbcdded2b6eea10088d0441da55ad9b09.tar.gz historical-8de558afbcdded2b6eea10088d0441da55ad9b09.tar.bz2 historical-8de558afbcdded2b6eea10088d0441da55ad9b09.zip |
Initial import of dev-vcs/gitolite-gentoo-1.5.6.
Package-Manager: portage-2.2.0_alpha3/cvs/Linux x86_64
Diffstat (limited to 'dev-vcs')
-rw-r--r-- | dev-vcs/gitolite-gentoo/ChangeLog | 10 | ||||
-rw-r--r-- | dev-vcs/gitolite-gentoo/Manifest | 19 | ||||
-rw-r--r-- | dev-vcs/gitolite-gentoo/files/gitolite-require.patch | 133 | ||||
-rw-r--r-- | dev-vcs/gitolite-gentoo/gitolite-gentoo-1.5.6.ebuild | 59 | ||||
-rw-r--r-- | dev-vcs/gitolite-gentoo/metadata.xml | 13 |
5 files changed, 234 insertions, 0 deletions
diff --git a/dev-vcs/gitolite-gentoo/ChangeLog b/dev-vcs/gitolite-gentoo/ChangeLog new file mode 100644 index 000000000000..c5906909c8e9 --- /dev/null +++ b/dev-vcs/gitolite-gentoo/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-vcs/gitolite-gentoo +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/gitolite-gentoo/ChangeLog,v 1.1 2010/11/02 21:08:07 idl0r Exp $ + +*gitolite-gentoo-1.5.6 (02 Nov 2010) + + 02 Nov 2010; Christian Ruppert <idl0r@gentoo.org> + +gitolite-gentoo-1.5.6.ebuild, +files/gitolite-require.patch, +metadata.xml: + Initial import of dev-vcs/gitolite-gentoo-1.5.6. + diff --git a/dev-vcs/gitolite-gentoo/Manifest b/dev-vcs/gitolite-gentoo/Manifest new file mode 100644 index 000000000000..a5be4d9a21bd --- /dev/null +++ b/dev-vcs/gitolite-gentoo/Manifest @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX gitolite-require.patch 4663 RMD160 94bf2f4f0e6b7d81905156d4b07473bd2e10c34f SHA1 453386b56338f0afd8a4d48f051433e474a9b755 SHA256 f4eb13cb593f27c8eadf71719a4a4221381b8b3eee414c5977cc813b3c565c64 +DIST gitolite-gentoo-1.5.6.tar.bz2 129140 RMD160 8fecb28ec8642a5a34a79aeea5184ca30dbe571c SHA1 5bcd27f6857173fb99bf7d3d7170775083b437b1 SHA256 4fca6fbf22ed7c5c56f07129d7ae16a1ef100c036d496c54b5f8a4e5db559874 +EBUILD gitolite-gentoo-1.5.6.ebuild 1432 RMD160 042be67da2e99c8aae914cbe50e6d761a2b0cf64 SHA1 d2953212c1e4f62c59226986f4e2add7f0982710 SHA256 4ff8f6ea087b83ee724eee576a1867e621495813cb55870a0f6339761cf202d5 +MISC ChangeLog 439 RMD160 17ae58dd5ca7ef9296ec48cb43fae6d382047d53 SHA1 67f28e5d810ed25e020dac16087fff015f55c474 SHA256 eb42a35228574b7e778cd4945b20041bd2b663e97db3502f6141c7a5ad01f1c2 +MISC metadata.xml 334 RMD160 4bbb68c6d92400d8cc600dcddaecc39f30fad7db SHA1 7ead27ae3a05ffcd4e295262d73cce4863b6129e SHA256 b5d11d2edf5782c930b845696571b9417f4f4b247ca4dad494daf470f749fe16 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iQEcBAEBCAAGBQJM0H28AAoJEMOx0zmdw4Z1ixIH/1Qvbh3Ldl1przVuT5+lRYtl +sjo0ZNb/3Fy/uWaN4BAPn3+vfyr6YY840LmVGlU4GV4ANFDvZHEXFOejRW0FW1k3 +hlig9sodrCNhVE1qMsFLzqY76eZfj5ZcsijYTIcf/Om4FH0kuPg5+eumCio3VzC7 +/E9/T88yF0+U/2oHKVy260wAyzo/ca0FACXDTB+FGzR8kYIqHbIutanubGM2bLbY +QF3/4dUI5nTzSiTORfUZq2eL29RfgyyIZvJezwh4PqW2QJLhgrL9J4v/8wnn4FhS +MuregXd/ygyZ8UjEY9/wsid1q1nsNMlB2+iLN9ccP/zU4c4JqPifq9F3e9w6uyE= +=YXIP +-----END PGP SIGNATURE----- diff --git a/dev-vcs/gitolite-gentoo/files/gitolite-require.patch b/dev-vcs/gitolite-gentoo/files/gitolite-require.patch new file mode 100644 index 000000000000..37d903f1236f --- /dev/null +++ b/dev-vcs/gitolite-gentoo/files/gitolite-require.patch @@ -0,0 +1,133 @@ +From 66b65e5e1db512e695588f326f7339fb5d5a7478 Mon Sep 17 00:00:00 2001 +From: Sitaram Chamarty <sitaram@atc.tcs.com> +Date: Sat, 23 Oct 2010 16:43:47 +0530 +Subject: [PATCH 03/14] (doh!) make gitolite.pm easier for packagers + +should have done this long ago... +--- + contrib/adc/gl-reflog | 4 +++- + contrib/gitweb/gitweb.conf | 3 ++- + hooks/common/update | 3 ++- + src/gl-auth-command | 3 ++- + src/gl-compile-conf | 3 ++- + src/gl-install | 3 ++- + src/gl-setup-authkeys | 3 ++- + src/gl-time | 3 ++- + 8 files changed, 17 insertions(+), 8 deletions(-) + +diff --git a/contrib/adc/gl-reflog b/contrib/adc/gl-reflog +index aa59e15..c6f134b 100755 +--- a/contrib/adc/gl-reflog ++++ b/contrib/adc/gl-reflog +@@ -33,7 +33,9 @@ use warnings; + my($cmd, $repo, $ref, $limit) = @ARGV; + $limit ||= 10; + +-require "$ENV{GL_BINDIR}/gitolite.pm" or die "parse gitolite.pm failed\n"; ++unshift @INC, $ENV{GL_BINDIR}; ++require gitolite or die "parse gitolite.pm failed\n"; ++ + my ($perm, $creator, $wild) = &repo_rights($repo); + die "you don't have read access to $repo\n" unless $perm =~ /R/; + +diff --git a/contrib/gitweb/gitweb.conf b/contrib/gitweb/gitweb.conf +index edf9af4..283879f 100644 +--- a/contrib/gitweb/gitweb.conf ++++ b/contrib/gitweb/gitweb.conf +@@ -25,7 +25,8 @@ $ENV{GL_REPO_BASE_ABS} = ( $REPO_BASE =~ m(^/) ? $REPO_BASE : "$gl_home/$REPO_BA + $projects_list = $projectroot = $ENV{GL_REPO_BASE_ABS}; + + # load gitolite helper routines +-require "$GL_ADMINDIR/src/gitolite.pm" ++unshift @INC, "$GL_ADMINDIR/src"; ++require gitolite + or die_error(500, "Failed to parse gitolite.pm: " . ($! or $@)); + + $export_auth_hook = sub { +diff --git a/hooks/common/update b/hooks/common/update +index 93d3dac..d7296ae 100755 +--- a/hooks/common/update ++++ b/hooks/common/update +@@ -35,7 +35,8 @@ exit 0 if exists $ENV{GL_BYPASS_UPDATE_HOOK}; + # we should already have the GL_RC env var set when we enter this hook + die "parse $ENV{GL_RC} failed: " . ($! or $@) unless do $ENV{GL_RC}; + +-require "$ENV{GL_BINDIR}/gitolite.pm"; ++unshift @INC, $ENV{GL_BINDIR}; ++require gitolite or die "parse gitolite.pm failed\n"; + + my ($perm, $creator, $wild) = &repo_rights($ENV{GL_REPO}); + my $reported_repo = $ENV{GL_REPO} . ( $ENV{GL_REPOPATT} ? " ($ENV{GL_REPOPATT})" : "" ); +diff --git a/src/gl-auth-command b/src/gl-auth-command +index 0ef6ceb..0db6862 100755 +--- a/src/gl-auth-command ++++ b/src/gl-auth-command +@@ -43,7 +43,8 @@ our %repo_config; + my $bindir = $0; + $bindir =~ s/\/[^\/]+$//; + $bindir = "$ENV{PWD}/$bindir" unless $bindir =~ /^\//; +-require "$bindir/gitolite.pm"; ++unshift @INC, $bindir; ++require gitolite or die "parse gitolite.pm failed\n"; + + # ask where the rc file is, get it, and "do" it + &where_is_rc(); +diff --git a/src/gl-compile-conf b/src/gl-compile-conf +index efc4bc5..82f73f4 100755 +--- a/src/gl-compile-conf ++++ b/src/gl-compile-conf +@@ -60,7 +60,8 @@ our ($REPONAME_PATT, $REPOPATT_PATT, $USERNAME_PATT, $ABRT, $WARN); + my $bindir = $0; + $bindir =~ s/\/[^\/]+$//; + $bindir = "$ENV{PWD}/$bindir" unless $bindir =~ /^\//; +-require "$bindir/gitolite.pm"; ++unshift @INC, $bindir; ++require gitolite or die "parse gitolite.pm failed\n"; + + # ask where the rc file is, get it, and "do" it + &where_is_rc(); +diff --git a/src/gl-install b/src/gl-install +index e941092..844b2c9 100755 +--- a/src/gl-install ++++ b/src/gl-install +@@ -28,7 +28,8 @@ sub wrap_mkdir + # the common setup module is in the same directory as this running program is + my $bindir = $0; + $bindir =~ s/\/[^\/]+$//; +-require "$bindir/gitolite.pm"; ++unshift @INC, $bindir; ++require gitolite or die "parse gitolite.pm failed\n"; + + # ask where the rc file is, get it, and "do" it + &where_is_rc(); +diff --git a/src/gl-setup-authkeys b/src/gl-setup-authkeys +index 758adac..c431cc5 100755 +--- a/src/gl-setup-authkeys ++++ b/src/gl-setup-authkeys +@@ -30,7 +30,8 @@ our ($GL_PERFLOGT); + my $bindir = $0; + $bindir =~ s/\/[^\/]+$//; + $bindir = "$ENV{PWD}/$bindir" unless $bindir =~ /^\//; +-require "$bindir/gitolite.pm"; ++unshift @INC, $bindir; ++require gitolite or die "parse gitolite.pm failed\n"; + + # prevent newbie from running it accidentally and clobbering his authkeys + # file! +diff --git a/src/gl-time b/src/gl-time +index d68df5e..26102f9 100755 +--- a/src/gl-time ++++ b/src/gl-time +@@ -22,7 +22,8 @@ do "$ENV{HOME}/.gitolite.rc"; + my $bindir = $0; + $bindir =~ s/\/[^\/]+$//; + $bindir = "$ENV{PWD}/$bindir" unless $bindir =~ /^\//; +-require "$bindir/gitolite.pm"; ++unshift @INC, $bindir; ++require gitolite or die "parse gitolite.pm failed\n"; + + # --------------------------------------------------------------- + +-- +1.7.2.2 + diff --git a/dev-vcs/gitolite-gentoo/gitolite-gentoo-1.5.6.ebuild b/dev-vcs/gitolite-gentoo/gitolite-gentoo-1.5.6.ebuild new file mode 100644 index 000000000000..60e50fa25073 --- /dev/null +++ b/dev-vcs/gitolite-gentoo/gitolite-gentoo-1.5.6.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/gitolite-gentoo/gitolite-gentoo-1.5.6.ebuild,v 1.1 2010/11/02 21:08:07 idl0r Exp $ + +EAPI=3 + +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.2" +RDEPEND="${DEPEND} + !dev-vcs/gitolite + vim-syntax? ( app-vim/gitolite-syntax )" + +pkg_setup() { + enewgroup git + enewuser git -1 /bin/bash /var/lib/gitolite git +} + +src_prepare() { + epatch "${FILESDIR}/gitolite-require.patch" + + rm -rf Makefile doc/COPYING contrib/{autotoc,gitweb,vim} + + echo "${PF}" > conf/VERSION +} + +src_install() { + dodir /usr/share/gitolite/{conf,hooks} /usr/bin || die + + ./src/gl-system-install "${D}"/usr/bin \ + "${D}"/usr/share/gitolite/conf "${D}"/usr/share/gitolite/hooks || die + dosed "s:${D}::g" usr/bin/gl-setup \ + usr/share/gitolite/conf/example.gitolite.rc || die + + rm "${D}/usr/bin/gitolite.pm" + insinto "${VENDOR_LIB}" + doins src/gitolite.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 +} diff --git a/dev-vcs/gitolite-gentoo/metadata.xml b/dev-vcs/gitolite-gentoo/metadata.xml new file mode 100644 index 000000000000..21d4fb8b6e52 --- /dev/null +++ b/dev-vcs/gitolite-gentoo/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>idl0r@gentoo.org</email> + <name>Christian Ruppert</name> + </maintainer> + <use> + <flag name="contrib">Install user-contributed files</flag> + </use> +</pkgmetadata> + |