added ebuild for dev-vcs/gitlab-workhorse-0.4.2
This commit is contained in:
parent
3e3f92135e
commit
4c76aaa3f6
6 changed files with 95 additions and 0 deletions
16
dev-vcs/gitlab-workhorse/files/fix-Makefile-0.4.2.patch
Normal file
16
dev-vcs/gitlab-workhorse/files/fix-Makefile-0.4.2.patch
Normal file
|
@ -0,0 +1,16 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index c2c8c59..419f4d8 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,8 +1,8 @@
|
||||
-PREFIX=/usr/local
|
||||
-VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S)
|
||||
+PREFIX=${DESTDIR}/usr
|
||||
+VERSION=0.4.2-$(shell date -u +%Y%m%d.%H%M%S)
|
||||
|
||||
gitlab-workhorse: $(wildcard *.go)
|
||||
- go build -ldflags "-X main.Version ${VERSION}" -o gitlab-workhorse
|
||||
+ go build -ldflags "-X main.Version=${VERSION}" -o gitlab-workhorse
|
||||
|
||||
install: gitlab-workhorse
|
||||
install gitlab-workhorse ${PREFIX}/bin/
|
11
dev-vcs/gitlab-workhorse/files/gitlab-workhorse.conf
Normal file
11
dev-vcs/gitlab-workhorse/files/gitlab-workhorse.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
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=git
|
||||
RUNAS_GROUP=${RUNAS_USER}
|
||||
LOGFILE=/var/log/gitlab/gitlab-workhorse.log
|
16
dev-vcs/gitlab-workhorse/files/gitlab-workhorse.init
Normal file
16
dev-vcs/gitlab-workhorse/files/gitlab-workhorse.init
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/sbin/runscript
|
||||
|
||||
start() {
|
||||
ebegin "Starting gitlab-workhorse"
|
||||
start-stop-daemon --start --exec /usr/bin/gitlab-workhorse --pidfile /run/gitlab-workhorse.pid \
|
||||
--make-pidfile --background --user ${RUNAS_USER}:${RUNAS_GROUP} --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
|
||||
-- -authBackend=${AUTH_BACKEND} -listenAddr=${LISTEN_ADDR} -listenNetwork=${LISTEN_NETWORK} -listenUmask=${LISTEN_UMASK} \
|
||||
-pprofListenAddr=${PPROF_LISTEN_ADDR} ${GIT_REPO_PATH}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping gitlab-workhorse"
|
||||
start-stop-daemon --stop --exec /usr/bin/gitlab-workhorse --pidfile /run/gitlab-workhorse.pid --user ${RUNAS_USER}:${RUNAS_GROUP}
|
||||
eend $?
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue