Manuel Friedli
e233c14c0f
Add ebuild for version 0.66.0 Package-Manager: Portage-2.3.19, Repoman-2.3.6
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI="6"
|
|
|
|
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitaly.git"
|
|
EGIT_COMMIT="v${PV}"
|
|
|
|
inherit eutils git-r3 user
|
|
|
|
DESCRIPTION="Gitaly is a Git RPC service for handling all the git calls made by GitLab."
|
|
HOMEPAGE="https://gitlab.com/gitlab-org/gitaly"
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86 ~arm"
|
|
|
|
DEPEND=">=dev-lang/go-1.8.3
|
|
dev-ruby/bundler"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/0001-${PN}-0.23.0-fix-Makefile.patch"
|
|
epatch "${FILESDIR}/0002-${PN}-0.66.0-fix-config.toml.example.patch"
|
|
eapply_user
|
|
}
|
|
|
|
src_install() {
|
|
# TODO fowners, fperms on config.toml.example
|
|
insinto "/etc/gitlab"
|
|
newins "config.toml.example" "gitaly-config.toml"
|
|
newconfd "${FILESDIR}/${PN}-0.66.0.conf" "gitlab-gitaly"
|
|
newinitd "${FILESDIR}/${PN}-0.66.0.init" "gitlab-gitaly"
|
|
into "/usr"
|
|
newbin "gitaly" "gitlab-gitaly"
|
|
|
|
# install gitaly-ruby
|
|
insinto "/var/lib/gitlab-gitaly"
|
|
doins -r "ruby"
|
|
fperms 0755 /var/lib/gitlab-gitaly/ruby/bin/{gitaly-ruby,ruby-cd}
|
|
}
|