www-servers/gitlab-pages:
added first ebuild for gitlab-pages Package-Manager: portage-2.3.3
This commit is contained in:
parent
e08a15d297
commit
47940f510c
7 changed files with 141 additions and 0 deletions
18
www-servers/gitlab-pages/files/0001-fix-Makefile-0.3.2.patch
Normal file
18
www-servers/gitlab-pages/files/0001-fix-Makefile-0.3.2.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
diff --git a/src/gitlab.com/gitlab-org/gitlab-pages/Makefile b/src/gitlab.com/gitlab-org/gitlab-pages/Makefile
|
||||
index 2c1b8e1..4c6feb0 100644
|
||||
--- a/src/gitlab.com/gitlab-org/gitlab-pages/Makefile
|
||||
+++ b/src/gitlab.com/gitlab-org/gitlab-pages/Makefile
|
||||
@@ -1,12 +1,6 @@
|
||||
-REVISION := $(shell git rev-parse --short HEAD || echo unknown)
|
||||
-LAST_TAG := $(shell git describe --tags --abbrev=0)
|
||||
-COMMITS := $(shell echo `git log --oneline $(LAST_TAG)..HEAD | wc -l`)
|
||||
+REVISION := @@REVISION@@
|
||||
VERSION := $(shell cat VERSION)
|
||||
|
||||
-ifneq (v$(VERSION),$(LAST_TAG))
|
||||
- VERSION := $(shell echo $(VERSION)~beta.$(COMMITS).g$(REVISION))
|
||||
-endif
|
||||
-
|
||||
GO_LDFLAGS ?= -X main.VERSION=$(VERSION) -X main.REVISION=$(REVISION)
|
||||
GO_FILES ?= $(shell find . -name '*.go')
|
||||
|
7
www-servers/gitlab-pages/files/gitlab-pages-0.3.2.conf
Normal file
7
www-servers/gitlab-pages/files/gitlab-pages-0.3.2.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
LISTEN_HTTP=:9090
|
||||
LISTEN_HTTPS=
|
||||
LISTEN_PROXY=
|
||||
PAGES_DOMAIN=example-pages.com
|
||||
PAGES_ROOT=/opt/gitlab/shared/pages
|
||||
|
||||
LOGFILE=/var/log/gitlab/gitlab-pages.log
|
16
www-servers/gitlab-pages/files/gitlab-pages-0.3.2.init
Normal file
16
www-servers/gitlab-pages/files/gitlab-pages-0.3.2.init
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
start() {
|
||||
ebegin "Starting gitlab-pages"
|
||||
start-stop-daemon --start --exec /usr/bin/gitlab-pages --pidfile /run/gitlab-pages.pid \
|
||||
--make-pidfile --background --user @USER@:@USER@ --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
|
||||
-- -listen-http "${LISTEN_HTTP}" -listen-https "${LISTEN_HTTPS}" -listen-proxy "${LISTEN_PROXY}" \
|
||||
-pages-domain "${PAGES_DOMAIN}" -pages-root "${PAGES_ROOT}"
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping gitlab-workhorse"
|
||||
start-stop-daemon --stop --exec /usr/bin/gitlab-pages --pidfile /run/gitlab-workhorse.pid --user @USER@:@USER@
|
||||
eend $?
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue