61 lines
1.3 KiB
Bash
61 lines
1.3 KiB
Bash
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: $
|
||
|
|
||
|
EAPI="5"
|
||
|
|
||
|
inherit eutils user
|
||
|
|
||
|
DESCRIPTION="GitLab Git HTTP Server is the new backend for Git-over-HTTP communication needed for GitLab >= 8.0"
|
||
|
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-git-http-server"
|
||
|
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=${PV} -> ${P}.tar.bz2"
|
||
|
S="${WORKDIR}/${P}-ffd46d3adeb1ebaf88eaedf4d4845834cfe8b385"
|
||
|
RESTRICT="mirror"
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
|
DEPEND="dev-vcs/git"
|
||
|
CDEPEND="dev-lang/go"
|
||
|
RDEPEND="${DEPEND}
|
||
|
net-libs/nodejs
|
||
|
virtual/mta"
|
||
|
|
||
|
MY_NAME="${PN}"
|
||
|
MY_USER="gitlab_git_http_server"
|
||
|
|
||
|
DEST_DIR="/opt/${MY_NAME}"
|
||
|
LOGS_DIR="/var/log/${MY_NAME}"
|
||
|
TEMP_DIR="/var/tmp/${MY_NAME}"
|
||
|
RUN_DIR="/run/${MY_NAME}"
|
||
|
|
||
|
#pkg_setup() {
|
||
|
#}
|
||
|
|
||
|
src_prepare() {
|
||
|
epatch "${FILESDIR}/fix-Makefile-${PV}.patch"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
local dest=/usr/bin
|
||
|
|
||
|
diropts -m755
|
||
|
dodir ${dest}
|
||
|
|
||
|
exeinto ${dest}
|
||
|
doexe "${S}/${PN}"
|
||
|
|
||
|
# fix permissions
|
||
|
# fowners -R ${MY_USER}:${MY_USER} ${dest}
|
||
|
|
||
|
## RC script ##
|
||
|
newinitd "${FILESDIR}/gitlab-git-http-server.init" "${PN}"
|
||
|
newconfd "${FILESDIR}/gitlab-git-http-server.conf" "${PN}"
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
enewgroup ${MY_USER}
|
||
|
enewuser ${MY_USER} -1 -1 -1 ${MY_USER}
|
||
|
}
|