39 lines
878 B
Bash
39 lines
878 B
Bash
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
|
EAPI="5"
|
||
|
|
||
|
inherit eutils user
|
||
|
|
||
|
DESCRIPTION="GitLab Workhorse is the new backend for Git-over-HTTP communication needed for GitLab >= 8.2"
|
||
|
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-workhorse"
|
||
|
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=${PV} -> ${P}.tar.bz2"
|
||
|
S="${WORKDIR}/${P}-7a84085b1671f5d6b28408a83ff97a4ff3428b71"
|
||
|
RESTRICT="mirror"
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
|
DEPEND=">=dev-lang/go-1.5.1
|
||
|
!dev-vcs/gitlab-git-http-server"
|
||
|
|
||
|
src_prepare() {
|
||
|
epatch "${FILESDIR}/fix-Makefile-${PV}.patch"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
local dest=/usr/bin
|
||
|
|
||
|
diropts -m755
|
||
|
dodir ${dest}
|
||
|
|
||
|
exeinto ${dest}
|
||
|
doexe "${S}/${PN}"
|
||
|
|
||
|
## RC script ##
|
||
|
newinitd "${FILESDIR}/${PN}.init" "${PN}"
|
||
|
newconfd "${FILESDIR}/${PN}.conf" "${PN}"
|
||
|
}
|