moved ebuild for gitlab-git-http-server from www-apps to dev-vcs, incremented version from 0.2.9 to 0.2.10

This commit is contained in:
Manuel Friedli 2015-09-26 13:57:01 +02:00
parent 5a8a84ade0
commit ea8dd0e860
6 changed files with 7 additions and 7 deletions

View file

@ -0,0 +1,5 @@
AUX fix-Makefile.patch 385 SHA256 879ab15c1770414da4a3001664fd30a11a9e95436dc0539330a66c85659b6c8d SHA512 6332a20689061f5e1c712113788fed843409b466dec5f1e5eee98ccf37316a065294e9321f3c2d1aed5a164788d5c6b1724a67949cfe2917b8c2b6374fb8a0ef WHIRLPOOL 250eef6fa2526c4e25237c8ba7fafa8acf72cf5b1c549c1e45f60a1a21237e6865fcb0523ed60be0f1d206b27dfb876201ad8042077097d4ed37b0e154df7241
AUX gitlab-git-http-server.conf 222 SHA256 363b39f109219d478d3060b300115eddffd17988569ad485bfab0f4ad5cb5374 SHA512 f246cafbd4d7e7b7c30c24396751ff0d6f549934e87aad10e668b1bfe37de0bd319827dee2392919455ffd05977aa5a198a25d6664dda1d4100b42c303f20f1f WHIRLPOOL 901bc146461d532b1b9cedc506f9baf99a9064dd4e88adbdbd2761abf57814de5aca6fda990143618575a5a4865dd2b8789ed9ec3a6195f14a077eb12bc2c660
AUX gitlab-git-http-server.init 417 SHA256 0aefe5e8c85a98bb177ebd20e952051717381fe147a70488523d97e335d43f50 SHA512 70afebf1b382f2b1cc5cdf6bb6d22393161938a241aabadc4332296f430a4f73a38ba257ac0363f43f9a6329a1c04428060f64bc8f506c9bedf578333a3ae790 WHIRLPOOL 222eb1636a3c9fa3320e53bc9facb096cad4555a451b6ce504845798c1bd6518af0b1d839149373602dd2279007364c893d818d7ec7205c01132e7942b47c83c
DIST gitlab-git-http-server-0.2.10.tar.bz2 7150 SHA256 13a43078c2fe321c83c4af61db087ed5f1bef443a866dd05704717e197ce8f2a SHA512 faae12473e3994bfed31c7b13ad20e30f74a954db1b622ff911dce9be4dbc1a54a0ee4d0e9706f443928ad72ea810184360c590251e8012a882e8dea1538878b WHIRLPOOL c0b8ad7143bfc40b0540a5dd3466eb26b8698a3aa307a0086020d42968d23f785b4a22309b04f6923e6003efa53dc4a4412ec13fb7ec5c21f54220d04d786032
EBUILD gitlab-git-http-server-0.2.10.ebuild 1007 SHA256 eb1c287467d8b1c6bbc0a91067f85f730a2ac887540cd6d9c7cf63ff3ba76b90 SHA512 0103ba8e3ccb914b919c81ec9561f61cee40e278909d6fdcb6f77130f1892f0c730b3fe6b9182e7af3c388efa1345aa91099dbdad48f09e81d0fc31a48e5e197 WHIRLPOOL c26b85a6d1d01e6047c775d50a7a39cac6fe3309ab61a9715b37f5bf72fec8df1f351fc8c6c97092f5d84ce837307d9f6d01eb88047ad0d773150f071b61a714

View file

@ -0,0 +1,12 @@
diff --git a/Makefile b/Makefile
index f6456e1..c25e29e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-PREFIX=/usr/local
-VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S)
+PREFIX=${DESTDIR}/usr
+VERSION=0.2.9-$(shell date -u +%Y%m%d.%H%M%S)
gitlab-git-http-server: main.go githandler.go
go build -ldflags "-X main.Version ${VERSION}" -o gitlab-git-http-server

View file

@ -0,0 +1,10 @@
AUTH_BACKEND=http://localhost:8080
LISTEN_ADDR=localhost:8181
LISTEN_NETWORK=tcp
LISTEN_UMASK=022
PPROF_LISTEN_ADDRESS=
GIT_REPO_PATH=/var/lib/git/repositories
RUNAS_USER=gitlab_git_http_server
RUNAS_GROUP=${RUNAS_USER}

View file

@ -0,0 +1,9 @@
#!/sbin/runscript
start() {
ebegin "Starting gitlab-git-http-server"
start-stop-daemon --start --exec /usr/bin/gitlab-git-http-server --pidfile /run/gitlab-git-http-server.pid \
--make-pidfile --user ${RUNAS_USER}:${RUNAS_GROUP} \
-- -authBackend=${AUTH_BACKEND} -listenAddr=${LISTEN_ADDR} -listenNetwork=${LISTEN_NETWORK} -listenUmask=${LISTEN_UMASK} \
-pprofListenAddr=${PPROF_LISTEN_ADDR} ${GIT_REPO_PATH}
}

View file

@ -0,0 +1,44 @@
# 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}-c846662dced60bb1eef5cc4f59e4e71cc8aa5c5d"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
CDEPEND=">=dev-lang/go-1.5"
MY_USER="gitlab_git_http_server"
src_prepare() {
epatch "${FILESDIR}/fix-Makefile.patch"
}
src_install() {
local dest=/usr/bin
diropts -m755
dodir ${dest}
exeinto ${dest}
doexe "${S}/${PN}"
## 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}
}