1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit perl-module user versionator
9 DESCRIPTION="Highly flexible server for git directory version tracker"
10 HOMEPAGE="https://github.com/sitaramc/gitolite"
11 SRC_URI="https://github.com/sitaramc/gitolite/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~arm ~x86"
16 IUSE="tools vim-syntax"
19 virtual/perl-File-Path
20 virtual/perl-File-Temp
23 !dev-vcs/gitolite-gentoo
24 vim-syntax? ( app-vim/gitolite-syntax )
29 enewuser git -1 /bin/sh /var/lib/gitolite git
33 echo $PF > src/VERSION
37 local uexec=/usr/libexec/${PN}
39 rm -rf src/lib/Gitolite/Test{,.pm}
41 doins -r src/lib/Gitolite
43 dodoc README.txt CHANGELOG
47 doins -r src/{commands,syntactic-sugar,triggers,VREF}/
53 doexe src/gitolite{,-shell}
56 for bin in gitolite{,-shell}; do
57 dosym /usr/libexec/${PN}/${bin} /usr/bin/${bin}
61 dobin check-g2-compat convert-gitosis-conf
64 keepdir /var/lib/gitolite
65 fowners git:git /var/lib/gitolite
66 fperms 750 /var/lib/gitolite
68 fperms 0644 ${uexec}/VREF/MERGE-CHECK # It's meant as example only
72 if [[ "$(get_major_version $REPLACING_VERSIONS)" == "2" ]]; then
74 elog "***NOTE*** This is a major upgrade and will likely break your existing gitolite-2.x setup!"
75 elog "Please read http://gitolite.com/gitolite/migr.html first!"
80 elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitolite)."
81 elog "Especially if you're migrating from gitosis."