Purge Gitlab ebuilds and dependencies #15
110 changed files with 0 additions and 9837 deletions
|
@ -1,7 +0,0 @@
|
||||||
*go-bindata-3.0.8_alpha (24 Oct 2016)
|
|
||||||
|
|
||||||
24 Oct 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0001-github-path.patch, +go-bindata-3.0.8_alpha.ebuild, +metadata.xml:
|
|
||||||
dev-go/go-bindata: added ebuild for go-bindata, which is simply copied from
|
|
||||||
the mrueg overlay, but references the forked go-bindata of fritteli that has a
|
|
||||||
tag instead of referencing an arbitrary commit hash
|
|
|
@ -1,5 +0,0 @@
|
||||||
AUX 0001-github-path.patch 876 SHA256 668024c830d2459e963f113b556ac18eb7e66ca60c1d91623f6c5ef145352743 SHA512 c25eb5393d202c3b51316b8a7ed45bb37c27612f0849914851b74085e8a123dace9c0cbb694306c2eca05b3d2435ea4ef949d29d27e1ce82a6f6a1ccd80e9965 WHIRLPOOL 541673de305cc5c3d5fbb339ba325a616427218e83ca47db2e4d3ea5a4e8b57ac37fff4bb9e87d6e91245579fd28ee0f25e372752299557f8a969731b194e507
|
|
||||||
DIST go-bindata-3.0.8_alpha.tar.gz 17877 SHA256 59fa7f3cae0a06a140e118c899a043f15520f386f9472e800223e43a0f105a82 SHA512 d1ca839960eb3596d3003c56bf4d72ebb7a31992f6e0677448184e3c95b91bdbb7686ceea5bf132299965bf228c5b899d7ddce2ed3065909842b69282f541575 WHIRLPOOL e05734ce514a2b5a5cbeb5c3cd5952a2a1c9c6427ce2f337c2c518f624709008023475788fa1ea6fad69fe6d4909eb8652c9414f98f7a54834d494626a7aef6c
|
|
||||||
EBUILD go-bindata-3.0.8_alpha.ebuild 684 SHA256 f594bf35ec32b1bc7e8e0e6a2532d2bf913ef3f269ab54c17d13e16f7d4c41c0 SHA512 77ad9c45436053511dd56eff1f38d57b3e33247f00f9a1f83b768ba97f543ae846a6e4fd2e100bb16c95a79b7e3ecb24b4b8fa0063e76729c178af6d7684190c WHIRLPOOL 5b6159811f585dcc6f125ecb4ac9e9505381e8d98cc41cc4f1594285c412031972309a8e41b580d09a350f425952108811d0895ece8ef9d284088bfb789e3fa8
|
|
||||||
MISC ChangeLog 384 SHA256 291af0a791a378ce112ca01f14ecc696e7f0565e0148f60a1346d895eac7a24b SHA512 1abe3ab1f226a2c03be509289d3c2f4e1d2be3334a70b85288a2f9f21f004102d0d8dc65325519ad2719b1919f1d302b2ecac44d4e256561b8b222a125ed5a05 WHIRLPOOL 39a13ef06a98a2477625a00269e5a8fb5f5749015a124eba0c388789f62eef63e66e15205e575cecf74cb63ba9407380a94fb7b1bcf82d351e9f68308e1d135e
|
|
||||||
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1
|
|
|
@ -1,26 +0,0 @@
|
||||||
diff --git a/src/github.com/fritteli/go-bindata/README.md b/src/github.com/fritteli/go-bindata/README.md
|
|
||||||
index bca57f7..ea3a64f 100644
|
|
||||||
--- a/src/github.com/fritteli/go-bindata/README.md
|
|
||||||
+++ b/src/github.com/fritteli/go-bindata/README.md
|
|
||||||
@@ -13,7 +13,7 @@ output being generated.
|
|
||||||
|
|
||||||
To install the library and command line program, use the following:
|
|
||||||
|
|
||||||
- go get -u github.com/jteeuwen/go-bindata/...
|
|
||||||
+ go get -u github.com/fritteli/go-bindata/...
|
|
||||||
|
|
||||||
|
|
||||||
### Usage
|
|
||||||
diff --git a/src/github.com/fritteli/go-bindata/go-bindata/main.go b/src/github.com/fritteli/go-bindata/go-bindata/main.go
|
|
||||||
index 503a059..5513c99 100644
|
|
||||||
--- a/src/github.com/fritteli/go-bindata/go-bindata/main.go
|
|
||||||
+++ b/src/github.com/fritteli/go-bindata/go-bindata/main.go
|
|
||||||
@@ -12,7 +12,7 @@ import (
|
|
||||||
"regexp"
|
|
||||||
"strings"
|
|
||||||
|
|
||||||
- "github.com/jteeuwen/go-bindata"
|
|
||||||
+ "github.com/fritteli/go-bindata"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
|
@ -1,29 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit eutils golang-build golang-vcs-snapshot
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
|
|
||||||
EGO_PN="github.com/fritteli/${PN}/..."
|
|
||||||
EGIT_COMMIT="a0ff2567cfb70903282db057e799fd826784d41d"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN%/*}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="A small utility which generates Go code from any file"
|
|
||||||
HOMEPAGE="https://github.com/fritteli/${PN}"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="CC-PD"
|
|
||||||
SLOT="0/${PVR}"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-github-path.patch"
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
golang-build_src_install
|
|
||||||
dobin bin/*
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>manuel@fritteli.ch</email>
|
|
||||||
<name>Manuel Friedli</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,5 +0,0 @@
|
||||||
*gox-0.3.1_alpha (24 Oct 2016)
|
|
||||||
|
|
||||||
24 Oct 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0001-github-path.patch, +gox-0.3.1_alpha.ebuild, +metadata.xml:
|
|
||||||
dev-go/gox: added tagged version of gox
|
|
|
@ -1,5 +0,0 @@
|
||||||
AUX 0001-github-path.patch 2669 SHA256 4564c5fd1f811c29c9ac54b839cd79abfcc4004ac929d4c954d1415e81f523b8 SHA512 4173bd176f37b5c34580a43378105667c11eb011884ac8acd77355532cb65a7932c6541cc61fe14f8b65126204ab03840023c2553b509b2b739b396574654970 WHIRLPOOL 9afcd6366c277d3073d6c0289d7659eb3a21463c05e0c722f516a3ee4b16250a2283562fbcfb9c5a082436febf3b524d1f21599c2008f4e3b1fe2666c833ba64
|
|
||||||
DIST gox-0.3.1_alpha.tar.gz 15776 SHA256 e3088772684ec31b86a3cac8d5c08e0172f702dbae2233552e690128c3434990 SHA512 865921406c7f4d5724697dd9c6a64caeb48e09b274c3fedc43a3644311c8c40d602364b2097016d8334265eed064246e634943702a74dd8d223fe59c156b1ddd WHIRLPOOL 4690a13b6bd45b010cf02b5cddb03107514ba32e56955d14c4ebda882f5755927983cdc7eeb94da2ff0710c67f76cd9eeb97cbe132a3153da4ff8760eb9341f7
|
|
||||||
EBUILD gox-0.3.1_alpha.ebuild 662 SHA256 9ff17777a572feae9148a7836de5f67ea7f4f1329c4f1a076af3634135c1853f SHA512 dcab83b1a07c0ab2e7fd38545dd2563d91b5ec615585a13c4bd4cf5a0468f28ebff08e014588b13dc795620a4eb238a49f039c4854adc676784ecd88ffb1f9de WHIRLPOOL 52922e74d65d0092c1dfdda925e5e81aec06a608cdc852b13c51d61d53f0808d470db885186d07955e44e5e39a514f2dfa814ed4e0cd2a49ed98953694627f7d
|
|
||||||
MISC ChangeLog 199 SHA256 10972e08f881aa004ed3de3bbe91f20e8f6bfdec53a927e320ff762c80d5f729 SHA512 d0dd4510edcc809ce9f80afc8c64e7ffd5f3f4d48dc7b2172ad263f65478a351e53d78db476eda74023dd2cdeb8d89e47fb390b10bec393be576aa3e13246d44 WHIRLPOOL ba94db2c7c997ad4f996475683b76fd7d33dd1720cc2f0f629ea5d421455023f8a245b1a941f5ffffe2024f3d096aa835aae90f5f42c5b5fc9757c5d2dcde47e
|
|
||||||
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1
|
|
|
@ -1,74 +0,0 @@
|
||||||
diff --git a/src/github.com/fritteli/gox/README.md b/src/github.com/fritteli/gox/README.md
|
|
||||||
index cb3f27d..8eb664b 100644
|
|
||||||
--- a/src/github.com/fritteli/gox/README.md
|
|
||||||
+++ b/src/github.com/fritteli/gox/README.md
|
|
||||||
@@ -10,7 +10,7 @@ To install Gox, please use `go get`. We tag versions so feel free to
|
|
||||||
checkout that tag and compile.
|
|
||||||
|
|
||||||
```
|
|
||||||
-$ go get github.com/mitchellh/gox
|
|
||||||
+$ go get github.com/fritteli/gox
|
|
||||||
...
|
|
||||||
$ gox -h
|
|
||||||
...
|
|
||||||
@@ -27,22 +27,22 @@ by default and build for every platform by default:
|
|
||||||
$ gox
|
|
||||||
Number of parallel builds: 4
|
|
||||||
|
|
||||||
---> darwin/386: github.com/mitchellh/gox
|
|
||||||
---> darwin/amd64: github.com/mitchellh/gox
|
|
||||||
---> linux/386: github.com/mitchellh/gox
|
|
||||||
---> linux/amd64: github.com/mitchellh/gox
|
|
||||||
---> linux/arm: github.com/mitchellh/gox
|
|
||||||
---> freebsd/386: github.com/mitchellh/gox
|
|
||||||
---> freebsd/amd64: github.com/mitchellh/gox
|
|
||||||
---> openbsd/386: github.com/mitchellh/gox
|
|
||||||
---> openbsd/amd64: github.com/mitchellh/gox
|
|
||||||
---> windows/386: github.com/mitchellh/gox
|
|
||||||
---> windows/amd64: github.com/mitchellh/gox
|
|
||||||
---> freebsd/arm: github.com/mitchellh/gox
|
|
||||||
---> netbsd/386: github.com/mitchellh/gox
|
|
||||||
---> netbsd/amd64: github.com/mitchellh/gox
|
|
||||||
---> netbsd/arm: github.com/mitchellh/gox
|
|
||||||
---> plan9/386: github.com/mitchellh/gox
|
|
||||||
+--> darwin/386: github.com/fritteli/gox
|
|
||||||
+--> darwin/amd64: github.com/fritteli/gox
|
|
||||||
+--> linux/386: github.com/fritteli/gox
|
|
||||||
+--> linux/amd64: github.com/fritteli/gox
|
|
||||||
+--> linux/arm: github.com/fritteli/gox
|
|
||||||
+--> freebsd/386: github.com/fritteli/gox
|
|
||||||
+--> freebsd/amd64: github.com/fritteli/gox
|
|
||||||
+--> openbsd/386: github.com/fritteli/gox
|
|
||||||
+--> openbsd/amd64: github.com/fritteli/gox
|
|
||||||
+--> windows/386: github.com/fritteli/gox
|
|
||||||
+--> windows/amd64: github.com/fritteli/gox
|
|
||||||
+--> freebsd/arm: github.com/fritteli/gox
|
|
||||||
+--> netbsd/386: github.com/fritteli/gox
|
|
||||||
+--> netbsd/amd64: github.com/fritteli/gox
|
|
||||||
+--> netbsd/arm: github.com/fritteli/gox
|
|
||||||
+--> plan9/386: github.com/fritteli/gox
|
|
||||||
```
|
|
||||||
|
|
||||||
Or, if you want to build a package and sub-packages:
|
|
||||||
@@ -55,7 +55,7 @@ $ gox ./...
|
|
||||||
Or, if you want to build multiple distinct packages:
|
|
||||||
|
|
||||||
```
|
|
||||||
-$ gox github.com/mitchellh/gox github.com/hashicorp/serf
|
|
||||||
+$ gox github.com/fritteli/gox github.com/hashicorp/serf
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
diff --git a/src/github.com/fritteli/gox/toolchain.go b/src/github.com/fritteli/gox/toolchain.go
|
|
||||||
index b6926ab..e24d448 100644
|
|
||||||
--- a/src/github.com/fritteli/gox/toolchain.go
|
|
||||||
+++ b/src/github.com/fritteli/gox/toolchain.go
|
|
||||||
@@ -3,7 +3,7 @@ package main
|
|
||||||
import (
|
|
||||||
"bytes"
|
|
||||||
"fmt"
|
|
||||||
- "github.com/mitchellh/iochan"
|
|
||||||
+ "github.com/fritteli/iochan"
|
|
||||||
"io"
|
|
||||||
"os"
|
|
||||||
"os/exec"
|
|
|
@ -1,31 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit golang-build golang-vcs-snapshot eutils
|
|
||||||
|
|
||||||
EGO_PN="github.com/fritteli/gox/..."
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN%/*}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="A dead simple, no frills Go cross compile tool"
|
|
||||||
HOMEPAGE="https://github.com/fritteli/gox"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="MPL-2.0"
|
|
||||||
SLOT="0/${PVR}"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="dev-go/iochan"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-github-path.patch"
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
mkdir pkg || die
|
|
||||||
golang-build_src_install
|
|
||||||
dobin bin/*
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>manuel@fritteli.ch</email>
|
|
||||||
<name>Manuel Friedli</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,5 +0,0 @@
|
||||||
*iochan-0.0.1_alpha (24 Oct 2016)
|
|
||||||
|
|
||||||
24 Oct 2016; Manuel Friedli <manuel@fritteli.ch> +iochan-0.0.1_alpha.ebuild,
|
|
||||||
+metadata.xml:
|
|
||||||
dev-go/iochan: added tagged version (0.0.1-alpha)
|
|
|
@ -1,4 +0,0 @@
|
||||||
DIST iochan-0.0.1_alpha.tar.gz 1788 SHA256 6b86d3bd86f0b9a7e50ead590c7e400c969a3c77e5e57175919826ba21b705a0 SHA512 d35e1dfb2595da6d4376cb97f330a6b50e6187151d324b7d92256c409294cd6623589ac05f446b8fbc333802616aec3b1f0c267bf24852eef859cb144509c3c9 WHIRLPOOL b60409835b45c2ceb81efb8fb2a2665e588cc7c121cd6ac1fe96655f02bd62940d2eb5d06b202ea5223030df61fa159d197ad06d97480da7e328055ddd726585
|
|
||||||
EBUILD iochan-0.0.1_alpha.ebuild 481 SHA256 1f322a866f51e015e7b563687ec8556aae8f46370fc6393cb4f6bd41639e2970 SHA512 35a9afb292024c8f3131e4835f23bc7062248def32a94286dffa9a212247b9db3e1165bc55ef23d2fa4adb54657d985ce580e7063ef2656bce597caeace4d09e WHIRLPOOL 4db436883788854b3327431acc66e2330d345add745af55b7e3e6c2c3aced44d5b7b5ade3035bb83224bc443d151b52a17909290358d159751bc51a398e0a0d8
|
|
||||||
MISC ChangeLog 184 SHA256 4e2609ea049116d3b555188f1fb7744348c26d684ef86a9104cfab8423d5695e SHA512 9ddd00a0b0b1394c62f1d132581ceff457c2f62c94af69fa71936cfc89a895eb04cf0272d318fb166f4fc8c077cda7914a29a838d8183eda91c058174ff73ee1 WHIRLPOOL 2c1197d58e38b4c93c23dd88b7b60e50f274b1367596819d0713e51683ebb5cdd76633ebbb48f60719c54f2b06df7cfbed4ebdb49662a318df4daa694bc9bb74
|
|
||||||
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1
|
|
|
@ -1,17 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit golang-build golang-vcs-snapshot
|
|
||||||
|
|
||||||
EGO_PN="github.com/fritteli/iochan/..."
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN%/*}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="A Go library for turning io.Reader into channels"
|
|
||||||
HOMEPAGE="https://github.com/fritteli/iochan"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0/${PVR}"
|
|
||||||
IUSE=""
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>manuel@fritteli.ch</email>
|
|
||||||
<name>Manuel Friedli</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,76 +0,0 @@
|
||||||
08 Mar 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-gitlab-ci-multi-runner-9.4.2.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: Purge old version of gitlab-ci-multi-runner
|
|
||||||
|
|
||||||
*gitlab-ci-multi-runner-9.4.2 (17 Sep 2017)
|
|
||||||
*gitlab-ci-multi-runner-9.5.0 (17 Sep 2017)
|
|
||||||
|
|
||||||
17 Sep 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+gitlab-ci-multi-runner-9.4.2.ebuild, +gitlab-ci-multi-runner-9.5.0.ebuild,
|
|
||||||
-gitlab-ci-multi-runner-9.3.0-r1.ebuild, -gitlab-ci-multi-runner-9.4.1.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: Update gitlab-ci-multi-runner ebuilds.
|
|
||||||
|
|
||||||
06 Sep 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/0001-fix-Makefile-1.10.4.patch, -files/0001-fix-Makefile-1.11.1.patch,
|
|
||||||
-files/0001-fix-Makefile-1.8.0.patch, -files/0001-fix-Makefile.patch,
|
|
||||||
-files/gitlab-ci-multi-runner.init, -gitlab-ci-multi-runner-1.10.4.ebuild,
|
|
||||||
-gitlab-ci-multi-runner-1.11.1.ebuild, -gitlab-ci-multi-runner-1.7.0.ebuild,
|
|
||||||
-gitlab-ci-multi-runner-1.8.0.ebuild, -gitlab-ci-multi-runner-1.9.2.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: Prune ebuilds <9.3.0-r1
|
|
||||||
|
|
||||||
30 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/gitlab-ci-multi-runner-9.3.0.init,
|
|
||||||
gitlab-ci-multi-runner-9.3.0-r1.ebuild, gitlab-ci-multi-runner-9.4.1.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: Hopefully fix the init script.
|
|
||||||
|
|
||||||
30 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
gitlab-ci-multi-runner-9.3.0-r1.ebuild, gitlab-ci-multi-runner-9.4.1.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: Fix name of installed binary.
|
|
||||||
|
|
||||||
*gitlab-ci-multi-runner-9.3.0-r1 (30 Jul 2017)
|
|
||||||
|
|
||||||
30 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+gitlab-ci-multi-runner-9.3.0-r1.ebuild, -gitlab-ci-multi-runner-9.3.0.ebuild,
|
|
||||||
gitlab-ci-multi-runner-9.4.1.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: Fix missing install of init script and add
|
|
||||||
ebuild for version 9.4.1.
|
|
||||||
|
|
||||||
*gitlab-ci-multi-runner-9.3.0 (25 Jul 2017)
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+gitlab-ci-multi-runner-9.3.0.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: Add ebuild for version 9.3.0; copied from the
|
|
||||||
mrueg overlay.
|
|
||||||
|
|
||||||
*gitlab-ci-multi-runner-1.11.1 (16 Mar 2017)
|
|
||||||
|
|
||||||
16 Mar 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0001-fix-Makefile-1.11.1.patch, +gitlab-ci-multi-runner-1.11.1.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: Added ebuild for gitlab-ci-multi-
|
|
||||||
runner-1.11.1
|
|
||||||
|
|
||||||
*gitlab-ci-multi-runner-1.10.4 (15 Feb 2017)
|
|
||||||
|
|
||||||
15 Feb 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0001-fix-Makefile-1.10.4.patch, +gitlab-ci-multi-runner-1.10.4.ebuild,
|
|
||||||
gitlab-ci-multi-runner-1.9.2.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: added ebuild for gitlab-ci-runner-1.10.4
|
|
||||||
|
|
||||||
*gitlab-ci-multi-runner-1.8.0 (23 Nov 2016)
|
|
||||||
|
|
||||||
23 Nov 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0001-fix-Makefile-1.8.0.patch, +gitlab-ci-multi-runner-1.8.0.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: added ebuild for gitlab-ci-multi-runner-1.8.0
|
|
||||||
|
|
||||||
25 Oct 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
files/gitlab-ci-multi-runner.init, gitlab-ci-multi-runner-1.7.0.ebuild:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: install init script, set up required
|
|
||||||
directories ... taken from gitlab-ci-multi-runner-bin
|
|
||||||
|
|
||||||
24 Oct 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0001-fix-Makefile.patch, -ChangeLog,
|
|
||||||
-gitlab-ci-multi-runner-1.4.1.ebuild, -gitlab-ci-multi-runner-1.5.0.ebuild,
|
|
||||||
-gitlab-ci-multi-runner-1.6.0.ebuild, files/gitlab-ci-multi-runner.init,
|
|
||||||
gitlab-ci-multi-runner-1.7.0.ebuild, metadata.xml:
|
|
||||||
dev-vcs/gitlab-ci-multi-runner: added source version of gitlab-ci-multi-
|
|
||||||
runner; mostly copied from the mrueg overlay, but with some additional patches
|
|
|
@ -1,8 +0,0 @@
|
||||||
AUX gitlab-ci-multi-runner-9.3.0.init 702 SHA256 124ad23c8af197e861a290bb5316fc23f100b7e25a5b1d8b169bb8adff39e3b7 SHA512 5f44e4245a5ccd6fe55484e8cb8a4254608fe02b37c151c472acafbe75bc8767b67fc28b8edef318114b5cfff1e3c7bb4b0bf7df28e9445e95784536fe0e6996 WHIRLPOOL ae1d3c4e4501bafee4252da7217a18791dccf318858877aa7cf84a37ed35a1bffda2e8e6e87ef4098816a4290cd5abbfb176aab83219e6176938fdf6e913fc9e
|
|
||||||
AUX gitlab-ci-multi-runner.conf 44 SHA256 0b93ba53d557fbf603b50f6d78eb2c4415b9a79f056142b6edf4a63fc6612d6e SHA512 1f5ff480740b18fc985ae9337b8dc4ddd1bde5253e09042b5542cb9a3db54b9cef1f7b24445c829eb83fcfd8751b693018154f6b97ce0a6e723d5d71d9a27429 WHIRLPOOL fc5218c55917b3303baf649fbafaf1dc50cf52d0ee04852716defe4f21b806f4f313071b1c55920d89da66180405d35da0f7cca73c2617b70bcaa67f725cab2a
|
|
||||||
DIST gitlab-ci-multi-runner-9.5.0-prebuilt-arm.tar.xz 8536276 SHA256 12d3106afeec6eacba9771e6c08ec851c002160b0c37b6a03516f035473a9746 SHA512 49ae61727a98082adfc6b0b9fd5b108fc7981f4628dc20a6dd6136102b9e17f3877ad61efff51e2ef3e7da40e01571dd2f94849fb120bec55ba028542751569c WHIRLPOOL 554f8511d8b44446879644eb032a86b494695c0dfa57ea6c26887e674a34e73af20f80781119ae772ebe21e0abf0729cfeb2324cb151c99819faa2b11603bbdb
|
|
||||||
DIST gitlab-ci-multi-runner-9.5.0-prebuilt-x86_64.tar.xz 9542776 SHA256 b771f522bb628d694fde2933fd293d4e4bfd1facf9b9650ecc940f8e6f817717 SHA512 da953698b2656d5d85a77891a3944951c8099ea61533b6c600d867edb4bb9ee90c799aadb46eb1509abee2810f98a511e20bb8f61adfce0b6c2cb008db1fc1b8 WHIRLPOOL aed32dcc2222195854886ee5bd07c3d3220493486de9a11e45910fc107a955cbe07b64067f45ceb12439c5b73cd60f70ab7653e0a14e9b1eb59144c808ddd3ae
|
|
||||||
DIST gitlab-ci-multi-runner-9.5.0.tar.gz 3561337 SHA256 ef50ff9bb6ed406b4815d0a65f4475c95dcc35fffa49bab41ca1867d3662ce8b SHA512 fc3622411da4f8ffed25a1569472e86a2ae4f0924f3758923894305bf0689028f8585cd2dc7504a1fa7e9b148dfd953ba92a9390b4df39464e16abf50f15302d WHIRLPOOL 34834dcbddfa0247f3ac2fec9093037c9accb039177c937483aa705b2eb0cf4a3fce974eb5361fec5bc3c804890a5c312ab85342fc78b23a2391b46300fa8d1f
|
|
||||||
EBUILD gitlab-ci-multi-runner-9.5.0.ebuild 2323 SHA256 2bc7f2232a6f2a09e8fa0f8788b1a62a3b76582575f9704c578428369adf3d8b SHA512 c555640eae9fab3589493eb62d3203449d708be2e5e1175944f5adedabfdcfa307ea16649f7b1f5843d1be4d0ef1e18d92b3cbe52b03b08d0174af383040b5bd WHIRLPOOL 101fae9675ac984db39848da392e35e67b46f9a491c1cc1241e41e5a6a8d2547c24574f73098ebb3c448bc8ac9db185d6568ae927ec92af52bb21bff61f5fbed
|
|
||||||
MISC ChangeLog 3567 SHA256 9634416fb6eaf775cc7af90a00ac7df42b7a3713b78b67086d4943aa5dbdf89b SHA512 6441c81dad79668743624b5f3ac21b89d447421c645561bd329b662c69f958f780fb028edfca690da690aedfd2606f336928086cdcd28e65522651d520f7ce42 WHIRLPOOL 0c0cc5e4143ce1acb5ae33233404d50bee4b560e27b939cd03df71e515424392e934e62f5aaf3019458944701694f054cfcbdff07ecf02cb6874daf4c5fdfa9b
|
|
||||||
MISC metadata.xml 329 SHA256 f0ae08a64aa32a07486e744ce11ac5448770b7320454015bcd065e312fcb5e9c SHA512 11e4eaf25633c5979e5243350bdf2ddc6d9dca06ab54ec38359591f1d002ea2a224e53b3e6c4ac53b5b2e795a87769fdbd97c547b008272e0a1491141f422e5d WHIRLPOOL ab2c1cb3d9aff1f757b49633f94d4b98da4b83dadab12ab8d869f9e1f6763b3125010147472e58e910e7fc42da262dbd69a1bf3939f3720a79ab4329184b4c35
|
|
|
@ -1,23 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 2015-2017 Nicolas Heine
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
after sshd
|
|
||||||
need net
|
|
||||||
need localmount
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting gitlab-ci-multi-runner"
|
|
||||||
checkpath -d /var/run
|
|
||||||
checkpath -f -o @USER@ -m640 "${LOGFILE}"
|
|
||||||
start-stop-daemon --start -b -u @USER@ --chdir @HOME@ --pidfile /var/run/gitlab-ci-multi-runner.pid -1 "${LOGFILE}" -2 "${LOGFILE}" --make-pidfile \
|
|
||||||
--exec /usr/bin/gitlab-ci-multi-runner -- run --config /etc/gitlab-runner/config.toml
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping gitlab-ci-multi-runner"
|
|
||||||
start-stop-daemon --stop --pidfile /var/run/gitlab-ci-multi-runner.pid
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
LOGFILE=/var/log/gitlab-ci-multi-runner.log
|
|
|
@ -1,82 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-ci-multi-runner"
|
|
||||||
|
|
||||||
GITLAB_COMMIT="413da38a"
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
|
|
||||||
DESCRIPTION="Official GitLab CI Runner written in Go"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-ci-multi-runner"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=v${PV} -> ${P}.tar.gz
|
|
||||||
!docker-build? (
|
|
||||||
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-x86_64.tar.xz -> ${P}-prebuilt-x86_64.tar.xz
|
|
||||||
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-arm.tar.xz -> ${P}-prebuilt-arm.tar.xz
|
|
||||||
)"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="docker-build"
|
|
||||||
|
|
||||||
DEPEND="dev-go/gox
|
|
||||||
dev-go/go-bindata
|
|
||||||
docker-build? ( >=app-emulation/docker-1.5 )"
|
|
||||||
|
|
||||||
RESTRICT="mirror test"
|
|
||||||
|
|
||||||
MY_USER="gitlab_ci_multi_runner"
|
|
||||||
MY_HOME_DIR="/opt/gitlab-ci-multi-runner"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 /bin/bash ${MY_HOME_DIR} ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
if ! use docker-build; then
|
|
||||||
mkdir -p out/docker || die
|
|
||||||
cp "${DISTDIR}"/${P}-prebuilt-x86_64.tar.xz out/docker/prebuilt-x86_64.tar.xz || die
|
|
||||||
cp "${DISTDIR}"/${P}-prebuilt-arm.tar.xz out/docker/prebuilt-arm.tar.xz || die
|
|
||||||
sed -i -e "s/docker info/echo false/" Makefile || die
|
|
||||||
else
|
|
||||||
einfo "You need to have docker running on your system during build time"
|
|
||||||
einfo "$(docker info)"
|
|
||||||
fi
|
|
||||||
sed -i -e "s#./ci/version#echo ${PV}#"\
|
|
||||||
-e "s/git rev-parse --short HEAD/echo ${GITLAB_COMMIT}/"\
|
|
||||||
-e "/^LATEST_STABLE_TAG/d"\
|
|
||||||
-e "s#git show-ref.*\$#echo gentoo)#"\
|
|
||||||
-e "s#git describe.*\$#echo 0), 0)#"\
|
|
||||||
Makefile || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN} build_current
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin src/${EGO_PN}/out/binaries/gitlab-ci-multi-runner
|
|
||||||
dodoc src/${EGO_PN}/README.md src/${EGO_PN}/CHANGELOG.md
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
local rcscript="${PN}-9.3.0.init"
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|" \
|
|
||||||
-e "s|@HOME@|${MY_HOME_DIR}|" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${PN}"
|
|
||||||
newconfd "${FILESDIR}/${PN}.conf" "${PN}"
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>manuel@fritteli.ch</email>
|
|
||||||
<name>Manuel Friedli</name>
|
|
||||||
</maintainer>
|
|
||||||
<use>
|
|
||||||
<flag name="docker-build">Use docker to build the images</flag>
|
|
||||||
</use>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,37 +0,0 @@
|
||||||
*gitlab-runner-10.3.1 (17 Feb 2018)
|
|
||||||
|
|
||||||
17 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-runner-10.3.1.ebuild:
|
|
||||||
dev-vcs/gitlab-runner: Add ebuild for version 10.3.1.
|
|
||||||
|
|
||||||
*gitlab-runner-10.2.1 (16 Feb 2018)
|
|
||||||
|
|
||||||
16 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-runner-10.2.1.ebuild:
|
|
||||||
dev-vcs/gitlab-runner: Add ebuild for version 10.2.1.
|
|
||||||
|
|
||||||
*gitlab-runner-10.1.1 (09 Feb 2018)
|
|
||||||
|
|
||||||
09 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-runner-10.1.1.ebuild,
|
|
||||||
-gitlab-runner-10.1.0.ebuild:
|
|
||||||
dev-vcs/gitlab-runner: Add ebuild for verison 10.1.1
|
|
||||||
|
|
||||||
*gitlab-runner-10.1.0 (06 Nov 2017)
|
|
||||||
|
|
||||||
06 Nov 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-runner-10.1.0.ebuild:
|
|
||||||
dev-vcs/gitlab-runner: Add ebuild for version 10.1.0.
|
|
||||||
|
|
||||||
05 Nov 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-runner-10.0.2.ebuild:
|
|
||||||
dev-vcs/gitlab-runner: Final fix.
|
|
||||||
|
|
||||||
05 Nov 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-runner-10.0.2.ebuild:
|
|
||||||
dev-vcs/gitlab-runner: Try and fix permissions
|
|
||||||
|
|
||||||
05 Nov 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-runner-10.0.2.ebuild:
|
|
||||||
dev-vcs/gitlab-runner: Fix user and group creation.
|
|
||||||
|
|
||||||
*gitlab-runner-10.0.2 (05 Nov 2017)
|
|
||||||
|
|
||||||
05 Nov 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/gitlab-runner-10.0.2.conf, +files/gitlab-runner-10.0.2.init,
|
|
||||||
+gitlab-runner-10.0.2.ebuild, +metadata.xml:
|
|
||||||
dev-vcs/gitlab-runner: Add ebuild for version 10.0.2; this is the first
|
|
||||||
ebuild of this package.
|
|
|
@ -1,20 +0,0 @@
|
||||||
AUX gitlab-runner-10.0.2.conf 65 SHA256 7f43b103c893213b1601887c379e0630947225e8ce2d9d548e05ff031187c102 SHA512 c4ced5e015342e36f7e8308f78a3294317aa30437e59d7a824cc51b3ac1716e9d75184bc97559550dbbdb4e8f46570e62e3f8d940d6c63a3169a22341a53efdc WHIRLPOOL 95596232009123d0e3c3393261bfce9995478a77e4778572bcb6213f49d3fb709d5a2e43e00403b8faa219ffc7b7b5f1fc553479323b8340ad5b1d2fba717303
|
|
||||||
AUX gitlab-runner-10.0.2.init 666 SHA256 42360338ff935726f6756c442de0fd381e10fb7c0573df2a737e2b7972252c53 SHA512 161046d47b81dd484795beecd79cd3034dd9436ab8f194cf64f7bf96bfa77db6d362f7c3e67c1f05685de18e64374c34441e654c3bd17f4493279244c9987923 WHIRLPOOL 43d0de31551a982bf50781c9d43cb36a442aaf3407473334d204a911f9570d6582c8380ecee53ef3dbdeff193f83a4f47dc6739b3c85b901215053708c5ecfd4
|
|
||||||
DIST gitlab-runner-10.0.2-prebuilt-arm.tar.xz 8548448 SHA256 b73a0690eef09c4f366342f98bec301020d47c16f98ac8a770f373dd81a76b04 SHA512 78919f68bbb31fce1792427b9067491b5ef0a557a184039eedf89110d47e875bc67c0a67fdd3165374c264aa411392dcda31574953e5ffacc2a141eaa85d4626 WHIRLPOOL 59cfe9d085318c3169da969846c216d7eb1b1f1a5ae52808f2721722fc6da48f25c87a1e2f257b7e3d9a0fc8e9d02e43622add867dc3403b2134c45715228ad8
|
|
||||||
DIST gitlab-runner-10.0.2-prebuilt-x86_64.tar.xz 9562480 SHA256 58c95075273f44ff926823aa9b5bf9fd4cb82c87adc27bef48d5bf985d629992 SHA512 ea9339db46d8e683de42802ec52b499941e189b754bc43f600b673942fbf947941ac2ad7f1d63a938341df7982865595d5dc0557a08db4c78bc64067b2709539 WHIRLPOOL d6c9e66344f7334336031cafdec91dadd8941739584a41c71837fb247b3fb970826f23697758a8a3497e6667d300f1dff0ce8fe146389de0da9d15e2bbd1e78e
|
|
||||||
DIST gitlab-runner-10.0.2.tar.gz 3599514 SHA256 783c1c597a2b9ee78b2396852235010c5432804e8d65b65f49f4e3719f6da4c8 SHA512 9d8cac8441913c77c1b34dcf9f82ab1345d21f6a9553a7f895473289794c85c2675588b38c7cd390615c8e4cd14964c024562132b2b9dd88c9215ea165fc1c3d WHIRLPOOL e471f032040ffa3fbc0566df092425a19b3e9528907e87b49297512d665f187303baf24a918f855ee32fa0b1de3aac922a1ed13c8efcc22027e2fbd11fb2208d
|
|
||||||
DIST gitlab-runner-10.1.1-prebuilt-arm.tar.xz 8557920 SHA256 b6d898276b3fce934a95e1ce1d91f518069c1792cab789a68e39f9ee1aa79a31 SHA512 bfebc71ac3e88f827557c3f0d207d5f97ffae8b7e8043ed0090eb16098cb6132dfe7babf694bde201fa07cd3eb19e1be25ec5b09e718e4e94d40cc7e9b87705c WHIRLPOOL 58dd2bdddf95a316f9daf85a8ac50ab4ef3ff4adee1ff1971fdf2afdbc4e0fdc70edbd3831d8aec2f8f2740b3f5da551dce30697dd0a42efebc02f9810bd60a3
|
|
||||||
DIST gitlab-runner-10.1.1-prebuilt-x86_64.tar.xz 10469000 SHA256 398452fe5e1fdf8fafb5fde48336ea8f9de7fb09aec67b7f4851f7e6bec0de5f SHA512 714008d90f626eeff1471f5f44c9a9d4c9387e054a60ca8b454787f807591d611591e83757fb1f8aff5a70fa2afc285751f783a7ac729757f8d2c47e54242d3b WHIRLPOOL cdba3e037f458dfe8a65238b4173eaa86e70353eeab7918ad6af7ff54a405073922761d29fdb64f1840301be7dca4f60cc184f9a3e50ff85cb259e765aec4aa1
|
|
||||||
DIST gitlab-runner-10.1.1.tar.gz 3607287 SHA256 f5bcc173e9694589ee199d9ff7da38c2996ecce8b121066982dda6f8b5a4ed43 SHA512 1a541637d3e1ff447c810fc8a6c51546fd39b98d643f5464629f3fa2fa87b38672a20653408344057fe7076a0b9661e75b3b05d96f665faf2b862f64f0ba9dfe WHIRLPOOL e6b1cd42ec24e281b27a4c2d438270433e4e760c10900f2834b29437ae4a1ed84cc82f8e64f968499045496179d80a397a8e25ce0a1b77dcbe6015a583cb97a9
|
|
||||||
DIST gitlab-runner-10.2.1-prebuilt-arm.tar.xz 8554156 SHA256 45e834e16c99378f1b9361349206c115435b8565b8edcfcda13d56d7baf92824 SHA512 6d5158fd7b2e4c40ffeeb1f292b955958526a7370e699a8d0c0ec6b4d321e12e584f04837a707f7f38a2af7e4e073089566dd33bcec8706626dca7eef6f90b2a WHIRLPOOL 6a0f98fcf4e35d88ee49c31ad914fb841d3efb9d47891272eaec78d2f8d8d5e8c2440963742d3e925d4684550f88e2ebe4c5703ad4423523506746af0c0a266f
|
|
||||||
DIST gitlab-runner-10.2.1-prebuilt-x86_64.tar.xz 10473104 SHA256 6d13458230571770a4950e2a2948a7d9ab2b1efbbb00734798624500d811f0d0 SHA512 9b328687d78166f6791e8ea91bef6ebe11891e7ebda9054dea156da128004b4d6b6439135a20368af7d523ff21981a6f3b60b145ef3cbdb6413511a7746eb0bc WHIRLPOOL b16e4e9a7cb4ed4842616efa1c05afe8244950d0fb0ba487f0c5b043f06a023fe555a398a90e8e4893841e770d3fe7488d6caabed7f6e1af5376eca50d31d7c5
|
|
||||||
DIST gitlab-runner-10.2.1.tar.gz 3695554 SHA256 530f3281cf99c80136969a1ef9edc60dd726862f5949cf1042e64ac1a2a3ac74 SHA512 c2962586a15c7aaa6c18f500212d67ecb4c4907de8f6e7faac920d9a7714fb51650fb8d81cded71a5c173910c7e5ac61b7d33a6bd0f81faa1b125bee2e242f5f WHIRLPOOL 84ed4fc7a8b04226ba52938458e15b1bbc1417ad0979665ee4b4859504bf9267280efc18e1e3d420788a7ae7a62467b19db906057fc397e54a8894b7113b0292
|
|
||||||
DIST gitlab-runner-10.3.1-prebuilt-arm.tar.xz 8557640 SHA256 b2579f64edfd67ca80c4604bbe20dfccd8fde11ab47ca873860b123a1bcc964e SHA512 5e2b77827d23a3d3703cef92ad3e69e042c1da3dc58c9c3e9e182a453aaea972a04935e188bd3c44b625c0ae3201214e17b787e71db18f50192fd321b3cf9465 WHIRLPOOL dd2fed8539c89cbc36284f2c8900ef1baf3682e27793351651214fb1b86ff4909b2b22cbec958283210de8dd5614d6285d9e907af824a97ca6b9df44d907ae73
|
|
||||||
DIST gitlab-runner-10.3.1-prebuilt-x86_64.tar.xz 10471784 SHA256 735498253a39a41959526d811315bef112c586ea01cf8d204113fe9db11f5abf SHA512 115ef90a21af2e4b1b098f904e65eadceaace599e1a45cf1d757ed611be2d8a48d5d53feddf0940dd4cc2d446ebbfa49072e2992a5d246a632ad9ef4a867a0a1 WHIRLPOOL ed7589efa6a2ffcbb1ac88bc8b3ac6eb21b686cc080cb3595f99dc140d7522e1fe5801f2e17c7cbad5916a1635057cd8b42a906d9473fae65fceb6c6f4f076e5
|
|
||||||
DIST gitlab-runner-10.3.1.tar.gz 3702219 SHA256 6fd684349705d1edd4391be3463442a5b06ac36ec82e11e20b2afa83ac6ee96e SHA512 d49c683057b0b233022a6330ff1e9be712849bab56cece510da54e103e2ee56c5060bd49d08d91c9d7459a3921890720d79befd867a3b58a8ac6ab3e565ec848 WHIRLPOOL 056c306350e2f3ef4b4827d15cb9057e9bc5203984a7b29f84bd3f81bbcf175619830645801baa9b7c67c2362e93bb0e25de1671b33a60a8626b29daa1f1e557
|
|
||||||
EBUILD gitlab-runner-10.0.2.ebuild 2545 SHA256 59794dd6f33ce0fc0d1c997db7e5e4eaea226485aada8f700e3d183c2284e409 SHA512 4e9e6a93d621f595cc2b20ea4cb49afc0c9c4980b5ba13bec342994596caef0e0272fcd0b2deb087c96beebec283827916aa1b5594337febf592fd0251121327 WHIRLPOOL 5a48199473313fb247f621a8abf146fc794d02316b2cacba77fb3265047cc33115b26f2a21f58fb9648deb85c4c4c1f5190f6f3768bbeb4bc21a1373b5ac52b3
|
|
||||||
EBUILD gitlab-runner-10.1.1.ebuild 2545 SHA256 7bdf62baddd6a43ee546937f8c87d10bdfda809ddbfd901471c62908c4363165 SHA512 543c36ea54fbfe74e755c17bf0660a9fac7d2841aee17ad99e95816d89606b4934aebee5a6e98621803a4f10a0342c2e9a41d69898c60da202655d1e1da1926c WHIRLPOOL 68f73d719fad6c9c8b849d664f9efb01af27877904e0360515374eb2b1c10f22058e8ae2081faf34f0058dac7579558b8309b089746f802bef0668243ada47e5
|
|
||||||
EBUILD gitlab-runner-10.2.1.ebuild 2545 SHA256 fc7d7c847bc175f6f74f71f8c0eeef9b4fad9c4d779f79640e6439c907ad0963 SHA512 3ccc5f38b82ef5453724819db7227d3ec234940af8e2a2fdd7b14db199a13e1e2ed0ae55bda87cb0061a0c548bf2acedc940ea3a70dc1dfa5644478df785b97a WHIRLPOOL ed6be446184ccb593c48da4b51336cd5f377f72041014896e2d11b3e2782c0faa36f3513fb5ed0f692eb43af229f71297265d37ed74c52412477cb204c229e2f
|
|
||||||
EBUILD gitlab-runner-10.3.1.ebuild 2545 SHA256 fc7d7c847bc175f6f74f71f8c0eeef9b4fad9c4d779f79640e6439c907ad0963 SHA512 3ccc5f38b82ef5453724819db7227d3ec234940af8e2a2fdd7b14db199a13e1e2ed0ae55bda87cb0061a0c548bf2acedc940ea3a70dc1dfa5644478df785b97a WHIRLPOOL ed6be446184ccb593c48da4b51336cd5f377f72041014896e2d11b3e2782c0faa36f3513fb5ed0f692eb43af229f71297265d37ed74c52412477cb204c229e2f
|
|
||||||
MISC ChangeLog 1426 SHA256 f4a007e0c7de69ddb54b709fddf13cad6cd5e8dc1d19e69ef15d66fdbc5076da SHA512 d5719f9d682259331685f0b1bb465b1f0543dc20f74293a060a1fafc17c3b1f2385a65adc3d5ae653fd9796e67e5ed56b0928b2e43ff0f36d9d03b5e2481ccc0 WHIRLPOOL 1d5aa9fb9e075bba17664e8f800b9ee52c0f96ea1b78734aea9be2f981334f1472b6329acde2bb18ef857645ca5371c17757ef05d46a9297d93214c1efbc4f86
|
|
||||||
MISC metadata.xml 329 SHA256 f0ae08a64aa32a07486e744ce11ac5448770b7320454015bcd065e312fcb5e9c SHA512 11e4eaf25633c5979e5243350bdf2ddc6d9dca06ab54ec38359591f1d002ea2a224e53b3e6c4ac53b5b2e795a87769fdbd97c547b008272e0a1491141f422e5d WHIRLPOOL ab2c1cb3d9aff1f757b49633f94d4b98da4b83dadab12ab8d869f9e1f6763b3125010147472e58e910e7fc42da262dbd69a1bf3939f3720a79ab4329184b4c35
|
|
|
@ -1,3 +0,0 @@
|
||||||
LOGFILE=/var/log/gitlab-runner.log
|
|
||||||
USER=@USER@
|
|
||||||
HOME_DIR="@HOME@"
|
|
|
@ -1,23 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 2015-2017 Nicolas Heine
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
after sshd
|
|
||||||
need net
|
|
||||||
need localmount
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting gitlab-runner"
|
|
||||||
checkpath -d /var/run
|
|
||||||
checkpath -f -o ${USER} -m640 "${LOGFILE}"
|
|
||||||
start-stop-daemon --start -b -u ${USER} --chdir "${HOME_DIR}" --pidfile /var/run/gitlab-runner.pid -1 "${LOGFILE}" -2 "${LOGFILE}" --make-pidfile \
|
|
||||||
--exec /usr/bin/gitlab-runner -- run --config /etc/gitlab-runner/config.toml
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping gitlab-runner"
|
|
||||||
start-stop-daemon --stop --pidfile /var/run/gitlab-runner.pid
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1,95 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-runner"
|
|
||||||
|
|
||||||
GITLAB_COMMIT="413da38a"
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
|
|
||||||
DESCRIPTION="Official GitLab CI Runner written in Go"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-runner"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=v${PV} -> ${P}.tar.gz
|
|
||||||
!docker-build? (
|
|
||||||
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-x86_64.tar.xz -> ${P}-prebuilt-x86_64.tar.xz
|
|
||||||
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-arm.tar.xz -> ${P}-prebuilt-arm.tar.xz
|
|
||||||
)"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="docker-build"
|
|
||||||
|
|
||||||
DEPEND="dev-go/gox
|
|
||||||
dev-go/go-bindata
|
|
||||||
docker-build? ( >=app-emulation/docker-1.5 )"
|
|
||||||
|
|
||||||
RESTRICT="mirror test"
|
|
||||||
|
|
||||||
MY_USER="gitlab_runner"
|
|
||||||
MY_HOME_DIR="/var/lib/gitlab-runner"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# add required user
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 /bin/bash "${MY_HOME_DIR}" ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
if ! use docker-build; then
|
|
||||||
mkdir -p out/docker || die
|
|
||||||
cp "${DISTDIR}"/${P}-prebuilt-x86_64.tar.xz out/docker/prebuilt-x86_64.tar.xz || die
|
|
||||||
cp "${DISTDIR}"/${P}-prebuilt-arm.tar.xz out/docker/prebuilt-arm.tar.xz || die
|
|
||||||
sed -i -e "s/docker info/echo false/" Makefile || die
|
|
||||||
else
|
|
||||||
einfo "You need to have docker running on your system during build time"
|
|
||||||
einfo "$(docker info)"
|
|
||||||
fi
|
|
||||||
sed -i -e "s#./ci/version#echo ${PV}#"\
|
|
||||||
-e "s/git rev-parse --short HEAD/echo ${GITLAB_COMMIT}/"\
|
|
||||||
-e "/^LATEST_STABLE_TAG/d"\
|
|
||||||
-e "s#git show-ref.*\$#echo gentoo)#"\
|
|
||||||
-e "s#git describe.*\$#echo 0), 0)#"\
|
|
||||||
Makefile || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN} build_current
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin src/${EGO_PN}/out/binaries/gitlab-runner
|
|
||||||
dodoc src/${EGO_PN}/README.md src/${EGO_PN}/CHANGELOG.md
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
newinitd "${FILESDIR}/${PN}-10.0.2.init" "${PN}"
|
|
||||||
|
|
||||||
# conf.d file
|
|
||||||
local conffile="${PN}-10.0.2.conf"
|
|
||||||
cp "${FILESDIR}/${conffile}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|" \
|
|
||||||
-e "s|@HOME@|${MY_HOME_DIR}|" \
|
|
||||||
"${T}/${conffile}" \
|
|
||||||
|| die "failed to filter ${conffile}"
|
|
||||||
|
|
||||||
newconfd "${T}/${conffile}" "${PN}"
|
|
||||||
|
|
||||||
# config dir
|
|
||||||
local config_dir="/etc/${PN}"
|
|
||||||
diropts -m750
|
|
||||||
dodir "${config_dir}"
|
|
||||||
|
|
||||||
# home dir
|
|
||||||
diropts -m755
|
|
||||||
dodir "${MY_HOME_DIR}"
|
|
||||||
|
|
||||||
# fix owners
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} "${config_dir}" "${MY_HOME_DIR}"
|
|
||||||
}
|
|
|
@ -1,95 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-runner"
|
|
||||||
|
|
||||||
GITLAB_COMMIT="a0152c4c"
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
|
|
||||||
DESCRIPTION="Official GitLab CI Runner written in Go"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-runner"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=v${PV} -> ${P}.tar.gz
|
|
||||||
!docker-build? (
|
|
||||||
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-x86_64.tar.xz -> ${P}-prebuilt-x86_64.tar.xz
|
|
||||||
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-arm.tar.xz -> ${P}-prebuilt-arm.tar.xz
|
|
||||||
)"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="docker-build"
|
|
||||||
|
|
||||||
DEPEND="dev-go/gox
|
|
||||||
dev-go/go-bindata
|
|
||||||
docker-build? ( >=app-emulation/docker-1.5 )"
|
|
||||||
|
|
||||||
RESTRICT="mirror test"
|
|
||||||
|
|
||||||
MY_USER="gitlab_runner"
|
|
||||||
MY_HOME_DIR="/var/lib/gitlab-runner"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# add required user
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 /bin/bash "${MY_HOME_DIR}" ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
if ! use docker-build; then
|
|
||||||
mkdir -p out/docker || die
|
|
||||||
cp "${DISTDIR}"/${P}-prebuilt-x86_64.tar.xz out/docker/prebuilt-x86_64.tar.xz || die
|
|
||||||
cp "${DISTDIR}"/${P}-prebuilt-arm.tar.xz out/docker/prebuilt-arm.tar.xz || die
|
|
||||||
sed -i -e "s/docker info/echo false/" Makefile || die
|
|
||||||
else
|
|
||||||
einfo "You need to have docker running on your system during build time"
|
|
||||||
einfo "$(docker info)"
|
|
||||||
fi
|
|
||||||
sed -i -e "s#./ci/version#echo ${PV}#"\
|
|
||||||
-e "s/git rev-parse --short HEAD/echo ${GITLAB_COMMIT}/"\
|
|
||||||
-e "/^LATEST_STABLE_TAG/d"\
|
|
||||||
-e "s#git show-ref.*\$#echo gentoo)#"\
|
|
||||||
-e "s#git describe.*\$#echo 0), 0)#"\
|
|
||||||
Makefile || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN} build_current
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin src/${EGO_PN}/out/binaries/gitlab-runner
|
|
||||||
dodoc src/${EGO_PN}/README.md src/${EGO_PN}/CHANGELOG.md
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
newinitd "${FILESDIR}/${PN}-10.0.2.init" "${PN}"
|
|
||||||
|
|
||||||
# conf.d file
|
|
||||||
local conffile="${PN}-10.0.2.conf"
|
|
||||||
cp "${FILESDIR}/${conffile}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|" \
|
|
||||||
-e "s|@HOME@|${MY_HOME_DIR}|" \
|
|
||||||
"${T}/${conffile}" \
|
|
||||||
|| die "failed to filter ${conffile}"
|
|
||||||
|
|
||||||
newconfd "${T}/${conffile}" "${PN}"
|
|
||||||
|
|
||||||
# config dir
|
|
||||||
local config_dir="/etc/${PN}"
|
|
||||||
diropts -m750
|
|
||||||
dodir "${config_dir}"
|
|
||||||
|
|
||||||
# home dir
|
|
||||||
diropts -m755
|
|
||||||
dodir "${MY_HOME_DIR}"
|
|
||||||
|
|
||||||
# fix owners
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} "${config_dir}" "${MY_HOME_DIR}"
|
|
||||||
}
|
|
|
@ -1,95 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-runner"
|
|
||||||
|
|
||||||
GITLAB_COMMIT="f157dc9f"
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
|
|
||||||
DESCRIPTION="Official GitLab CI Runner written in Go"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-runner"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=v${PV} -> ${P}.tar.gz
|
|
||||||
!docker-build? (
|
|
||||||
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-x86_64.tar.xz -> ${P}-prebuilt-x86_64.tar.xz
|
|
||||||
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-arm.tar.xz -> ${P}-prebuilt-arm.tar.xz
|
|
||||||
)"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="docker-build"
|
|
||||||
|
|
||||||
DEPEND="dev-go/gox
|
|
||||||
dev-go/go-bindata
|
|
||||||
docker-build? ( >=app-emulation/docker-1.5 )"
|
|
||||||
|
|
||||||
RESTRICT="mirror test"
|
|
||||||
|
|
||||||
MY_USER="gitlab_runner"
|
|
||||||
MY_HOME_DIR="/var/lib/gitlab-runner"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# add required user
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 /bin/bash "${MY_HOME_DIR}" ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
if ! use docker-build; then
|
|
||||||
mkdir -p out/docker || die
|
|
||||||
cp "${DISTDIR}"/${P}-prebuilt-x86_64.tar.xz out/docker/prebuilt-x86_64.tar.xz || die
|
|
||||||
cp "${DISTDIR}"/${P}-prebuilt-arm.tar.xz out/docker/prebuilt-arm.tar.xz || die
|
|
||||||
sed -i -e "s/docker info/echo false/" Makefile || die
|
|
||||||
else
|
|
||||||
einfo "You need to have docker running on your system during build time"
|
|
||||||
einfo "$(docker info)"
|
|
||||||
fi
|
|
||||||
sed -i -e "s#./ci/version#echo ${PV}#"\
|
|
||||||
-e "s/git rev-parse --short HEAD/echo ${GITLAB_COMMIT}/"\
|
|
||||||
-e "/^LATEST_STABLE_TAG/d"\
|
|
||||||
-e "s#git show-ref.*\$#echo gentoo)#"\
|
|
||||||
-e "s#git describe.*\$#echo 0), 0)#"\
|
|
||||||
Makefile || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN} build_current
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin src/${EGO_PN}/out/binaries/gitlab-runner
|
|
||||||
dodoc src/${EGO_PN}/README.md src/${EGO_PN}/CHANGELOG.md
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
newinitd "${FILESDIR}/${PN}-10.0.2.init" "${PN}"
|
|
||||||
|
|
||||||
# conf.d file
|
|
||||||
local conffile="${PN}-10.0.2.conf"
|
|
||||||
cp "${FILESDIR}/${conffile}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|" \
|
|
||||||
-e "s|@HOME@|${MY_HOME_DIR}|" \
|
|
||||||
"${T}/${conffile}" \
|
|
||||||
|| die "failed to filter ${conffile}"
|
|
||||||
|
|
||||||
newconfd "${T}/${conffile}" "${PN}"
|
|
||||||
|
|
||||||
# config dir
|
|
||||||
local config_dir="/etc/${PN}"
|
|
||||||
diropts -m750
|
|
||||||
dodir "${config_dir}"
|
|
||||||
|
|
||||||
# home dir
|
|
||||||
diropts -m755
|
|
||||||
dodir "${MY_HOME_DIR}"
|
|
||||||
|
|
||||||
# fix owners
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} "${config_dir}" "${MY_HOME_DIR}"
|
|
||||||
}
|
|
|
@ -1,95 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-runner"
|
|
||||||
|
|
||||||
GITLAB_COMMIT="f157dc9f"
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
|
|
||||||
DESCRIPTION="Official GitLab CI Runner written in Go"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-runner"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=v${PV} -> ${P}.tar.gz
|
|
||||||
!docker-build? (
|
|
||||||
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-x86_64.tar.xz -> ${P}-prebuilt-x86_64.tar.xz
|
|
||||||
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-arm.tar.xz -> ${P}-prebuilt-arm.tar.xz
|
|
||||||
)"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="docker-build"
|
|
||||||
|
|
||||||
DEPEND="dev-go/gox
|
|
||||||
dev-go/go-bindata
|
|
||||||
docker-build? ( >=app-emulation/docker-1.5 )"
|
|
||||||
|
|
||||||
RESTRICT="mirror test"
|
|
||||||
|
|
||||||
MY_USER="gitlab_runner"
|
|
||||||
MY_HOME_DIR="/var/lib/gitlab-runner"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# add required user
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 /bin/bash "${MY_HOME_DIR}" ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
if ! use docker-build; then
|
|
||||||
mkdir -p out/docker || die
|
|
||||||
cp "${DISTDIR}"/${P}-prebuilt-x86_64.tar.xz out/docker/prebuilt-x86_64.tar.xz || die
|
|
||||||
cp "${DISTDIR}"/${P}-prebuilt-arm.tar.xz out/docker/prebuilt-arm.tar.xz || die
|
|
||||||
sed -i -e "s/docker info/echo false/" Makefile || die
|
|
||||||
else
|
|
||||||
einfo "You need to have docker running on your system during build time"
|
|
||||||
einfo "$(docker info)"
|
|
||||||
fi
|
|
||||||
sed -i -e "s#./ci/version#echo ${PV}#"\
|
|
||||||
-e "s/git rev-parse --short HEAD/echo ${GITLAB_COMMIT}/"\
|
|
||||||
-e "/^LATEST_STABLE_TAG/d"\
|
|
||||||
-e "s#git show-ref.*\$#echo gentoo)#"\
|
|
||||||
-e "s#git describe.*\$#echo 0), 0)#"\
|
|
||||||
Makefile || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN} build_current
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin src/${EGO_PN}/out/binaries/gitlab-runner
|
|
||||||
dodoc src/${EGO_PN}/README.md src/${EGO_PN}/CHANGELOG.md
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
newinitd "${FILESDIR}/${PN}-10.0.2.init" "${PN}"
|
|
||||||
|
|
||||||
# conf.d file
|
|
||||||
local conffile="${PN}-10.0.2.conf"
|
|
||||||
cp "${FILESDIR}/${conffile}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|" \
|
|
||||||
-e "s|@HOME@|${MY_HOME_DIR}|" \
|
|
||||||
"${T}/${conffile}" \
|
|
||||||
|| die "failed to filter ${conffile}"
|
|
||||||
|
|
||||||
newconfd "${T}/${conffile}" "${PN}"
|
|
||||||
|
|
||||||
# config dir
|
|
||||||
local config_dir="/etc/${PN}"
|
|
||||||
diropts -m750
|
|
||||||
dodir "${config_dir}"
|
|
||||||
|
|
||||||
# home dir
|
|
||||||
diropts -m755
|
|
||||||
dodir "${MY_HOME_DIR}"
|
|
||||||
|
|
||||||
# fix owners
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} "${config_dir}" "${MY_HOME_DIR}"
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>manuel@fritteli.ch</email>
|
|
||||||
<name>Manuel Friedli</name>
|
|
||||||
</maintainer>
|
|
||||||
<use>
|
|
||||||
<flag name="docker-build">Use docker to build the images</flag>
|
|
||||||
</use>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,163 +0,0 @@
|
||||||
*gitlab-shell-6.0.3 (09 Mar 2018)
|
|
||||||
|
|
||||||
09 Mar 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/gitlab-shell-6.0.3-Makefile, +gitlab-shell-6.0.3.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Add ebuild for version 6.0.3, dependency of gitlab-
|
|
||||||
ce-10.5.4
|
|
||||||
|
|
||||||
08 Mar 2018; Manuel Friedli <manuel@fritteli.ch> -gitlab-shell-5.0.0.ebuild,
|
|
||||||
-gitlab-shell-5.0.2.ebuild, -gitlab-shell-5.0.4.ebuild,
|
|
||||||
-gitlab-shell-5.1.1.ebuild, -gitlab-shell-5.3.1.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Purge obsolete versions of gitlab-shell
|
|
||||||
|
|
||||||
*gitlab-shell-5.11.0 (19 Feb 2018)
|
|
||||||
|
|
||||||
19 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-5.11.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Add ebuild for version 5.11.0
|
|
||||||
|
|
||||||
*gitlab-shell-5.10.2 (17 Feb 2018)
|
|
||||||
|
|
||||||
17 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-5.10.2.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Add ebuild for version 5.10.2.
|
|
||||||
|
|
||||||
*gitlab-shell-5.10.0 (16 Feb 2018)
|
|
||||||
|
|
||||||
16 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-5.10.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Add ebuild for version 5.10.0
|
|
||||||
|
|
||||||
*gitlab-shell-5.9.3 (06 Nov 2017)
|
|
||||||
|
|
||||||
06 Nov 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-5.9.3.ebuild,
|
|
||||||
gitlab-shell-5.0.0.ebuild, gitlab-shell-5.0.2.ebuild,
|
|
||||||
gitlab-shell-5.0.4.ebuild, gitlab-shell-5.1.1.ebuild,
|
|
||||||
gitlab-shell-5.3.1.ebuild, gitlab-shell-5.8.0.ebuild,
|
|
||||||
gitlab-shell-5.9.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Add ebuild for version 5.9.3 and fix deprecated ebuild
|
|
||||||
headers and symlink locations.
|
|
||||||
|
|
||||||
17 Sep 2017; Manuel Friedli <manuel@fritteli.ch> -gitlab-shell-5.0.5.ebuild,
|
|
||||||
-gitlab-shell-5.4.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Prune unneeded versions.
|
|
||||||
|
|
||||||
*gitlab-shell-5.9.0 (08 Sep 2017)
|
|
||||||
|
|
||||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-5.9.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Add version 5.9.0.
|
|
||||||
|
|
||||||
*gitlab-shell-5.8.0 (05 Sep 2017)
|
|
||||||
|
|
||||||
05 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-5.8.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Add ebuild for version 5.8.0; a dependency of gitlab-
|
|
||||||
ce-9.5.3.
|
|
||||||
|
|
||||||
*gitlab-shell-5.3.1 (25 Jul 2017)
|
|
||||||
*gitlab-shell-5.4.0 (25 Jul 2017)
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-5.3.1.ebuild,
|
|
||||||
+gitlab-shell-5.4.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Add new versions of gitlab-shell
|
|
||||||
|
|
||||||
16 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-shell-5.0.0.ebuild,
|
|
||||||
gitlab-shell-5.0.2.ebuild, gitlab-shell-5.0.4.ebuild,
|
|
||||||
gitlab-shell-5.0.5.ebuild, gitlab-shell-5.1.1.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Switch to EAPI 6; this fixes #46.
|
|
||||||
|
|
||||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch> -gitlab-shell-4.1.1.ebuild,
|
|
||||||
-gitlab-shell-5.0.3.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Purge obsolete versions
|
|
||||||
|
|
||||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0001-gitlab-shell-4.1.1-config-paths.patch,
|
|
||||||
+files/0002-gitlab-shell-5.1.1-Makefile.patch, gitlab-shell-5.1.1.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Fix ebuild for gitlab-shell-5.1.1; it requires some
|
|
||||||
more love than the previous versions.
|
|
||||||
|
|
||||||
*gitlab-shell-5.1.1 (08 Jul 2017)
|
|
||||||
|
|
||||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-5.1.1.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Add ebuild for gitlab-shell-5.1.1; dependency of
|
|
||||||
gitlab-ce-9.3.5
|
|
||||||
|
|
||||||
*gitlab-shell-5.0.5 (17 Jun 2017)
|
|
||||||
|
|
||||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-5.0.5.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Add version 5.0.5
|
|
||||||
|
|
||||||
*gitlab-shell-5.0.0 (13 Mar 2017)
|
|
||||||
|
|
||||||
13 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-5.0.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: added ebuild for gitlab-shell-5.0.0; support for git-
|
|
||||||
annex has been removed.
|
|
||||||
|
|
||||||
14 Feb 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/gitlab-shell-3.2.0-config-paths.patch, -gitlab-shell-4.0.3.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: deleted old ebuild
|
|
||||||
|
|
||||||
*gitlab-shell-4.0.3 (12 Dec 2016)
|
|
||||||
|
|
||||||
12 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-4.0.3.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: added ebuild for gitlab-shell-4.0.3, a dependency of
|
|
||||||
gitlab-ce-8.14.4
|
|
||||||
|
|
||||||
23 Nov 2016; Manuel Friedli <manuel@fritteli.ch> -gitlab-shell-3.5.0.ebuild,
|
|
||||||
-gitlab-shell-3.6.1.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: pruned old ebuilds
|
|
||||||
|
|
||||||
*gitlab-shell-4.0.0 (11 Nov 2016)
|
|
||||||
|
|
||||||
11 Nov 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-4.0.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: added ebuilds for gitlab-shell-4.0.0, a dependency of
|
|
||||||
gitlab-ce-8.14
|
|
||||||
|
|
||||||
22 Oct 2016; Manuel Friedli <manuel@fritteli.ch> -gitlab-shell-3.4.0.ebuild,
|
|
||||||
-gitlab-shell-3.6.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: purged unneeded ebuilds
|
|
||||||
|
|
||||||
*gitlab-shell-3.6.6 (22 Oct 2016)
|
|
||||||
|
|
||||||
22 Oct 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-3.6.6.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: added ebuild for version 3.6.6, which is a dependency
|
|
||||||
of gitlab-ce-8.13.0
|
|
||||||
|
|
||||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch> -gitlab-shell-3.2.1.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: removed obsolete version 3.2.1
|
|
||||||
|
|
||||||
*gitlab-shell-3.6.0 (23 Sep 2016)
|
|
||||||
|
|
||||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-3.6.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: added ebuild for version 3.6.0; dependency of gitlab-
|
|
||||||
ce-8.12.0
|
|
||||||
|
|
||||||
*gitlab-shell-3.5.0 (16 Sep 2016)
|
|
||||||
|
|
||||||
16 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-3.5.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: added ebuild for versioin 3.5.0
|
|
||||||
|
|
||||||
22 Aug 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/gitlab-shell-2.0.0-config-paths.patch, -gitlab-shell-3.0.0.ebuild,
|
|
||||||
-gitlab-shell-3.2.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: purged all versions <gitlab-shell-3.2.1
|
|
||||||
|
|
||||||
*gitlab-shell-3.4.0 (22 Aug 2016)
|
|
||||||
|
|
||||||
22 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-3.4.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: added gitlab-shell-3.4.0. this is a dependency of
|
|
||||||
gitlab-ce-8.11.0
|
|
||||||
|
|
||||||
*gitlab-shell-3.2.1 (27 Jul 2016)
|
|
||||||
|
|
||||||
27 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-3.2.1.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: Added ebuild for version 3.2.1 which is a dependency of
|
|
||||||
gitlab-ce-8.10.2
|
|
||||||
|
|
||||||
26 Jul 2016; Manuel Friedli <manuel@fritteli.ch> -gitlab-shell-2.7.2.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: removed ebuild for gitlab-shell-2.7.2, as all available
|
|
||||||
versions of gitlab-ce require >=gitlab-shell-3*
|
|
||||||
|
|
||||||
*gitlab-shell-3.2.0 (09 Jul 2016)
|
|
||||||
|
|
||||||
09 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-shell-3.2.0.ebuild:
|
|
||||||
dev-vcs/gitlab-shell: added ebuild for version 3.2.0
|
|
||||||
|
|
||||||
07 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +ChangeLog:
|
|
||||||
Added ChangeLog
|
|
|
@ -1,17 +0,0 @@
|
||||||
AUX 0001-gitlab-shell-4.1.1-config-paths.patch 2152 SHA256 e789f0c8a8b7ec8a840ce26dd63d6e5386a149f619d7ad5a6788577d897c4826 SHA512 6ae5af0c364061af4c9675804e2f6d6b662ed4891ed4c80bc1be39e9da6343db372e58bf04a0d3c8a4fc218daeb8cda45636e0da0c67ec801168e84004d05b86 WHIRLPOOL b8136b81ef943c15feeca303d1d7f0d55c85ff7f7ec82bfceea026ce334ca24fce0dfb599946562bd0aceb89a2216bcfaa894235c43f41e3031a305f85e756b4
|
|
||||||
AUX 0002-gitlab-shell-5.1.1-Makefile.patch 252 SHA256 cb45d73d9a2b5a30d2c457d6ddef9953b4a907e4929575709997a3edcb416cc2 SHA512 ce185a66e746e7791ca7ace15757d24a6fe426a986837a3b41c18771c0e3395baa05488735273171d41f764a9cee2517dc64e629f4d9b2aedc0bd57650350d9f WHIRLPOOL d6c6562a9d6efb904580732c43538b86b7ea8fb9dab538ede162018f86974a2e330403b385f636734b67be894063671e17814865de0ae36b8e8eb9ef1199aa3d
|
|
||||||
AUX gitlab-shell-4.1.1-config-paths.patch 2152 SHA256 e789f0c8a8b7ec8a840ce26dd63d6e5386a149f619d7ad5a6788577d897c4826 SHA512 6ae5af0c364061af4c9675804e2f6d6b662ed4891ed4c80bc1be39e9da6343db372e58bf04a0d3c8a4fc218daeb8cda45636e0da0c67ec801168e84004d05b86 WHIRLPOOL b8136b81ef943c15feeca303d1d7f0d55c85ff7f7ec82bfceea026ce334ca24fce0dfb599946562bd0aceb89a2216bcfaa894235c43f41e3031a305f85e756b4
|
|
||||||
AUX gitlab-shell-6.0.3-Makefile 41 SHA256 cf9369c20800c5663ecd205a49fcfe1d6d4d12290d1c219823e35c348912ed49 SHA512 de23339a4515975ff272feaaea3bf3028c0b807a87db08e098b290508a01116fd3335345c12bd2e78ba03df0ede3b9633b104dbcf4a3817af02b431eab364c6f WHIRLPOOL 61233d3c2d00c3eea066c40d93bd37bb9741f3927b502bb122ba4c9cc425810a6a966af33fe840da81d36d82328cfdce903f6643b8122872e294b9cf2133a4ee
|
|
||||||
DIST gitlab-shell-5.10.0.tar.gz 712749 SHA256 703d96c71dd507995780c6bd1de88d618df95e92593f099a3505136bd2547337 SHA512 d25e84f97c52aa626c9b8d7c739017dbe9cc13710e23a7257d08ecaa20dafb3af8e78aca8e768d77e9abc741a4078e322194870fb6151356ce5a5004f6f0032f WHIRLPOOL 10727efc8f043b45bb8f8a141684312932e64f28f599e735a2a705d504f4ce75330acbe707e007a9a44ed94d00a546ab041e256434958700b4ae532f00e482c6
|
|
||||||
DIST gitlab-shell-5.8.0.tar.gz 718927 SHA256 7c6a02e12ec0efcca23b9200dc18be29a8ce2bf70f9802bb188fc22dbf1875d3 SHA512 f17e4ec95dce29608684de27d9a4f7a3fa69cd25fb68223576a4501ef83fc50bfb74668599672edc8c8d670585b47e22825004cba2227bb4ef6f0e3c27d06b59 WHIRLPOOL 941c5c9daf6e319e44c49af627474e87f33e964bbad0b59b84f90f7b7e8ca82b5f0635102964b9fd7b74f8101b6af6539aa966978468105ad9b004cb2fa76222
|
|
||||||
DIST gitlab-shell-5.9.0.tar.gz 710920 SHA256 5085b531abd1c3ebbc73c7b77c05e674fe42d975c4d9c64bdc54704c51a15907 SHA512 e89a0f2b97e502b003ee62eacfa520dc248b93cf68a0d2eabae5672ee968ca68fd01839c9195422fb680e341756ec399af0a7654fc4e6fbe7d12f3af3643d2c6 WHIRLPOOL 45bd1f044314de3d093fb6689b5c50ca9243aa097e54f75e15485eda6504ab91975a5e8c4df115a94dfe228d98923ebc5f68e85eb050a95fd71f5927d5a89354
|
|
||||||
DIST gitlab-shell-5.9.3.tar.gz 711416 SHA256 43692b5ba3c9757ad201611b66f199a636e6d4b47c144ebfd5e8d9b9c996e127 SHA512 b58c7eac03152378bba7f965e630669b6d3628edc11e880500eca5a200d93777e164c3f31c1a241c7b5789d3cbbb19944005268c406d4371ccbe90f913be215e WHIRLPOOL 2ab0627c4ab532c6d291b8ebce6e5d34484bef8ac8cf3feee0d2c1ba2a8d7c570b6e36df1b1c6b121a49145d49b6d1a5d8a37a70ca3f8af70f3231125674a3d2
|
|
||||||
EBUILD gitlab-shell-5.10.0.ebuild 3927 SHA256 bfbbc8298d256f4f1051ab6c3fe59197ea933a798a521940bdae1f884b5954ff SHA512 6d2461f85b1d1232de89471f4e3fe35cbd6d59a5c644913c78c5b7cc868ab035ceec8c96b4973289fefaeb2e836edf7d7cf0bdf7c4364e6e947ba1b32b6c5b85 WHIRLPOOL e44a285e9264875cda07b3bae39fc5f17fd74f9d91927f2dc9d1cd4a34fc310ec2f73808c5096807265fe3dbd94269ce3e03e6b0d5a1ef176cd1236a1c0002ec
|
|
||||||
EBUILD gitlab-shell-5.10.2.ebuild 3717 SHA256 f0733e56a42e32de7976321a41cb553e6805c7e3d3df41db7180e9a764516b3f SHA512 ae660c8f88b91bd183e786064122ae8e3504efaf5da181b9ad3c2911dd10c981767544a72380b6f23aaf7546b93bdca3e5a7679d54a2d8ee23795e800398106a WHIRLPOOL 72eac46110d8fc2550d52e73cf8577a2c9200b476b6ae1f0fc1bf225af2298b715f7ecb5d0bc3c78bfa75a9bbe39b32aeca036febdca8f8f5ede5c9260593259
|
|
||||||
EBUILD gitlab-shell-5.11.0.ebuild 3717 SHA256 f0733e56a42e32de7976321a41cb553e6805c7e3d3df41db7180e9a764516b3f SHA512 ae660c8f88b91bd183e786064122ae8e3504efaf5da181b9ad3c2911dd10c981767544a72380b6f23aaf7546b93bdca3e5a7679d54a2d8ee23795e800398106a WHIRLPOOL 72eac46110d8fc2550d52e73cf8577a2c9200b476b6ae1f0fc1bf225af2298b715f7ecb5d0bc3c78bfa75a9bbe39b32aeca036febdca8f8f5ede5c9260593259
|
|
||||||
EBUILD gitlab-shell-5.8.0.ebuild 3908 SHA256 6f144e30269af1f4b608258da78553f64a1c6fb4e4ad532de4adcc4d93c8962d SHA512 e9131c8d9361a7321837c996b098b515b15cbd93c15067c000a5811d313fb167432bc415a5327a110adc6a92009d52cad78f12311552042c1b214b5df3eae9ba WHIRLPOOL e16d0ea02eceea491c8bc079cd1d4932d83340f1db3a9e249960b57e550ed65903610f0541d89ef616561f83f4c7fc771b1aedd115e48b80c62e72f62d7dbc3a
|
|
||||||
EBUILD gitlab-shell-5.9.0.ebuild 3908 SHA256 91618dfa168fff385eb362572c8e65e1f72464ea4240b03e60cb554f7c872a8d SHA512 c16e5176dcfc866a696c4b1096b17bf15437ee77db92f28de79990688f146fa38ca2d345d1b3138072626086242f6c3e044a345435ea11ebd0455c3115c8bafe WHIRLPOOL 0b3d586d6c991a20c806ca5a53437aa8eb79eabfa64a26fb839d493052ae2d752dc65ec9626c3c7f62d6de9182d31870eb99c6018f6d490a30962f0b823eccd1
|
|
||||||
EBUILD gitlab-shell-5.9.3.ebuild 3908 SHA256 27290b4d2d5ceacaf991026c149ea2e1eaa270959490d9a8850596c8e7b4afed SHA512 daa5328dd238804860f8aa52cc4b09c484fc1477dfa6e60aa2fb424e27cc69121dea2c677e02832613ce0bc0023b9b23fe91c53dd455cbe689c6c09bb342138e WHIRLPOOL 8fa05924b1405f79656da46cfe7d22f1631a10ef19629f75fafdec11fe7b6d6fbc0db80ae2a31c81d3c11a9b412f39aa25234e7d5e318b6f4ebbd305af3f6781
|
|
||||||
EBUILD gitlab-shell-6.0.3.ebuild 3729 SHA256 2a3157091fef0c41760572d75f3ebe8c6e567a5a6484f4e20cc18b0bc9f98885 SHA512 f8d6f08109c9c3ee396d2dd6071c7e2912ea9ac6a079fd1a8b12df44751ade9d0c45f4b0a24e18fe663d53fc0ec9798602bf8eb8cbe50f8ce2cb9b9b3a2cbbac WHIRLPOOL 01ec61d59a4bcd59a4bfb0db612adc97c5cdbfee7a5f7712c2e6faee962ad16b7dda5f29956fe643dc3d0073bd3ca4bac73264a4306ea469ae5817d854fcc2d1
|
|
||||||
MISC ChangeLog 6247 SHA256 6edb7aed808db07c2b44b64d50953abe8759b456725a4b077c54f07c285bba2c SHA512 a82e59f99cdfce2324f38b56453ce1f0b5345d01890aa8a14a7012c1671b3f82eeee6804d2af8e17f116d1725f89f2a3842d71b844f831f7b3cb3a47ae077803 WHIRLPOOL 2df0c7e7ec6af196a4f751ae33660f18d593a08bbd74e7dd281d215f2da4c6a800eeb87b46d84464272cbb5935a52ff2d9c1cc8417829b6eb1e33aecd7b5a879
|
|
||||||
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1
|
|
|
@ -1,69 +0,0 @@
|
||||||
diff --git a/config.yml.example b/config.yml.example
|
|
||||||
index cf6c91b..7e144fe 100644
|
|
||||||
--- a/config.yml.example
|
|
||||||
+++ b/config.yml.example
|
|
||||||
@@ -25,15 +25,15 @@ http_settings:
|
|
||||||
self_signed_cert: false
|
|
||||||
|
|
||||||
# File used as authorized_keys for gitlab user
|
|
||||||
-auth_file: "/home/git/.ssh/authorized_keys"
|
|
||||||
+auth_file: "/var/lib/git/.ssh/authorized_keys"
|
|
||||||
|
|
||||||
# File that contains the secret key for verifying access to GitLab.
|
|
||||||
-# Default is .gitlab_shell_secret in the gitlab-shell directory.
|
|
||||||
-# secret_file: "/home/git/gitlab-shell/.gitlab_shell_secret"
|
|
||||||
+# Default is /opt/gitlab/.gitlab_shell_secret.
|
|
||||||
+# secret_file: "/opt/gitlab/.gitlab_shell_secret"
|
|
||||||
|
|
||||||
# Parent directory for global custom hook directories (pre-receive.d, update.d, post-receive.d)
|
|
||||||
# Default is hooks in the gitlab-shell directory.
|
|
||||||
-# custom_hooks_dir: "/home/git/gitlab-shell/hooks"
|
|
||||||
+# custom_hooks_dir: "/usr/share/gitlab-shell/hooks"
|
|
||||||
|
|
||||||
# Redis settings used for pushing commit notices to gitlab
|
|
||||||
redis:
|
|
||||||
@@ -55,7 +55,7 @@ redis:
|
|
||||||
|
|
||||||
# Log file.
|
|
||||||
# Default is gitlab-shell.log in the root directory.
|
|
||||||
-# log_file: "/home/git/gitlab-shell/gitlab-shell.log"
|
|
||||||
+log_file: "/var/log/gitlab/gitlab-shell.log"
|
|
||||||
|
|
||||||
# Log level. INFO by default
|
|
||||||
log_level: INFO
|
|
||||||
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb
|
|
||||||
index a51a32c..7763802 100644
|
|
||||||
--- a/lib/gitlab_config.rb
|
|
||||||
+++ b/lib/gitlab_config.rb
|
|
||||||
@@ -4,11 +4,11 @@ class GitlabConfig
|
|
||||||
attr_reader :config
|
|
||||||
|
|
||||||
def initialize
|
|
||||||
- @config = YAML.load_file(File.join(ROOT_PATH, 'config.yml'))
|
|
||||||
+ @config = YAML.load_file('/etc/gitlab-shell.yml')
|
|
||||||
end
|
|
||||||
|
|
||||||
def home
|
|
||||||
- ENV['HOME']
|
|
||||||
+ "/var/lib/git"
|
|
||||||
end
|
|
||||||
|
|
||||||
def auth_file
|
|
||||||
@@ -16,7 +16,7 @@ class GitlabConfig
|
|
||||||
end
|
|
||||||
|
|
||||||
def secret_file
|
|
||||||
- @config['secret_file'] ||= File.join(ROOT_PATH, '.gitlab_shell_secret')
|
|
||||||
+ @config['secret_file'] ||= "/opt/gitlab/.gitlab_shell_secret"
|
|
||||||
end
|
|
||||||
|
|
||||||
# Pass a default value because this is called from a repo's context; in which
|
|
||||||
@@ -43,7 +43,7 @@ class GitlabConfig
|
|
||||||
end
|
|
||||||
|
|
||||||
def log_file
|
|
||||||
- @config['log_file'] ||= File.join(ROOT_PATH, 'gitlab-shell.log')
|
|
||||||
+ @config['log_file'] ||= "/var/log/gitlab/gitlab-shell.log"
|
|
||||||
end
|
|
||||||
|
|
||||||
def log_level
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/Makefile b/Makefile
|
|
||||||
index 2a78178..3b2780a 100644
|
|
||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -3,6 +3,8 @@ REDIS_RB_VENDOR_DIR=lib/vendor/redis
|
|
||||||
PWD=`pwd`
|
|
||||||
|
|
||||||
all:
|
|
||||||
+ bin/compile
|
|
||||||
+ strip -s bin/gitaly-*
|
|
||||||
|
|
||||||
update-redis:
|
|
||||||
rm -rf $(REDIS_RB_VENDOR_DIR)
|
|
|
@ -1,69 +0,0 @@
|
||||||
diff --git a/config.yml.example b/config.yml.example
|
|
||||||
index cf6c91b..7e144fe 100644
|
|
||||||
--- a/config.yml.example
|
|
||||||
+++ b/config.yml.example
|
|
||||||
@@ -25,15 +25,15 @@ http_settings:
|
|
||||||
self_signed_cert: false
|
|
||||||
|
|
||||||
# File used as authorized_keys for gitlab user
|
|
||||||
-auth_file: "/home/git/.ssh/authorized_keys"
|
|
||||||
+auth_file: "/var/lib/git/.ssh/authorized_keys"
|
|
||||||
|
|
||||||
# File that contains the secret key for verifying access to GitLab.
|
|
||||||
-# Default is .gitlab_shell_secret in the gitlab-shell directory.
|
|
||||||
-# secret_file: "/home/git/gitlab-shell/.gitlab_shell_secret"
|
|
||||||
+# Default is /opt/gitlab/.gitlab_shell_secret.
|
|
||||||
+# secret_file: "/opt/gitlab/.gitlab_shell_secret"
|
|
||||||
|
|
||||||
# Parent directory for global custom hook directories (pre-receive.d, update.d, post-receive.d)
|
|
||||||
# Default is hooks in the gitlab-shell directory.
|
|
||||||
-# custom_hooks_dir: "/home/git/gitlab-shell/hooks"
|
|
||||||
+# custom_hooks_dir: "/usr/share/gitlab-shell/hooks"
|
|
||||||
|
|
||||||
# Redis settings used for pushing commit notices to gitlab
|
|
||||||
redis:
|
|
||||||
@@ -55,7 +55,7 @@ redis:
|
|
||||||
|
|
||||||
# Log file.
|
|
||||||
# Default is gitlab-shell.log in the root directory.
|
|
||||||
-# log_file: "/home/git/gitlab-shell/gitlab-shell.log"
|
|
||||||
+log_file: "/var/log/gitlab/gitlab-shell.log"
|
|
||||||
|
|
||||||
# Log level. INFO by default
|
|
||||||
log_level: INFO
|
|
||||||
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb
|
|
||||||
index a51a32c..7763802 100644
|
|
||||||
--- a/lib/gitlab_config.rb
|
|
||||||
+++ b/lib/gitlab_config.rb
|
|
||||||
@@ -4,11 +4,11 @@ class GitlabConfig
|
|
||||||
attr_reader :config
|
|
||||||
|
|
||||||
def initialize
|
|
||||||
- @config = YAML.load_file(File.join(ROOT_PATH, 'config.yml'))
|
|
||||||
+ @config = YAML.load_file('/etc/gitlab-shell.yml')
|
|
||||||
end
|
|
||||||
|
|
||||||
def home
|
|
||||||
- ENV['HOME']
|
|
||||||
+ "/var/lib/git"
|
|
||||||
end
|
|
||||||
|
|
||||||
def auth_file
|
|
||||||
@@ -16,7 +16,7 @@ class GitlabConfig
|
|
||||||
end
|
|
||||||
|
|
||||||
def secret_file
|
|
||||||
- @config['secret_file'] ||= File.join(ROOT_PATH, '.gitlab_shell_secret')
|
|
||||||
+ @config['secret_file'] ||= "/opt/gitlab/.gitlab_shell_secret"
|
|
||||||
end
|
|
||||||
|
|
||||||
# Pass a default value because this is called from a repo's context; in which
|
|
||||||
@@ -43,7 +43,7 @@ class GitlabConfig
|
|
||||||
end
|
|
||||||
|
|
||||||
def log_file
|
|
||||||
- @config['log_file'] ||= File.join(ROOT_PATH, 'gitlab-shell.log')
|
|
||||||
+ @config['log_file'] ||= "/var/log/gitlab/gitlab-shell.log"
|
|
||||||
end
|
|
||||||
|
|
||||||
def log_level
|
|
|
@ -1,3 +0,0 @@
|
||||||
all:
|
|
||||||
bin/compile
|
|
||||||
strip -s bin/gitaly-*
|
|
|
@ -1,141 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="7e81de5ba8fa2aaa13c6035c0e333b4b0ff0df9b"
|
|
||||||
|
|
||||||
DESCRIPTION="SSH access and repository management for GitLab"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-shell"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/gitlab-shell/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
CDEPEND=">=dev-lang/go-1.8.3"
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-vcs/git-2.7.4
|
|
||||||
dev-db/redis
|
|
||||||
virtual/ssh"
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/ruby-ssl"
|
|
||||||
|
|
||||||
MERGE_TYPE="binary"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/0001-${PN}-4.1.1-config-paths.patch"
|
|
||||||
"${FILESDIR}/0002-${PN}-5.1.1-Makefile.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GIT_USER="git"
|
|
||||||
DEST_DIR="/usr/share/${PN}"
|
|
||||||
DATA_DIR="/var/lib/git"
|
|
||||||
LOGS_DIR="/var/log/gitlab"
|
|
||||||
CONF_FILE="/etc/gitlab-shell.yml"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${GIT_USER}
|
|
||||||
enewuser ${GIT_USER} -1 /bin/bash ${DATA_DIR} "${GIT_USER}"
|
|
||||||
|
|
||||||
local git_shell=$(egetshell ${GIT_USER})
|
|
||||||
if [ ! ${git_shell} -ef '/bin/bash' ]; then
|
|
||||||
ewarn "User ${GIT_USER} already exists, but with the shell ${git_shell}."
|
|
||||||
ewarn "Changing shell to /bin/bash ..."
|
|
||||||
|
|
||||||
usermod -s /bin/bash ${GIT_USER} \
|
|
||||||
|| die "failed to change login shell for ${GIT_USER}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git|${DATA_DIR}|" \
|
|
||||||
-e "s|[\# ]*(log_file: ).*|\1\"${LOGS_DIR}/gitlab-shell.log\"|" \
|
|
||||||
config.yml.example || die "failed to filter config.yml.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|File\.join(ROOT_PATH, 'config.yml')|'${CONF_FILE}'|" \
|
|
||||||
lib/gitlab_config.rb || die "failed to filter gitlab_config.rb"
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_compile() {
|
|
||||||
emake all
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
# install lib
|
|
||||||
insinto ${DEST_DIR}; doins -r lib LICENSE README.md VERSION
|
|
||||||
|
|
||||||
# install scripts
|
|
||||||
exeinto ${DEST_DIR}/bin; doexe bin/*
|
|
||||||
exeinto ${DEST_DIR}/hooks; doexe hooks/*
|
|
||||||
exeinto ${DEST_DIR}/support; doexe support/*
|
|
||||||
|
|
||||||
# create symlinks to bin
|
|
||||||
local name; for name in $(basename -a bin/gitlab-*); do
|
|
||||||
dosym "${DEST_DIR}/bin/${name}" "/usr/bin/${name}"
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto $(dirname ${CONF_FILE})
|
|
||||||
newins config.yml.example $(basename ${CONF_FILE})
|
|
||||||
|
|
||||||
# create symlink for .gitlab_shell_secret
|
|
||||||
einfo "creating symlink for .gitlab_shell_secret"
|
|
||||||
TOKEN_FILE="${DEST_DIR}/.gitlab_shell_secret"
|
|
||||||
dosym ../../../opt/gitlab/.gitlab_shell_secret "${TOKEN_FILE}"
|
|
||||||
|
|
||||||
# Gitaly stupidly hardcodes the path to config.yml :(
|
|
||||||
MY_CONF_FILE="${DEST_DIR}/config.yml"
|
|
||||||
dosym "${CONF_FILE}" "${MY_CONF_FILE}"
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750; dodir ${DATA_DIR}
|
|
||||||
diropts -m770; keepdir ${DATA_DIR}/repositories
|
|
||||||
diropts -m755; dodir ${LOGS_DIR}
|
|
||||||
|
|
||||||
# GitLab stupidly expects that gitlab-shell is in home of git user...
|
|
||||||
dosym ${DEST_DIR} ${DATA_DIR}/gitlab-shell
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${GIT_USER}:${GIT_USER} ${DATA_DIR} ${LOGS_DIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# check git home directory
|
|
||||||
local git_home=$(egethome ${GIT_USER})
|
|
||||||
if [ ! "${git_home}" -ef ${DATA_DIR} ]; then
|
|
||||||
ewarn "An authorized_keys is configured to be inside ${DATA_DIR}/.ssh,"
|
|
||||||
ewarn "but HOME of ${GIT_USER} user is located in ${git_home}. You must"
|
|
||||||
ewarn "either change the authorized_keys location in ${CONF_FILE},"
|
|
||||||
ewarn "or change home directory of ${GIT_USER} user to ${DATA_DIR}"
|
|
||||||
ewarn "and move ${git_home}/.ssh here."
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
local auth_dir="${git_home}/.ssh"
|
|
||||||
|
|
||||||
elog "Initializing authorized_keys file in ${auth_dir}"
|
|
||||||
mkdir -p ${auth_dir}
|
|
||||||
touch ${auth_dir}/authorized_keys
|
|
||||||
chmod -R u=rwX,go=- ${auth_dir}
|
|
||||||
chown -R ${GIT_USER}:${GIT_USER} ${auth_dir}
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "GitLab Shell was initialized. Repositories are located in"
|
|
||||||
elog "${DATA_DIR}/repositories, scripts in ${DEST_DIR}/bin."
|
|
||||||
elog "All gitlab-* scripts was symlinked to /usr/bin to be on your path."
|
|
||||||
elog
|
|
||||||
elog "You should change your gitlab_url in: ${CONF_FILE}."
|
|
||||||
}
|
|
|
@ -1,132 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitlab-shell.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
|
|
||||||
inherit eutils git-r3 user
|
|
||||||
|
|
||||||
DESCRIPTION="SSH access and repository management for GitLab"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-shell"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
CDEPEND="
|
|
||||||
>=dev-lang/go-1.8.3
|
|
||||||
virtual/ruby-ssl"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-vcs/git-2.7.4
|
|
||||||
dev-db/redis
|
|
||||||
virtual/ssh"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GIT_USER="git"
|
|
||||||
DEST_DIR="/usr/share/${PN}"
|
|
||||||
DATA_DIR="/var/lib/git"
|
|
||||||
LOGS_DIR="/var/log/gitlab"
|
|
||||||
CONF_FILE="/etc/gitlab-shell.yml"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${GIT_USER}
|
|
||||||
enewuser ${GIT_USER} -1 /bin/bash ${DATA_DIR} "${GIT_USER}"
|
|
||||||
|
|
||||||
local git_shell=$(egetshell ${GIT_USER})
|
|
||||||
if [ ! ${git_shell} -ef '/bin/bash' ]; then
|
|
||||||
ewarn "User ${GIT_USER} already exists, but with the shell ${git_shell}."
|
|
||||||
ewarn "Changing shell to /bin/bash ..."
|
|
||||||
|
|
||||||
usermod -s /bin/bash ${GIT_USER} \
|
|
||||||
|| die "failed to change login shell for ${GIT_USER}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-${PN}-4.1.1-config-paths.patch"
|
|
||||||
epatch "${FILESDIR}/0002-${PN}-5.1.1-Makefile.patch"
|
|
||||||
# fix paths
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git|${DATA_DIR}|" \
|
|
||||||
-e "s|[\# ]*(log_file: ).*|\1\"${LOGS_DIR}/gitlab-shell.log\"|" \
|
|
||||||
config.yml.example || die "failed to filter config.yml.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|File\.join(ROOT_PATH, 'config.yml')|'${CONF_FILE}'|" \
|
|
||||||
lib/gitlab_config.rb || die "failed to filter gitlab_config.rb"
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# install lib
|
|
||||||
insinto ${DEST_DIR}; doins -r lib LICENSE README.md VERSION
|
|
||||||
|
|
||||||
# install scripts
|
|
||||||
exeinto ${DEST_DIR}/bin; doexe bin/*
|
|
||||||
exeinto ${DEST_DIR}/hooks; doexe hooks/*
|
|
||||||
exeinto ${DEST_DIR}/support; doexe support/*
|
|
||||||
|
|
||||||
# create symlinks to bin
|
|
||||||
local name; for name in $(basename -a bin/gitlab-*); do
|
|
||||||
dosym "${DEST_DIR}/bin/${name}" "/usr/bin/${name}"
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto $(dirname ${CONF_FILE})
|
|
||||||
newins config.yml.example $(basename ${CONF_FILE})
|
|
||||||
|
|
||||||
# create symlink for .gitlab_shell_secret
|
|
||||||
einfo "creating symlink for .gitlab_shell_secret"
|
|
||||||
TOKEN_FILE="${DEST_DIR}/.gitlab_shell_secret"
|
|
||||||
dosym ../../../opt/gitlab/.gitlab_shell_secret "${TOKEN_FILE}"
|
|
||||||
|
|
||||||
# Gitaly stupidly hardcodes the path to config.yml :(
|
|
||||||
MY_CONF_FILE="${DEST_DIR}/config.yml"
|
|
||||||
dosym "${CONF_FILE}" "${MY_CONF_FILE}"
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750; dodir ${DATA_DIR}
|
|
||||||
diropts -m770; keepdir ${DATA_DIR}/repositories
|
|
||||||
diropts -m755; dodir ${LOGS_DIR}
|
|
||||||
|
|
||||||
# GitLab stupidly expects that gitlab-shell is in home of git user...
|
|
||||||
dosym ${DEST_DIR} ${DATA_DIR}/gitlab-shell
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${GIT_USER}:${GIT_USER} ${DATA_DIR} ${LOGS_DIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# check git home directory
|
|
||||||
local git_home=$(egethome ${GIT_USER})
|
|
||||||
if [ ! "${git_home}" -ef ${DATA_DIR} ]; then
|
|
||||||
ewarn "An authorized_keys is configured to be inside ${DATA_DIR}/.ssh,"
|
|
||||||
ewarn "but HOME of ${GIT_USER} user is located in ${git_home}. You must"
|
|
||||||
ewarn "either change the authorized_keys location in ${CONF_FILE},"
|
|
||||||
ewarn "or change home directory of ${GIT_USER} user to ${DATA_DIR}"
|
|
||||||
ewarn "and move ${git_home}/.ssh here."
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
local auth_dir="${git_home}/.ssh"
|
|
||||||
|
|
||||||
elog "Initializing authorized_keys file in ${auth_dir}"
|
|
||||||
mkdir -p ${auth_dir}
|
|
||||||
touch ${auth_dir}/authorized_keys
|
|
||||||
chmod -R u=rwX,go=- ${auth_dir}
|
|
||||||
chown -R ${GIT_USER}:${GIT_USER} ${auth_dir}
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "GitLab Shell was initialized. Repositories are located in"
|
|
||||||
elog "${DATA_DIR}/repositories, scripts in ${DEST_DIR}/bin."
|
|
||||||
elog "All gitlab-* scripts was symlinked to /usr/bin to be on your path."
|
|
||||||
elog
|
|
||||||
elog "You should change your gitlab_url in: ${CONF_FILE}."
|
|
||||||
}
|
|
|
@ -1,132 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitlab-shell.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
|
|
||||||
inherit eutils git-r3 user
|
|
||||||
|
|
||||||
DESCRIPTION="SSH access and repository management for GitLab"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-shell"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
CDEPEND="
|
|
||||||
>=dev-lang/go-1.8.3
|
|
||||||
virtual/ruby-ssl"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-vcs/git-2.7.4
|
|
||||||
dev-db/redis
|
|
||||||
virtual/ssh"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GIT_USER="git"
|
|
||||||
DEST_DIR="/usr/share/${PN}"
|
|
||||||
DATA_DIR="/var/lib/git"
|
|
||||||
LOGS_DIR="/var/log/gitlab"
|
|
||||||
CONF_FILE="/etc/gitlab-shell.yml"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${GIT_USER}
|
|
||||||
enewuser ${GIT_USER} -1 /bin/bash ${DATA_DIR} "${GIT_USER}"
|
|
||||||
|
|
||||||
local git_shell=$(egetshell ${GIT_USER})
|
|
||||||
if [ ! ${git_shell} -ef '/bin/bash' ]; then
|
|
||||||
ewarn "User ${GIT_USER} already exists, but with the shell ${git_shell}."
|
|
||||||
ewarn "Changing shell to /bin/bash ..."
|
|
||||||
|
|
||||||
usermod -s /bin/bash ${GIT_USER} \
|
|
||||||
|| die "failed to change login shell for ${GIT_USER}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-${PN}-4.1.1-config-paths.patch"
|
|
||||||
epatch "${FILESDIR}/0002-${PN}-5.1.1-Makefile.patch"
|
|
||||||
# fix paths
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git|${DATA_DIR}|" \
|
|
||||||
-e "s|[\# ]*(log_file: ).*|\1\"${LOGS_DIR}/gitlab-shell.log\"|" \
|
|
||||||
config.yml.example || die "failed to filter config.yml.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|File\.join(ROOT_PATH, 'config.yml')|'${CONF_FILE}'|" \
|
|
||||||
lib/gitlab_config.rb || die "failed to filter gitlab_config.rb"
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# install lib
|
|
||||||
insinto ${DEST_DIR}; doins -r lib LICENSE README.md VERSION
|
|
||||||
|
|
||||||
# install scripts
|
|
||||||
exeinto ${DEST_DIR}/bin; doexe bin/*
|
|
||||||
exeinto ${DEST_DIR}/hooks; doexe hooks/*
|
|
||||||
exeinto ${DEST_DIR}/support; doexe support/*
|
|
||||||
|
|
||||||
# create symlinks to bin
|
|
||||||
local name; for name in $(basename -a bin/gitlab-*); do
|
|
||||||
dosym "${DEST_DIR}/bin/${name}" "/usr/bin/${name}"
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto $(dirname ${CONF_FILE})
|
|
||||||
newins config.yml.example $(basename ${CONF_FILE})
|
|
||||||
|
|
||||||
# create symlink for .gitlab_shell_secret
|
|
||||||
einfo "creating symlink for .gitlab_shell_secret"
|
|
||||||
TOKEN_FILE="${DEST_DIR}/.gitlab_shell_secret"
|
|
||||||
dosym ../../../opt/gitlab/.gitlab_shell_secret "${TOKEN_FILE}"
|
|
||||||
|
|
||||||
# Gitaly stupidly hardcodes the path to config.yml :(
|
|
||||||
MY_CONF_FILE="${DEST_DIR}/config.yml"
|
|
||||||
dosym "${CONF_FILE}" "${MY_CONF_FILE}"
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750; dodir ${DATA_DIR}
|
|
||||||
diropts -m770; keepdir ${DATA_DIR}/repositories
|
|
||||||
diropts -m755; dodir ${LOGS_DIR}
|
|
||||||
|
|
||||||
# GitLab stupidly expects that gitlab-shell is in home of git user...
|
|
||||||
dosym ${DEST_DIR} ${DATA_DIR}/gitlab-shell
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${GIT_USER}:${GIT_USER} ${DATA_DIR} ${LOGS_DIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# check git home directory
|
|
||||||
local git_home=$(egethome ${GIT_USER})
|
|
||||||
if [ ! "${git_home}" -ef ${DATA_DIR} ]; then
|
|
||||||
ewarn "An authorized_keys is configured to be inside ${DATA_DIR}/.ssh,"
|
|
||||||
ewarn "but HOME of ${GIT_USER} user is located in ${git_home}. You must"
|
|
||||||
ewarn "either change the authorized_keys location in ${CONF_FILE},"
|
|
||||||
ewarn "or change home directory of ${GIT_USER} user to ${DATA_DIR}"
|
|
||||||
ewarn "and move ${git_home}/.ssh here."
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
local auth_dir="${git_home}/.ssh"
|
|
||||||
|
|
||||||
elog "Initializing authorized_keys file in ${auth_dir}"
|
|
||||||
mkdir -p ${auth_dir}
|
|
||||||
touch ${auth_dir}/authorized_keys
|
|
||||||
chmod -R u=rwX,go=- ${auth_dir}
|
|
||||||
chown -R ${GIT_USER}:${GIT_USER} ${auth_dir}
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "GitLab Shell was initialized. Repositories are located in"
|
|
||||||
elog "${DATA_DIR}/repositories, scripts in ${DEST_DIR}/bin."
|
|
||||||
elog "All gitlab-* scripts was symlinked to /usr/bin to be on your path."
|
|
||||||
elog
|
|
||||||
elog "You should change your gitlab_url in: ${CONF_FILE}."
|
|
||||||
}
|
|
|
@ -1,141 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="1e587d3b7fbe596ab010cb022b0c6526d2489613"
|
|
||||||
|
|
||||||
DESCRIPTION="SSH access and repository management for GitLab"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-shell"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/gitlab-shell/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
CDEPEND=">=dev-lang/go-1.8.3"
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-vcs/git-2.7.4
|
|
||||||
dev-db/redis
|
|
||||||
virtual/ssh"
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/ruby-ssl"
|
|
||||||
|
|
||||||
MERGE_TYPE="binary"
|
|
||||||
|
|
||||||
RUBY_PATCHES=(
|
|
||||||
"0001-${PN}-4.1.1-config-paths.patch"
|
|
||||||
"0002-${PN}-5.1.1-Makefile.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GIT_USER="git"
|
|
||||||
DEST_DIR="/usr/share/${PN}"
|
|
||||||
DATA_DIR="/var/lib/git"
|
|
||||||
LOGS_DIR="/var/log/gitlab"
|
|
||||||
CONF_FILE="/etc/gitlab-shell.yml"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${GIT_USER}
|
|
||||||
enewuser ${GIT_USER} -1 /bin/bash ${DATA_DIR} "${GIT_USER}"
|
|
||||||
|
|
||||||
local git_shell=$(egetshell ${GIT_USER})
|
|
||||||
if [ ! ${git_shell} -ef '/bin/bash' ]; then
|
|
||||||
ewarn "User ${GIT_USER} already exists, but with the shell ${git_shell}."
|
|
||||||
ewarn "Changing shell to /bin/bash ..."
|
|
||||||
|
|
||||||
usermod -s /bin/bash ${GIT_USER} \
|
|
||||||
|| die "failed to change login shell for ${GIT_USER}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git|${DATA_DIR}|" \
|
|
||||||
-e "s|[\# ]*(log_file: ).*|\1\"${LOGS_DIR}/gitlab-shell.log\"|" \
|
|
||||||
config.yml.example || die "failed to filter config.yml.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|File\.join(ROOT_PATH, 'config.yml')|'${CONF_FILE}'|" \
|
|
||||||
lib/gitlab_config.rb || die "failed to filter gitlab_config.rb"
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_compile() {
|
|
||||||
emake all
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
# install lib
|
|
||||||
insinto ${DEST_DIR}; doins -r lib LICENSE README.md VERSION
|
|
||||||
|
|
||||||
# install scripts
|
|
||||||
exeinto ${DEST_DIR}/bin; doexe bin/*
|
|
||||||
exeinto ${DEST_DIR}/hooks; doexe hooks/*
|
|
||||||
exeinto ${DEST_DIR}/support; doexe support/*
|
|
||||||
|
|
||||||
# create symlinks to bin
|
|
||||||
local name; for name in $(basename -a bin/gitlab-*); do
|
|
||||||
dosym "${DEST_DIR}/bin/${name}" "/usr/bin/${name}"
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto $(dirname ${CONF_FILE})
|
|
||||||
newins config.yml.example $(basename ${CONF_FILE})
|
|
||||||
|
|
||||||
# create symlink for .gitlab_shell_secret
|
|
||||||
einfo "creating symlink for .gitlab_shell_secret"
|
|
||||||
TOKEN_FILE="${DEST_DIR}/.gitlab_shell_secret"
|
|
||||||
dosym ../../../opt/gitlab/.gitlab_shell_secret "${TOKEN_FILE}"
|
|
||||||
|
|
||||||
# Gitaly stupidly hardcodes the path to config.yml :(
|
|
||||||
MY_CONF_FILE="${DEST_DIR}/config.yml"
|
|
||||||
dosym "${CONF_FILE}" "${MY_CONF_FILE}"
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750; dodir ${DATA_DIR}
|
|
||||||
diropts -m770; keepdir ${DATA_DIR}/repositories
|
|
||||||
diropts -m755; dodir ${LOGS_DIR}
|
|
||||||
|
|
||||||
# GitLab stupidly expects that gitlab-shell is in home of git user...
|
|
||||||
dosym ${DEST_DIR} ${DATA_DIR}/gitlab-shell
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${GIT_USER}:${GIT_USER} ${DATA_DIR} ${LOGS_DIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# check git home directory
|
|
||||||
local git_home=$(egethome ${GIT_USER})
|
|
||||||
if [ ! "${git_home}" -ef ${DATA_DIR} ]; then
|
|
||||||
ewarn "An authorized_keys is configured to be inside ${DATA_DIR}/.ssh,"
|
|
||||||
ewarn "but HOME of ${GIT_USER} user is located in ${git_home}. You must"
|
|
||||||
ewarn "either change the authorized_keys location in ${CONF_FILE},"
|
|
||||||
ewarn "or change home directory of ${GIT_USER} user to ${DATA_DIR}"
|
|
||||||
ewarn "and move ${git_home}/.ssh here."
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
local auth_dir="${git_home}/.ssh"
|
|
||||||
|
|
||||||
elog "Initializing authorized_keys file in ${auth_dir}"
|
|
||||||
mkdir -p ${auth_dir}
|
|
||||||
touch ${auth_dir}/authorized_keys
|
|
||||||
chmod -R u=rwX,go=- ${auth_dir}
|
|
||||||
chown -R ${GIT_USER}:${GIT_USER} ${auth_dir}
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "GitLab Shell was initialized. Repositories are located in"
|
|
||||||
elog "${DATA_DIR}/repositories, scripts in ${DEST_DIR}/bin."
|
|
||||||
elog "All gitlab-* scripts was symlinked to /usr/bin to be on your path."
|
|
||||||
elog
|
|
||||||
elog "You should change your gitlab_url in: ${CONF_FILE}."
|
|
||||||
}
|
|
|
@ -1,141 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="2b575a8d646aa0dc45db6b8a371c7f6648f2ad69"
|
|
||||||
|
|
||||||
DESCRIPTION="SSH access and repository management for GitLab"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-shell"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/gitlab-shell/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
CDEPEND=">=dev-lang/go-1.8.3"
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-vcs/git-2.7.4
|
|
||||||
dev-db/redis
|
|
||||||
virtual/ssh"
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/ruby-ssl"
|
|
||||||
|
|
||||||
MERGE_TYPE="binary"
|
|
||||||
|
|
||||||
RUBY_PATCHES=(
|
|
||||||
"0001-${PN}-4.1.1-config-paths.patch"
|
|
||||||
"0002-${PN}-5.1.1-Makefile.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GIT_USER="git"
|
|
||||||
DEST_DIR="/usr/share/${PN}"
|
|
||||||
DATA_DIR="/var/lib/git"
|
|
||||||
LOGS_DIR="/var/log/gitlab"
|
|
||||||
CONF_FILE="/etc/gitlab-shell.yml"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${GIT_USER}
|
|
||||||
enewuser ${GIT_USER} -1 /bin/bash ${DATA_DIR} "${GIT_USER}"
|
|
||||||
|
|
||||||
local git_shell=$(egetshell ${GIT_USER})
|
|
||||||
if [ ! ${git_shell} -ef '/bin/bash' ]; then
|
|
||||||
ewarn "User ${GIT_USER} already exists, but with the shell ${git_shell}."
|
|
||||||
ewarn "Changing shell to /bin/bash ..."
|
|
||||||
|
|
||||||
usermod -s /bin/bash ${GIT_USER} \
|
|
||||||
|| die "failed to change login shell for ${GIT_USER}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git|${DATA_DIR}|" \
|
|
||||||
-e "s|[\# ]*(log_file: ).*|\1\"${LOGS_DIR}/gitlab-shell.log\"|" \
|
|
||||||
config.yml.example || die "failed to filter config.yml.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|File\.join(ROOT_PATH, 'config.yml')|'${CONF_FILE}'|" \
|
|
||||||
lib/gitlab_config.rb || die "failed to filter gitlab_config.rb"
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_compile() {
|
|
||||||
emake all
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
# install lib
|
|
||||||
insinto ${DEST_DIR}; doins -r lib LICENSE README.md VERSION
|
|
||||||
|
|
||||||
# install scripts
|
|
||||||
exeinto ${DEST_DIR}/bin; doexe bin/*
|
|
||||||
exeinto ${DEST_DIR}/hooks; doexe hooks/*
|
|
||||||
exeinto ${DEST_DIR}/support; doexe support/*
|
|
||||||
|
|
||||||
# create symlinks to bin
|
|
||||||
local name; for name in $(basename -a bin/gitlab-*); do
|
|
||||||
dosym "${DEST_DIR}/bin/${name}" "/usr/bin/${name}"
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto $(dirname ${CONF_FILE})
|
|
||||||
newins config.yml.example $(basename ${CONF_FILE})
|
|
||||||
|
|
||||||
# create symlink for .gitlab_shell_secret
|
|
||||||
einfo "creating symlink for .gitlab_shell_secret"
|
|
||||||
TOKEN_FILE="${DEST_DIR}/.gitlab_shell_secret"
|
|
||||||
dosym ../../../opt/gitlab/.gitlab_shell_secret "${TOKEN_FILE}"
|
|
||||||
|
|
||||||
# Gitaly stupidly hardcodes the path to config.yml :(
|
|
||||||
MY_CONF_FILE="${DEST_DIR}/config.yml"
|
|
||||||
dosym "${CONF_FILE}" "${MY_CONF_FILE}"
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750; dodir ${DATA_DIR}
|
|
||||||
diropts -m770; keepdir ${DATA_DIR}/repositories
|
|
||||||
diropts -m755; dodir ${LOGS_DIR}
|
|
||||||
|
|
||||||
# GitLab stupidly expects that gitlab-shell is in home of git user...
|
|
||||||
dosym ${DEST_DIR} ${DATA_DIR}/gitlab-shell
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${GIT_USER}:${GIT_USER} ${DATA_DIR} ${LOGS_DIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# check git home directory
|
|
||||||
local git_home=$(egethome ${GIT_USER})
|
|
||||||
if [ ! "${git_home}" -ef ${DATA_DIR} ]; then
|
|
||||||
ewarn "An authorized_keys is configured to be inside ${DATA_DIR}/.ssh,"
|
|
||||||
ewarn "but HOME of ${GIT_USER} user is located in ${git_home}. You must"
|
|
||||||
ewarn "either change the authorized_keys location in ${CONF_FILE},"
|
|
||||||
ewarn "or change home directory of ${GIT_USER} user to ${DATA_DIR}"
|
|
||||||
ewarn "and move ${git_home}/.ssh here."
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
local auth_dir="${git_home}/.ssh"
|
|
||||||
|
|
||||||
elog "Initializing authorized_keys file in ${auth_dir}"
|
|
||||||
mkdir -p ${auth_dir}
|
|
||||||
touch ${auth_dir}/authorized_keys
|
|
||||||
chmod -R u=rwX,go=- ${auth_dir}
|
|
||||||
chown -R ${GIT_USER}:${GIT_USER} ${auth_dir}
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "GitLab Shell was initialized. Repositories are located in"
|
|
||||||
elog "${DATA_DIR}/repositories, scripts in ${DEST_DIR}/bin."
|
|
||||||
elog "All gitlab-* scripts was symlinked to /usr/bin to be on your path."
|
|
||||||
elog
|
|
||||||
elog "You should change your gitlab_url in: ${CONF_FILE}."
|
|
||||||
}
|
|
|
@ -1,141 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="bbda5bd1dd2e841410d73a68fa8cd3a8425159c5"
|
|
||||||
|
|
||||||
DESCRIPTION="SSH access and repository management for GitLab"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-shell"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/gitlab-shell/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
CDEPEND=">=dev-lang/go-1.8.3"
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-vcs/git-2.7.4
|
|
||||||
dev-db/redis
|
|
||||||
virtual/ssh"
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/ruby-ssl"
|
|
||||||
|
|
||||||
MERGE_TYPE="binary"
|
|
||||||
|
|
||||||
RUBY_PATCHES=(
|
|
||||||
"0001-${PN}-4.1.1-config-paths.patch"
|
|
||||||
"0002-${PN}-5.1.1-Makefile.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GIT_USER="git"
|
|
||||||
DEST_DIR="/usr/share/${PN}"
|
|
||||||
DATA_DIR="/var/lib/git"
|
|
||||||
LOGS_DIR="/var/log/gitlab"
|
|
||||||
CONF_FILE="/etc/gitlab-shell.yml"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${GIT_USER}
|
|
||||||
enewuser ${GIT_USER} -1 /bin/bash ${DATA_DIR} "${GIT_USER}"
|
|
||||||
|
|
||||||
local git_shell=$(egetshell ${GIT_USER})
|
|
||||||
if [ ! ${git_shell} -ef '/bin/bash' ]; then
|
|
||||||
ewarn "User ${GIT_USER} already exists, but with the shell ${git_shell}."
|
|
||||||
ewarn "Changing shell to /bin/bash ..."
|
|
||||||
|
|
||||||
usermod -s /bin/bash ${GIT_USER} \
|
|
||||||
|| die "failed to change login shell for ${GIT_USER}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git|${DATA_DIR}|" \
|
|
||||||
-e "s|[\# ]*(log_file: ).*|\1\"${LOGS_DIR}/gitlab-shell.log\"|" \
|
|
||||||
config.yml.example || die "failed to filter config.yml.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|File\.join(ROOT_PATH, 'config.yml')|'${CONF_FILE}'|" \
|
|
||||||
lib/gitlab_config.rb || die "failed to filter gitlab_config.rb"
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_compile() {
|
|
||||||
emake all
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
# install lib
|
|
||||||
insinto ${DEST_DIR}; doins -r lib LICENSE README.md VERSION
|
|
||||||
|
|
||||||
# install scripts
|
|
||||||
exeinto ${DEST_DIR}/bin; doexe bin/*
|
|
||||||
exeinto ${DEST_DIR}/hooks; doexe hooks/*
|
|
||||||
exeinto ${DEST_DIR}/support; doexe support/*
|
|
||||||
|
|
||||||
# create symlinks to bin
|
|
||||||
local name; for name in $(basename -a bin/gitlab-*); do
|
|
||||||
dosym "${DEST_DIR}/bin/${name}" "/usr/bin/${name}"
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto $(dirname ${CONF_FILE})
|
|
||||||
newins config.yml.example $(basename ${CONF_FILE})
|
|
||||||
|
|
||||||
# create symlink for .gitlab_shell_secret
|
|
||||||
einfo "creating symlink for .gitlab_shell_secret"
|
|
||||||
TOKEN_FILE="${DEST_DIR}/.gitlab_shell_secret"
|
|
||||||
dosym ../../../opt/gitlab/.gitlab_shell_secret "${TOKEN_FILE}"
|
|
||||||
|
|
||||||
# Gitaly stupidly hardcodes the path to config.yml :(
|
|
||||||
MY_CONF_FILE="${DEST_DIR}/config.yml"
|
|
||||||
dosym "${CONF_FILE}" "${MY_CONF_FILE}"
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750; dodir ${DATA_DIR}
|
|
||||||
diropts -m770; keepdir ${DATA_DIR}/repositories
|
|
||||||
diropts -m755; dodir ${LOGS_DIR}
|
|
||||||
|
|
||||||
# GitLab stupidly expects that gitlab-shell is in home of git user...
|
|
||||||
dosym ${DEST_DIR} ${DATA_DIR}/gitlab-shell
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${GIT_USER}:${GIT_USER} ${DATA_DIR} ${LOGS_DIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# check git home directory
|
|
||||||
local git_home=$(egethome ${GIT_USER})
|
|
||||||
if [ ! "${git_home}" -ef ${DATA_DIR} ]; then
|
|
||||||
ewarn "An authorized_keys is configured to be inside ${DATA_DIR}/.ssh,"
|
|
||||||
ewarn "but HOME of ${GIT_USER} user is located in ${git_home}. You must"
|
|
||||||
ewarn "either change the authorized_keys location in ${CONF_FILE},"
|
|
||||||
ewarn "or change home directory of ${GIT_USER} user to ${DATA_DIR}"
|
|
||||||
ewarn "and move ${git_home}/.ssh here."
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
local auth_dir="${git_home}/.ssh"
|
|
||||||
|
|
||||||
elog "Initializing authorized_keys file in ${auth_dir}"
|
|
||||||
mkdir -p ${auth_dir}
|
|
||||||
touch ${auth_dir}/authorized_keys
|
|
||||||
chmod -R u=rwX,go=- ${auth_dir}
|
|
||||||
chown -R ${GIT_USER}:${GIT_USER} ${auth_dir}
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "GitLab Shell was initialized. Repositories are located in"
|
|
||||||
elog "${DATA_DIR}/repositories, scripts in ${DEST_DIR}/bin."
|
|
||||||
elog "All gitlab-* scripts was symlinked to /usr/bin to be on your path."
|
|
||||||
elog
|
|
||||||
elog "You should change your gitlab_url in: ${CONF_FILE}."
|
|
||||||
}
|
|
|
@ -1,132 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitlab-shell.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
|
|
||||||
inherit eutils git-r3 user
|
|
||||||
|
|
||||||
DESCRIPTION="SSH access and repository management for GitLab"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-shell"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
CDEPEND="
|
|
||||||
>=dev-lang/go-1.8.3
|
|
||||||
virtual/ruby-ssl"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-vcs/git-2.7.4
|
|
||||||
dev-db/redis
|
|
||||||
virtual/ssh"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GIT_USER="git"
|
|
||||||
DEST_DIR="/usr/share/${PN}"
|
|
||||||
DATA_DIR="/var/lib/git"
|
|
||||||
LOGS_DIR="/var/log/gitlab"
|
|
||||||
CONF_FILE="/etc/gitlab-shell.yml"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${GIT_USER}
|
|
||||||
enewuser ${GIT_USER} -1 /bin/bash ${DATA_DIR} "${GIT_USER}"
|
|
||||||
|
|
||||||
local git_shell=$(egetshell ${GIT_USER})
|
|
||||||
if [ ! ${git_shell} -ef '/bin/bash' ]; then
|
|
||||||
ewarn "User ${GIT_USER} already exists, but with the shell ${git_shell}."
|
|
||||||
ewarn "Changing shell to /bin/bash ..."
|
|
||||||
|
|
||||||
usermod -s /bin/bash ${GIT_USER} \
|
|
||||||
|| die "failed to change login shell for ${GIT_USER}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-${PN}-4.1.1-config-paths.patch"
|
|
||||||
# fix paths
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git|${DATA_DIR}|" \
|
|
||||||
-e "s|[\# ]*(log_file: ).*|\1\"${LOGS_DIR}/gitlab-shell.log\"|" \
|
|
||||||
config.yml.example || die "failed to filter config.yml.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|File\.join(ROOT_PATH, 'config.yml')|'${CONF_FILE}'|" \
|
|
||||||
lib/gitlab_config.rb || die "failed to filter gitlab_config.rb"
|
|
||||||
cp "${FILESDIR}/${PN}-6.0.3-Makefile" "${WORKDIR}/${P}/Makefile"
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# install lib
|
|
||||||
insinto ${DEST_DIR}; doins -r lib LICENSE README.md VERSION
|
|
||||||
|
|
||||||
# install scripts
|
|
||||||
exeinto ${DEST_DIR}/bin; doexe bin/*
|
|
||||||
exeinto ${DEST_DIR}/hooks; doexe hooks/*
|
|
||||||
exeinto ${DEST_DIR}/support; doexe support/*
|
|
||||||
|
|
||||||
# create symlinks to bin
|
|
||||||
local name; for name in $(basename -a bin/gitlab-*); do
|
|
||||||
dosym "${DEST_DIR}/bin/${name}" "/usr/bin/${name}"
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto $(dirname ${CONF_FILE})
|
|
||||||
newins config.yml.example $(basename ${CONF_FILE})
|
|
||||||
|
|
||||||
# create symlink for .gitlab_shell_secret
|
|
||||||
einfo "creating symlink for .gitlab_shell_secret"
|
|
||||||
TOKEN_FILE="${DEST_DIR}/.gitlab_shell_secret"
|
|
||||||
dosym ../../../opt/gitlab/.gitlab_shell_secret "${TOKEN_FILE}"
|
|
||||||
|
|
||||||
# Gitaly stupidly hardcodes the path to config.yml :(
|
|
||||||
MY_CONF_FILE="${DEST_DIR}/config.yml"
|
|
||||||
dosym "${CONF_FILE}" "${MY_CONF_FILE}"
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750; dodir ${DATA_DIR}
|
|
||||||
diropts -m770; keepdir ${DATA_DIR}/repositories
|
|
||||||
diropts -m755; dodir ${LOGS_DIR}
|
|
||||||
|
|
||||||
# GitLab stupidly expects that gitlab-shell is in home of git user...
|
|
||||||
dosym ${DEST_DIR} ${DATA_DIR}/gitlab-shell
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${GIT_USER}:${GIT_USER} ${DATA_DIR} ${LOGS_DIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# check git home directory
|
|
||||||
local git_home=$(egethome ${GIT_USER})
|
|
||||||
if [ ! "${git_home}" -ef ${DATA_DIR} ]; then
|
|
||||||
ewarn "An authorized_keys is configured to be inside ${DATA_DIR}/.ssh,"
|
|
||||||
ewarn "but HOME of ${GIT_USER} user is located in ${git_home}. You must"
|
|
||||||
ewarn "either change the authorized_keys location in ${CONF_FILE},"
|
|
||||||
ewarn "or change home directory of ${GIT_USER} user to ${DATA_DIR}"
|
|
||||||
ewarn "and move ${git_home}/.ssh here."
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
local auth_dir="${git_home}/.ssh"
|
|
||||||
|
|
||||||
elog "Initializing authorized_keys file in ${auth_dir}"
|
|
||||||
mkdir -p ${auth_dir}
|
|
||||||
touch ${auth_dir}/authorized_keys
|
|
||||||
chmod -R u=rwX,go=- ${auth_dir}
|
|
||||||
chown -R ${GIT_USER}:${GIT_USER} ${auth_dir}
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "GitLab Shell was initialized. Repositories are located in"
|
|
||||||
elog "${DATA_DIR}/repositories, scripts in ${DEST_DIR}/bin."
|
|
||||||
elog "All gitlab-* scripts was symlinked to /usr/bin to be on your path."
|
|
||||||
elog
|
|
||||||
elog "You should change your gitlab_url in: ${CONF_FILE}."
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>manuel@fritteli.ch</email>
|
|
||||||
<name>Manuel Friedli</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,699 +0,0 @@
|
||||||
13 Apr 2018; <manuel@gentoo.org> files/gitlab-10.4.4-unicorn.init:
|
|
||||||
www-apps/gitlab-ce: Fix init script: Remove "provide gitlab" instruction
|
|
||||||
|
|
||||||
*gitlab-ce-10.4.7 (13 Apr 2018)
|
|
||||||
|
|
||||||
13 Apr 2018; <manuel@gentoo.org> +gitlab-ce-10.4.7.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for version 10.4.7
|
|
||||||
|
|
||||||
*gitlab-ce-10.5.4 (09 Mar 2018)
|
|
||||||
|
|
||||||
09 Mar 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.5.4.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for version 10.5.4
|
|
||||||
|
|
||||||
09 Mar 2018; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-10.4.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: Fix dependency on nodejs: >=6.0.0
|
|
||||||
|
|
||||||
*gitlab-ce-10.4.5 (09 Mar 2018)
|
|
||||||
|
|
||||||
09 Mar 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.4.5.ebuild,
|
|
||||||
-gitlab-ce-10.4.4.ebuild:
|
|
||||||
www-apps/gitlab-ce: v10.4.4 -> v10.4.5
|
|
||||||
|
|
||||||
08 Mar 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/03-gitlab-ce-8.17.0-database.yml.patch,
|
|
||||||
-files/03-gitlab-ce-9.2.2-database.yml.patch,
|
|
||||||
-files/04-gitlab-ce-8.12.7-fix-check-task.patch,
|
|
||||||
-files/gitlab-8.13.3-sidekiq.init, -files/gitlab-8.13.3-unicorn.init,
|
|
||||||
-gitlab-ce-10.0.0_rc3.ebuild, -gitlab-ce-10.0.4.ebuild,
|
|
||||||
-gitlab-ce-9.0.13.ebuild, -gitlab-ce-9.1.10.ebuild, -gitlab-ce-9.2.10.ebuild,
|
|
||||||
-gitlab-ce-9.3.11.ebuild, -gitlab-ce-9.4.7.ebuild, -gitlab-ce-9999.ebuild,
|
|
||||||
metadata.xml:
|
|
||||||
www-apps/gitlab-ce: Purge all versions depending on <libgit2:0/26
|
|
||||||
|
|
||||||
*gitlab-ce-10.4.4 (19 Feb 2018)
|
|
||||||
|
|
||||||
19 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/08-gitlab-ce-10.4.4-general-config.patch,
|
|
||||||
+files/gitlab-10.4.4-sidekiq.init, +files/gitlab-10.4.4-unicorn.init,
|
|
||||||
+gitlab-ce-10.4.4.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for version 10.4.4.
|
|
||||||
|
|
||||||
*gitlab-ce-10.3.7 (17 Feb 2018)
|
|
||||||
|
|
||||||
17 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.3.7.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for version 10.3.7.
|
|
||||||
|
|
||||||
*gitlab-ce-10.2.8 (16 Feb 2018)
|
|
||||||
|
|
||||||
16 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/03-gitlab-ce-10.2.8-database.yml.patch, +gitlab-ce-10.2.8.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for version 10.2.8.
|
|
||||||
|
|
||||||
08 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/07-gitlab-ce-10.0.7-yarn.patch, gitlab-ce-10.0.7.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add patch for package.json and yarn.lock in order to fix
|
|
||||||
dependency errors that cause emerge --config gitlab-ce to fail
|
|
||||||
|
|
||||||
*gitlab-ce-9.5.10 (08 Feb 2018)
|
|
||||||
|
|
||||||
08 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.5.10.ebuild,
|
|
||||||
-gitlab-ce-9.5.9.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update 9.5.9.-> 9.5.10
|
|
||||||
|
|
||||||
*gitlab-ce-10.0.7 (08 Feb 2018)
|
|
||||||
|
|
||||||
08 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.0.7.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for version 10.0.7, the latest version for the
|
|
||||||
10.0 branch.
|
|
||||||
|
|
||||||
*gitlab-ce-10.0.4 (27 Oct 2017)
|
|
||||||
|
|
||||||
27 Oct 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.0.4.ebuild,
|
|
||||||
-gitlab-ce-10.0.1.ebuild:
|
|
||||||
www-apps/gitlab-ce: Version 10.0.4
|
|
||||||
|
|
||||||
*gitlab-ce-9.5.9 (27 Oct 2017)
|
|
||||||
|
|
||||||
27 Oct 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.5.9.ebuild,
|
|
||||||
-gitlab-ce-9.5.4.ebuild:
|
|
||||||
www-apps/gitlab-ce: Version 9.5.9
|
|
||||||
|
|
||||||
*gitlab-ce-9.4.7 (27 Oct 2017)
|
|
||||||
|
|
||||||
27 Oct 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.4.7.ebuild,
|
|
||||||
-gitlab-ce-9.4.6.ebuild, gitlab-ce-10.0.0_rc3.ebuild, gitlab-ce-10.0.1.ebuild,
|
|
||||||
gitlab-ce-9.0.13.ebuild, gitlab-ce-9.1.10.ebuild, gitlab-ce-9.2.10.ebuild,
|
|
||||||
gitlab-ce-9.3.11.ebuild, gitlab-ce-9.5.4.ebuild, gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Version 9.4.7
|
|
||||||
|
|
||||||
*gitlab-ce-10.0.1 (25 Sep 2017)
|
|
||||||
|
|
||||||
25 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.0.1.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for gitlab-10.0.1.
|
|
||||||
|
|
||||||
*gitlab-ce-10.0.0_rc3 (17 Sep 2017)
|
|
||||||
|
|
||||||
17 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.0.0_rc3.ebuild,
|
|
||||||
-gitlab-ce-9.4.0_rc6.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for gitlab-10.0.0_rc3.
|
|
||||||
|
|
||||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update ebuild for version 9999 (master branch).
|
|
||||||
|
|
||||||
*gitlab-ce-9.5.4 (08 Sep 2017)
|
|
||||||
|
|
||||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.5.4.ebuild,
|
|
||||||
-gitlab-ce-9.5.3.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update 9.5: 9.5.3 => 9.5.4: Security fixes.
|
|
||||||
|
|
||||||
*gitlab-ce-9.4.6 (08 Sep 2017)
|
|
||||||
|
|
||||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.4.6.ebuild,
|
|
||||||
-gitlab-ce-9.4.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update 9.4: 9.4.5 => 9.4.6: Security fixes.
|
|
||||||
|
|
||||||
*gitlab-ce-9.3.11 (08 Sep 2017)
|
|
||||||
|
|
||||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.3.11.ebuild,
|
|
||||||
-gitlab-ce-9.3.10.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update 9.3: 9.3.10 => 9.3.11: Security fixes.
|
|
||||||
|
|
||||||
*gitlab-ce-9.5.3 (05 Sep 2017)
|
|
||||||
|
|
||||||
05 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.5.3.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for version 9.5.3.
|
|
||||||
|
|
||||||
*gitlab-ce-9.0.13 (17 Aug 2017)
|
|
||||||
*gitlab-ce-9.1.10 (17 Aug 2017)
|
|
||||||
*gitlab-ce-9.2.10 (17 Aug 2017)
|
|
||||||
*gitlab-ce-9.3.10 (17 Aug 2017)
|
|
||||||
*gitlab-ce-9.4.5 (17 Aug 2017)
|
|
||||||
|
|
||||||
17 Aug 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.13.ebuild,
|
|
||||||
+gitlab-ce-9.1.10.ebuild, +gitlab-ce-9.2.10.ebuild, +gitlab-ce-9.3.10.ebuild,
|
|
||||||
+gitlab-ce-9.4.5.ebuild, -gitlab-ce-9.0.12.ebuild, -gitlab-ce-9.1.9.ebuild,
|
|
||||||
-gitlab-ce-9.2.9.ebuild, -gitlab-ce-9.3.9.ebuild, -gitlab-ce-9.4.0.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update versions 9.0 through 9.4 to their respective
|
|
||||||
latest patch releases.
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.12.ebuild,
|
|
||||||
gitlab-ce-9.1.9.ebuild, gitlab-ce-9.2.9.ebuild, gitlab-ce-9.3.9.ebuild:
|
|
||||||
www-apps/gitlab-ce: Emergency fix: After the upgrade to EAPI 6, RUBY_PATCHES
|
|
||||||
stopped working the way it did before. use PATCHES instead.
|
|
||||||
|
|
||||||
*gitlab-ce-9.4.0 (25 Jul 2017)
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/03-gitlab-ce-9.4.0-database.yml.patch, +gitlab-ce-9.4.0.ebuild,
|
|
||||||
gitlab-ce-9.4.0_rc6.ebuild, gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for version 9.4.0 and update dev versions
|
|
||||||
|
|
||||||
*gitlab-ce-9.4.0_rc6 (25 Jul 2017)
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.4.0_rc6.ebuild,
|
|
||||||
-gitlab-ce-9.3.0_rc2.ebuild, gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update dev versions of gitlab-ce
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.12.ebuild,
|
|
||||||
gitlab-ce-9.1.9.ebuild, gitlab-ce-9.2.9.ebuild, gitlab-ce-9.3.9.ebuild:
|
|
||||||
www-apps/gitlab-ce: Fix build errors due to missing dependency on dev-
|
|
||||||
libs/re2
|
|
||||||
|
|
||||||
*gitlab-ce-9.3.9 (25 Jul 2017)
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.3.9.ebuild,
|
|
||||||
-gitlab-ce-9.3.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update Gitlab 9.3.5 -> 9.3.9
|
|
||||||
|
|
||||||
*gitlab-ce-9.2.9 (25 Jul 2017)
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.2.9.ebuild,
|
|
||||||
-gitlab-ce-9.2.7.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update Gitlab 9.2.7 -> 9.2.9
|
|
||||||
|
|
||||||
*gitlab-ce-9.1.9 (25 Jul 2017)
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.1.9.ebuild,
|
|
||||||
-gitlab-ce-9.1.7.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update Gitlab 9.1.7 -> 9.1.9
|
|
||||||
|
|
||||||
*gitlab-ce-9.0.12 (25 Jul 2017)
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.12.ebuild,
|
|
||||||
-gitlab-ce-9.0.10.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update Gitlab 9.0.10 -> 9.0.12
|
|
||||||
|
|
||||||
16 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.10.ebuild,
|
|
||||||
gitlab-ce-9.1.7.ebuild, gitlab-ce-9.2.7.ebuild, gitlab-ce-9.3.0_rc2.ebuild,
|
|
||||||
gitlab-ce-9.3.5.ebuild, gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Switch to EAPI 6; this resolves #47.
|
|
||||||
|
|
||||||
10 Jul 2017; Jerzy Kołosowski <jerzy@kolosowscy.pl> gitlab-ce-9.2.7.ebuild,
|
|
||||||
gitlab-9.3.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: Fix libgit dependencies
|
|
||||||
|
|
||||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update ebuild for gitlab-ce-9999
|
|
||||||
|
|
||||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/02-gitlab-ce-8.11.0-fix-redis-config-path.patch,
|
|
||||||
-files/03-gitlab-ce-8.14.0-database.yml.patch,
|
|
||||||
-files/05-gitlab-ce-8.12.7-replace-sys-filesystem.patch,
|
|
||||||
-files/05-gitlab-ce-8.16.0-replace-sys-filesystem.patch,
|
|
||||||
-gitlab-ce-8.15.8.ebuild, -gitlab-ce-8.16.9.ebuild, -gitlab-ce-8.17.6.ebuild:
|
|
||||||
www-apps/gitlab-ce: Purge versions <9.0.0.
|
|
||||||
|
|
||||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.3.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: Fix last bug in the ebuild.
|
|
||||||
|
|
||||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.3.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: Fix some bugs in the ebuild.
|
|
||||||
|
|
||||||
*gitlab-ce-9.3.5 (08 Jul 2017)
|
|
||||||
|
|
||||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/gitlab-9.3.5-sidekiq.init, +files/gitlab-9.3.5-unicorn.init,
|
|
||||||
+gitlab-ce-9.3.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for gitlab-ce-9.3.5
|
|
||||||
|
|
||||||
*gitlab-ce-9.2.7 (08 Jul 2017)
|
|
||||||
|
|
||||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.2.7.ebuild,
|
|
||||||
-gitlab-ce-9.2.6.ebuild:
|
|
||||||
www-apps/gitlab-ce: Add ebuild for GitLab 9.2.7
|
|
||||||
|
|
||||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.10.ebuild,
|
|
||||||
gitlab-ce-9.1.7.ebuild, gitlab-ce-9.2.6.ebuild, gitlab-ce-9.3.0_rc2.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Follow rename of gitaly -> gitlab-gitaly
|
|
||||||
|
|
||||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update version 9999
|
|
||||||
|
|
||||||
*gitlab-ce-9.3.0_rc2 (17 Jun 2017)
|
|
||||||
|
|
||||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/04-gitlab-ce-9.3.0-fix-check-task.patch, +gitlab-ce-9.3.0_rc2.ebuild,
|
|
||||||
-gitlab-ce-9.2.0_rc7.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update 9.2.0_rc7 -> 9.3.0_rc2
|
|
||||||
|
|
||||||
*gitlab-ce-9.2.6 (17 Jun 2017)
|
|
||||||
|
|
||||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.2.6.ebuild,
|
|
||||||
-gitlab-ce-9.2.2.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update 9.2.2 -> 9.2.6
|
|
||||||
|
|
||||||
*gitlab-ce-9.1.7 (17 Jun 2017)
|
|
||||||
|
|
||||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.1.7.ebuild,
|
|
||||||
-gitlab-ce-9.1.4-r1.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update 9.1.4-r1 -> 9.1.7
|
|
||||||
|
|
||||||
*gitlab-ce-9.0.10 (17 Jun 2017)
|
|
||||||
|
|
||||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.10.ebuild,
|
|
||||||
-gitlab-ce-9.0.7.ebuild:
|
|
||||||
www-apps/gitlab-ce: Update 9.0.7 -> 9.0.10
|
|
||||||
|
|
||||||
*gitlab-ce-9.0.7 (25 May 2017)
|
|
||||||
|
|
||||||
25 May 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.7.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for Gitlab CE 9.0.7
|
|
||||||
|
|
||||||
*gitlab-ce-9.0.2 (30 Mar 2017)
|
|
||||||
|
|
||||||
30 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.2.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for Gitlab CE 9.0.2
|
|
||||||
|
|
||||||
30 Mar 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: brought the ebuild for the GIT version (9999) up to speed
|
|
||||||
in terms of dependencies.
|
|
||||||
|
|
||||||
*gitlab-ce-9.0.1-r1 (30 Mar 2017)
|
|
||||||
|
|
||||||
30 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.1-r1.ebuild,
|
|
||||||
-gitlab-ce-9.0.0.ebuild, -gitlab-ce-9.0.1.ebuild, gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: updated dependency on Ruby to ruby-2.3 for Gitlab CE >=9;
|
|
||||||
removed ebuild for version 9.0.0, as version 9.0.1 is out.
|
|
||||||
|
|
||||||
*gitlab-ce-9.0.1 (29 Mar 2017)
|
|
||||||
|
|
||||||
29 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.1.ebuild,
|
|
||||||
metadata.xml:
|
|
||||||
www-apps/gitlab-ce: Added ebuild for Gitlab CE 9.0.1; this is the first one
|
|
||||||
with the gitaly USE flag; though that is not supported yet, it must therefore
|
|
||||||
be disabled at the moment.
|
|
||||||
|
|
||||||
28 Mar 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.0.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Moved warning about MySQL migrations to the postinst
|
|
||||||
phase, as the config phase might fail when the database is not updated. So the
|
|
||||||
message must be displayed earlier.
|
|
||||||
|
|
||||||
28 Mar 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.0.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Fixed the latest ebuild to use yarn instead of npm.
|
|
||||||
|
|
||||||
*gitlab-ce-9.0.0 (28 Mar 2017)
|
|
||||||
|
|
||||||
28 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.0.ebuild:
|
|
||||||
www-apps/gitlab-ce: Added ebuild for Gitlab CE 9.0.0, dropping the ~arm
|
|
||||||
keyword due to the dependency to yarn, which is not available on unstable arm.
|
|
||||||
|
|
||||||
19 Mar 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.0_rc4.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Updated ebuild for gitlab-ce-9999 and also cleaned
|
|
||||||
dependencies for gitlab-9.0.0_rc4
|
|
||||||
|
|
||||||
*gitlab-ce-9.0.0_rc4 (19 Mar 2017)
|
|
||||||
|
|
||||||
19 Mar 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/02-gitlab-ce-9.0.0-fix-redis-config-path.patch,
|
|
||||||
+files/05-gitlab-ce-9.0.0-replace-sys-filesystem.patch,
|
|
||||||
+gitlab-ce-9.0.0_rc4.ebuild, -gitlab-ce-8.17.0_rc3.ebuild:
|
|
||||||
www-apps/gitlab-ce: Added ebuild for Gitlab CE 9.0.0 RC4
|
|
||||||
|
|
||||||
*gitlab-ce-8.15.8 (21 Mar 2017)
|
|
||||||
*gitlab-ce-8.16.8 (21 Mar 2017)
|
|
||||||
*gitlab-ce-8.17.4 (21 Mar 2017)
|
|
||||||
|
|
||||||
21 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.15.8.ebuild,
|
|
||||||
+gitlab-ce-8.16.8.ebuild, +gitlab-ce-8.17.4.ebuild, -gitlab-ce-8.15.4.ebuild,
|
|
||||||
-gitlab-ce-8.15.7.ebuild, -gitlab-ce-8.16.4.ebuild, -gitlab-ce-8.16.5.ebuild,
|
|
||||||
-gitlab-ce-8.16.6.ebuild, -gitlab-ce-8.17.0.ebuild, -gitlab-ce-8.17.2.ebuild,
|
|
||||||
-gitlab-ce-8.17.3.ebuild:
|
|
||||||
www-apps/gitlab-ce: Added ebuilds containing important security fixes These
|
|
||||||
versions contain the security fixes: - v8.15.8 - v8.16.8 - v8.17.4 Removed
|
|
||||||
all older ebuilds, as they are vulnerable. For more information see:
|
|
||||||
https://about.gitlab.com/2017/03/20/gitlab-8-dot-17-dot-4-security-release/
|
|
||||||
|
|
||||||
*gitlab-ce-8.17.3 (13 Mar 2017)
|
|
||||||
|
|
||||||
13 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.17.3.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild, metadata.xml:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.17.3, which is the initial
|
|
||||||
ebuild to contain a USE flag for gitlab-pages
|
|
||||||
|
|
||||||
*gitlab-ce-8.17.2 (07 Mar 2017)
|
|
||||||
|
|
||||||
07 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.17.2.ebuild:
|
|
||||||
www-apps/gitlab-ce: Added ebuild for gitlab-ce-8.17.2. This version does not
|
|
||||||
include support for gitlab-pages yet, as the ebuild for that is only just
|
|
||||||
about to be introduced to the overlay.
|
|
||||||
|
|
||||||
26 Feb 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-8.17.0.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Updated ebuild for the GIT version (-9999) and fixed the
|
|
||||||
dependency to nodejs in the 8.17.0 version.
|
|
||||||
|
|
||||||
26 Feb 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/06-gitlab-ce-8.17-fix-webpack-config.patch, gitlab-ce-8.17.0.ebuild:
|
|
||||||
www-apps/gitlab-ce: added patch for the webpack config, hopefully fixing the
|
|
||||||
emerge --config phase
|
|
||||||
|
|
||||||
*gitlab-ce-8.17.0 (24 Feb 2017)
|
|
||||||
|
|
||||||
24 Feb 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.17.0.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.17.0. This is the first
|
|
||||||
version to depend on npm
|
|
||||||
|
|
||||||
*gitlab-ce-8.16.6 (24 Feb 2017)
|
|
||||||
|
|
||||||
24 Feb 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+gitlab-ce-8.16.6.ebuild:
|
|
||||||
www-apps/gitlab-ce: Added ebuild for gitlab-ce-8.16.6
|
|
||||||
|
|
||||||
*gitlab-ce-8.15.7 (16 Feb 2017)
|
|
||||||
*gitlab-ce-8.16.5 (16 Feb 2017)
|
|
||||||
*gitlab-ce-8.17.0_rc3 (16 Feb 2017)
|
|
||||||
|
|
||||||
16 Feb 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/03-gitlab-ce-8.17.0-database.yml.patch, +gitlab-ce-8.15.7.ebuild,
|
|
||||||
+gitlab-ce-8.16.5.ebuild, +gitlab-ce-8.17.0_rc3.ebuild,
|
|
||||||
-gitlab-ce-8.17.0_rc1.ebuild, gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Added ebuilds for the lates patch versions of the 8.15
|
|
||||||
and 8.16 branch, and also for the lates release candidate of the 8.17 branch.
|
|
||||||
|
|
||||||
*gitlab-ce-8.16.4 (14 Feb 2017)
|
|
||||||
*gitlab-ce-8.17.0_rc1 (14 Feb 2017)
|
|
||||||
|
|
||||||
14 Feb 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.16.4.ebuild,
|
|
||||||
+gitlab-ce-8.17.0_rc1.ebuild, -gitlab-ce-8.14.5.ebuild,
|
|
||||||
-gitlab-ce-8.16.0_rc2.ebuild, gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.16.4
|
|
||||||
|
|
||||||
*gitlab-ce-8.16.0_rc2 (16 Jan 2017)
|
|
||||||
|
|
||||||
16 Jan 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/05-gitlab-ce-8.16.0-replace-sys-filesystem.patch,
|
|
||||||
+gitlab-ce-8.16.0_rc2.ebuild, -gitlab-ce-8.16.0_rc1.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: updated lates RC ebuild
|
|
||||||
|
|
||||||
*gitlab-ce-8.15.0_rc1 (16 Dec 2016)
|
|
||||||
|
|
||||||
16 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.15.0_rc1.ebuild,
|
|
||||||
-gitlab-ce-8.14.0_rc4.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for latest release candidate (8.15.0_rc1).
|
|
||||||
This is, as always, untested.
|
|
||||||
|
|
||||||
*gitlab-ce-8.14.5 (16 Dec 2016)
|
|
||||||
|
|
||||||
16 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.14.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for version 8.14.5, latest bugfix release
|
|
||||||
|
|
||||||
*gitlab-ce-8.14.4 (12 Dec 2016)
|
|
||||||
|
|
||||||
12 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.14.4.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.14.4, latest bugfix release
|
|
||||||
|
|
||||||
*gitlab-ce-8.14.3 (08 Dec 2016)
|
|
||||||
|
|
||||||
08 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.14.3.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab 8.14.3
|
|
||||||
|
|
||||||
*gitlab-ce-8.14.2 (05 Dec 2016)
|
|
||||||
|
|
||||||
05 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.14.2.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for latest bugfix release v8.14.2
|
|
||||||
|
|
||||||
23 Nov 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/gitlab-8.10.6-sidekiq.service, -files/gitlab-8.13.0-sidekiq.init,
|
|
||||||
-files/gitlab-8.13.0-unicorn.init, -gitlab-ce-8.12.7.ebuild,
|
|
||||||
-gitlab-ce-8.13.0.ebuild, -gitlab-ce-8.13.3.ebuild, -gitlab-ce-8.13.5.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: pruned old ebuilds
|
|
||||||
|
|
||||||
*gitlab-ce-8.14.0 (23 Nov 2016)
|
|
||||||
*gitlab-ce-8.14.0_rc4 (23 Nov 2016)
|
|
||||||
|
|
||||||
23 Nov 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/03-gitlab-ce-8.14.0-database.yml.patch, +gitlab-ce-8.14.0.ebuild,
|
|
||||||
+gitlab-ce-8.14.0_rc4.ebuild, -gitlab-ce-8.14.0_rc2.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.14.0
|
|
||||||
|
|
||||||
*gitlab-ce-8.13.6 (17 Nov 2016)
|
|
||||||
|
|
||||||
17 Nov 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.13.6.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.13.6
|
|
||||||
|
|
||||||
*gitlab-ce-8.13.5 (11 Nov 2016)
|
|
||||||
*gitlab-ce-8.14.0_rc1 (11 Nov 2016)
|
|
||||||
|
|
||||||
11 Nov 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.13.5.ebuild,
|
|
||||||
+gitlab-ce-8.14.0_rc1.ebuild, -gitlab-ce-8.12.0_rc6.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.13.5 and updated the
|
|
||||||
bleeding-edge ones
|
|
||||||
|
|
||||||
04 Nov 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
files/gitlab-8.13.3-sidekiq.init, files/gitlab-8.13.3-unicorn.init:
|
|
||||||
www-apps/gitlab-ce: fixed init script for gitlab-ce-8.13.3
|
|
||||||
|
|
||||||
03 Nov 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: updated ebuild for gitlab-9999
|
|
||||||
|
|
||||||
*gitlab-ce-8.13.3 (03 Nov 2016)
|
|
||||||
|
|
||||||
03 Nov 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/gitlab-8.13.3-sidekiq.init, +files/gitlab-8.13.3-unicorn.init,
|
|
||||||
+gitlab-ce-8.13.3.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.13.3, also with new init
|
|
||||||
scripts
|
|
||||||
|
|
||||||
22 Oct 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: updated dependencies for gitlab-ce-9999
|
|
||||||
|
|
||||||
*gitlab-ce-8.13.0 (22 Oct 2016)
|
|
||||||
|
|
||||||
22 Oct 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/gitlab-8.13.0-sidekiq.init, +files/gitlab-8.13.0-sidekiq.service,
|
|
||||||
+files/gitlab-8.13.0-unicorn.init, +gitlab-ce-8.13.0.ebuild,
|
|
||||||
-gitlab-ce-8.11.6.ebuild, -gitlab-ce-8.12.0.ebuild, gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for version 8.13.0 and deleted old ones
|
|
||||||
|
|
||||||
*gitlab-ce-8.12.7 (21 Oct 2016)
|
|
||||||
|
|
||||||
21 Oct 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/01-gitlab-ce-8.7.5-fix-sendmail-config.patch,
|
|
||||||
+files/02-gitlab-ce-8.11.0-fix-redis-config-path.patch,
|
|
||||||
+files/03-gitlab-ce-8.12.7-database.yml.patch,
|
|
||||||
+files/04-gitlab-ce-8.12.7-fix-check-task.patch,
|
|
||||||
+files/05-gitlab-ce-8.12.7-replace-sys-filesystem.patch,
|
|
||||||
+gitlab-ce-8.12.7.ebuild, -files/gitlab-ce-8.11.0-fix-redis-config-path.patch,
|
|
||||||
-files/gitlab-ce-8.12.4-database.yml.patch,
|
|
||||||
-files/gitlab-ce-8.7.5-fix-sendmail-config.patch, -gitlab-ce-8.12.4.ebuild,
|
|
||||||
gitlab-ce-8.11.6.ebuild, gitlab-ce-8.12.0.ebuild, gitlab-ce-8.12.0_rc6.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-8.12.7 and incorporated the
|
|
||||||
following patches from Jakub: - 0002-default-configs.patch - 0005-fix-check-
|
|
||||||
task.patch - 0006-replace-sys-filesystem.patch
|
|
||||||
|
|
||||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-8.12.0.ebuild:
|
|
||||||
www-apps/gitlab-ce: added missing keywords for version 8.12.0
|
|
||||||
|
|
||||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: updated dependencies for gitlab-ce-9999
|
|
||||||
|
|
||||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/gitlab-ce-8.9.1-fix-redis-config-path.patch,
|
|
||||||
-files/gitlab-sidekiq.service:
|
|
||||||
www-apps/gitlab-ce: deleted obsolete auxiliary files
|
|
||||||
|
|
||||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch> -gitlab-ce-8.10.6.ebuild,
|
|
||||||
-gitlab-ce-8.11.0.ebuild, -gitlab-ce-8.11.2.ebuild, -gitlab-ce-8.11.3.ebuild,
|
|
||||||
-gitlab-ce-8.11.4.ebuild, -gitlab-ce-8.11.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: removed old versions
|
|
||||||
|
|
||||||
*gitlab-ce-8.12.0 (23 Sep 2016)
|
|
||||||
|
|
||||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.12.0.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for version 8.12.0
|
|
||||||
|
|
||||||
*gitlab-ce-8.12.0_rc6 (21 Sep 2016)
|
|
||||||
|
|
||||||
21 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.12.0_rc6.ebuild,
|
|
||||||
-gitlab-ce-8.12.0_rc4.ebuild, gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: - updated ebuild fot 8.12.0-rc4 to 8.12.0-rc6 - updated
|
|
||||||
dependencies in 8.12.0-rc6 and 9999
|
|
||||||
|
|
||||||
*gitlab-ce-8.12.0_rc4 (18 Sep 2016)
|
|
||||||
|
|
||||||
18 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.12.0_rc4.ebuild,
|
|
||||||
-gitlab-ce-8.12.0_rc3.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.12.0_rc4 with Ruby 2.3
|
|
||||||
support
|
|
||||||
|
|
||||||
*gitlab-ce-8.11.6 (18 Sep 2016)
|
|
||||||
|
|
||||||
18 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.11.6.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.11.6
|
|
||||||
|
|
||||||
*gitlab-ce-8.12.0_rc2 (11 Sep 2016)
|
|
||||||
|
|
||||||
11 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.12.0_rc2.ebuild,
|
|
||||||
-gitlab-ce-8.11.0_rc1.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for version 8.12.0_rc2 and deleted old
|
|
||||||
version 8.11.0_rc1
|
|
||||||
|
|
||||||
*gitlab-ce-8.11.5 (08 Sep 2016)
|
|
||||||
|
|
||||||
08 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.11.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.11.5
|
|
||||||
|
|
||||||
*gitlab-ce-8.11.4 (02 Sep 2016)
|
|
||||||
|
|
||||||
02 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.11.4.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for www-apps/gitlab-ce-8.11.4. this version
|
|
||||||
should fix the update migration issue that was introduced with the 8.11.0
|
|
||||||
ebuild.
|
|
||||||
|
|
||||||
*gitlab-ce-8.11.3 (30 Aug 2016)
|
|
||||||
|
|
||||||
30 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.11.3.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.11.3 which contains various
|
|
||||||
fixes
|
|
||||||
|
|
||||||
*gitlab-ce-8.11.2 (29 Aug 2016)
|
|
||||||
|
|
||||||
29 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.11.2.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.11.2
|
|
||||||
|
|
||||||
22 Aug 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: updated ebuild for gitlab-9999 (git master)
|
|
||||||
|
|
||||||
22 Aug 2016; Manuel Friedli <manuel@fritteli.ch> -gitlab-ce-8.10.1.ebuild,
|
|
||||||
-gitlab-ce-8.10.2.ebuild, -gitlab-ce-8.10.3.ebuild, -gitlab-ce-8.10.4.ebuild,
|
|
||||||
-gitlab-ce-8.9.6.ebuild:
|
|
||||||
www-apps/gitlab-ce: purged all versions older than gitlab-ce-8.10.6
|
|
||||||
|
|
||||||
*gitlab-ce-8.11.0 (22 Aug 2016)
|
|
||||||
|
|
||||||
22 Aug 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/gitlab-ce-8.11.0-fix-redis-config-path.patch, +gitlab-ce-8.11.0.ebuild:
|
|
||||||
www-apps/gitlab-ce: added gitlab-ce-8.11.0. this version contains the new
|
|
||||||
issue board!
|
|
||||||
|
|
||||||
*gitlab-ce-8.10.6 (18 Aug 2016)
|
|
||||||
|
|
||||||
18 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.6.ebuild
|
|
||||||
+files/gitlab-8.10.6-sidekiq.service:
|
|
||||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.10.6 and fixed systemd-
|
|
||||||
sidekiq service file
|
|
||||||
|
|
||||||
09 Aug 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-8.11.0_rc1.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: updated ebuild with correct commit id for version
|
|
||||||
8.11.0_rc1
|
|
||||||
|
|
||||||
*gitlab-ce-8.10.4 (05 Aug 2016)
|
|
||||||
|
|
||||||
05 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.4.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for version 8.10.4
|
|
||||||
|
|
||||||
*gitlab-ce-8.10.3 (02 Aug 2016)
|
|
||||||
|
|
||||||
02 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.3.ebuild:
|
|
||||||
www-apps/gitlab-ce: Added ebuild for version 8.10.3
|
|
||||||
|
|
||||||
02 Aug 2016; Manuel Friedli <manuel@fritteli.ch> -gitlab-ce-8.10.0_rc9.ebuild:
|
|
||||||
www-apps/gitlab-ce: removed old RC version
|
|
||||||
|
|
||||||
*gitlab-ce-8.10.2 (27 Jul 2016)
|
|
||||||
|
|
||||||
27 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.2.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for version 8.10.2 which fixes several bugs
|
|
||||||
|
|
||||||
27 Jul 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-8.10.1.ebuild:
|
|
||||||
www-apps/gitlab-ce: Fixed config phase for gitlab-ce-8.10.1
|
|
||||||
|
|
||||||
*gitlab-ce-8.10.1 (26 Jul 2016)
|
|
||||||
|
|
||||||
26 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.1.ebuild,
|
|
||||||
-files/gitlab-ce-8.8.1-fix-redis-config-path.patch, -gitlab-ce-8.8.5.ebuild,
|
|
||||||
-gitlab-ce-8.9.1.ebuild, -gitlab-ce-8.9.2.ebuild, -gitlab-ce-8.9.3.ebuild,
|
|
||||||
-gitlab-ce-8.9.4.ebuild, -gitlab-ce-8.9.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: - added ebuild for gitlab-ce-8.10.1 - deleted all
|
|
||||||
versions < 8.9.6 - removed obsolete patch file
|
|
||||||
|
|
||||||
*gitlab-ce-8.10.0_rc9 (18 Jul 2016)
|
|
||||||
|
|
||||||
18 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.0_rc9.ebuild,
|
|
||||||
-gitlab-ce-8.10.0_rc4.ebuild:
|
|
||||||
www-apps/gitlab-ce: Added ebuild for gitlab-ce-8.10.0_rc9, and removed ebuild
|
|
||||||
for gitlab-ce-8.10.0_rc4
|
|
||||||
|
|
||||||
*gitlab-ce-8.10.0_rc4 (12 Jul 2016)
|
|
||||||
|
|
||||||
12 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.0_rc4.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Updated dependency to gitlab-workhorse in gitlab-ce-9999
|
|
||||||
to v0.7.8 and added ebuild for gitlab-ce-8.10.0_rc4
|
|
||||||
|
|
||||||
*gitlab-ce-8.9.6 (11 Jul 2016)
|
|
||||||
|
|
||||||
11 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.6.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for version 8.9.6
|
|
||||||
|
|
||||||
09 Jul 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: updated dependencies to gitlab-shell and gitlab-workhorse
|
|
||||||
for gitlab-ce-9999
|
|
||||||
|
|
||||||
09 Jul 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-8.9.1.ebuild,
|
|
||||||
gitlab-ce-8.9.2.ebuild, gitlab-ce-8.9.3.ebuild, gitlab-ce-8.9.4.ebuild,
|
|
||||||
gitlab-ce-8.9.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: fixed dependency on dev-vcs/gitlab-shell for all 8.9*
|
|
||||||
ebuilds (need =dev-vcs/gitlab-shell-3.0*, not >=dev-vcs/gitlab-shell-3.0.0)
|
|
||||||
|
|
||||||
*gitlab-ce-8.9.5 (09 Jul 2016)
|
|
||||||
|
|
||||||
09 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.5.ebuild:
|
|
||||||
www-apps/gitlab-ce: Added ebuild for gitlab-8.9.5. It contains a security fix
|
|
||||||
for CVE-2012-6684
|
|
||||||
|
|
||||||
*gitlab-ce-8.9.4 (05 Jul 2016)
|
|
||||||
|
|
||||||
05 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.4.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for version 8.9.4
|
|
||||||
|
|
||||||
*gitlab-ce-8.9.3 (01 Jul 2016)
|
|
||||||
|
|
||||||
01 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.3.ebuild,
|
|
||||||
files/gitlab-unicorn.init:
|
|
||||||
www-apps/gitlab-ce: added ebuild for version 8.9.3 and updated init script.
|
|
||||||
now, individual restart of sidekiq is possible
|
|
||||||
|
|
||||||
*gitlab-ce-8.9.2 (28 Jun 2016)
|
|
||||||
|
|
||||||
28 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.2.ebuild:
|
|
||||||
www-apps/gitlab-ce: Added ebuild for www-apps/gitlab-ce-8.9.2. This is a
|
|
||||||
security fix.
|
|
||||||
|
|
||||||
26 Jun 2016; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/gitlab-ce-8.7.5-fix-redis-config-path.patch, -gitlab-ce-8.7.5.ebuild,
|
|
||||||
-gitlab-ce-8.8.1.ebuild, -gitlab-ce-8.8.2.ebuild, -gitlab-ce-8.8.3.ebuild,
|
|
||||||
-gitlab-ce-8.8.4.ebuild, gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: Purged all old versions; updated patchfile for
|
|
||||||
gitlab-ce-9999
|
|
||||||
|
|
||||||
*gitlab-ce-8.9.1 (26 Jun 2016)
|
|
||||||
|
|
||||||
18 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.1.ebuild:
|
|
||||||
Added ebuild for www-apps/gitlab-ce-8.9.1
|
|
||||||
|
|
||||||
*gitlab-ce-8.8.5 (18 Jun 2016)
|
|
||||||
|
|
||||||
18 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.8.5.ebuild,
|
|
||||||
gitlab-ce-9999.ebuild:
|
|
||||||
www-apps/gitlab-ce: added ebuild for version 8.8.5 and updated dependencies
|
|
||||||
for version 9999 (git master)
|
|
||||||
|
|
||||||
*gitlab-ce-8.8.4 (13 Jun 2016)
|
|
||||||
|
|
||||||
13 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.8.4.ebuild:
|
|
||||||
Added ebuild for www-apps/gitlab-ce-8.8.4
|
|
||||||
|
|
||||||
07 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +ChangeLog:
|
|
||||||
Added ChangeLog
|
|
|
@ -1,33 +0,0 @@
|
||||||
AUX 01-gitlab-ce-8.7.5-fix-sendmail-config.patch 705 BLAKE2B 9e1ce59c1396726734946ad3313269259b9debcd0ecc6ad92cd769ce04d77a7de360903ae093e4d1be764717ad21d24b9b020f6caefe95df4989974d3ea6e16e SHA512 a92659db8cab022185d87f321b037b1731612bf5f89b9df4552dd49b843bb49b6019f8ddda96a6fd6cb6544664a1c3d52ca5fee2c11be8b33698cc713219510f
|
|
||||||
AUX 02-gitlab-ce-9.0.0-fix-redis-config-path.patch 423 BLAKE2B 981bbd3f4142a870915eb01ab08d58eebcafcdebd1141c06ad94c40f2b8a7e34520e1292e517d67c6c60f17a6c4ac535396d8e7a541d4a1671e75cfa3e067986 SHA512 ae89fa3c6fde777e844e777862415450787ebf83653435cea329d66810c5805d2126d41cb1ce40b15c42371543bc182a59305b8b1b6a7433121340a625300370
|
|
||||||
AUX 03-gitlab-ce-10.2.8-database.yml.patch 2681 BLAKE2B b2537f30844808b0cbdedf8a6c55cb5cb789a83287506d1604751c1ee54453b8667c5faf3fe75196f7dd05e9d35ee51b9260a4680202640ef96e2057b5bd3bbf SHA512 93555c817eca4b7b04aac0d3f3ffbcb2f56e03ded54529f222c1b9b2a17e6eea6133bbd1d832bf19f98b60722a1f6ba63e21649abf0b4de5ac22560494155ca1
|
|
||||||
AUX 03-gitlab-ce-9.4.0-database.yml.patch 2402 BLAKE2B 9e31ffda8f1af976f0417dac40ad6b467fc0d9a6cf2a7d76339bff60d5aa463b08a97df26b83e82e31782ec5aba41b47773c72ba39db22da62ef9ebe53d6fdf8 SHA512 42c66dcbf6f311ddcf391330b97acc36493f5ddc8e66c8812bf9826f7750c6bd268da6d5a159973902077528cdd11ae61594e3e377b1f9a6a5b551522d615a35
|
|
||||||
AUX 04-gitlab-ce-9.3.0-fix-check-task.patch 1090 BLAKE2B f093cfbb8c24bb96e673a4e7a9b9641da5897e9bcb1304d8eec137ed66471b369a615c10dcdefca6de3b0d2623e83c24a69214fcea0ccb23889604ed4581b61a SHA512 2eacb47df7f9782172ae4f71d8e5fb07f2a830da7733e2ec84b95259a9ee5d454f9c68f93b40251050cedd502761800ec56fe7f502309364e61e9e4431e2b112
|
|
||||||
AUX 05-gitlab-ce-9.0.0-replace-sys-filesystem.patch 2436 BLAKE2B bca02c3ef45c5c0d376f381c842758aa107cde2b5439af9fd027b20e1898c27bd29323efac16258a510cd6b8b4db1cfb409700e134387440bfbe812f9f5a1141 SHA512 21636f298df7e762f59595f39fb50266f8737311f37aa2b9ba96bc29190b8a67eea01b09e3b589d0885da6b27beaa136fa66c7d98408a8e3ecb3ac6baf20d891
|
|
||||||
AUX 06-gitlab-ce-8.17.0-fix-webpack-config.patch 614 BLAKE2B f635eb4943d9ed6418e6bfe9aa0380a91c6063cb0d690a7449241afc5d03a6ac28e19aeaf3b5dce05710006105a6e688ab5f8dacf92544fc4a3c96d133e8af09 SHA512 f5ccb4d1849ab395ba4ec3c80735a1fedd9fa7f790c8b114d8dc8d1fc2c431d7b9e5645247485f0b8c1061a00ed61c21a5e50f49af0d76e232182c68868a163f
|
|
||||||
AUX 07-gitlab-ce-10.0.7-yarn.patch 36442 BLAKE2B 66be83739a26557b99861c1bf7356ccbd377a25b2602dc075d06705fa0c6136a130274e9c39d1c882bf4d6253f0a541cc74b675072d80bb418663f42067e888d SHA512 931edab62e1218f84f08db72cc2f4ff95e53c6f88d755224de5e9dd19c230bb4b4c808accebd14c7bb06e6c57e4f101f7b4fb1843abb9a908d7f9f2b901d4e5f
|
|
||||||
AUX 08-gitlab-ce-10.4.4-general-config.patch 4069 BLAKE2B 032dac26af1510ec0e9d3b729855d12f8a1b327b331c12cc7ab29c2b6abb658f7de755f86d29258000fa6fbd97a367103ac2b10b34d3e3ae678ab415ec6c88fd SHA512 c9e7e2456c43b9b3494adacd980a07e4f75ce07259622e2215a9a2f3cd7f4173473e5e0044f978ee8b84042a42eb49156cb1d9f258e4c32b1284beb1f5ac9524
|
|
||||||
AUX gitlab-10.4.4-sidekiq.init 1461 BLAKE2B 1754fc086c2995241023d9dacad9daa472337d328c966a5021cfe82dd5afb4fe0d0f16584057e9314e6f7ce6b79e39fd509df7e664a7e1ef31a4f3e1d64980ec SHA512 8d536a3db5af3bdf04b92e0c1e9e9d65aacb3dff244729d32f28b8dd66f586cbd5a2e60b3e2f58c2be96c0c09708dc21275adca3f89fbdfa20e000e9563ee880
|
|
||||||
AUX gitlab-10.4.4-unicorn.init 4052 BLAKE2B 67a6bb2fc5c5571f7b631accf4502f642146a1eef028df4a49c2df5813f0a56499a4f64c090e8673a74050413a947d49caf47799b819163813491b34c609b43c SHA512 241c5ecd9f34b686c47a3b46fd8ac121c4ea5a644541bb61f2ea1f06fb9351aff79b8647ea9b147eb194545db00439ced1bced8a5d3936c55b1371802979524f
|
|
||||||
AUX gitlab-8.13.0-sidekiq.service 990 BLAKE2B fa753e0886ccebca2338b78f5f58b23380430a3b7b9bf2b118576faf1b9bd58fe33c9bcce544a29f1f20d6a651c090677af2060901f99585df6e6a0df9d70a74 SHA512 c356baf65337739b08a0a4bfe24d3b68f557e9d6d95f479b39ec954ee6c2077e380f99d1e9e9390f5b038e093c0a46562f651512a6578dfa86977580159470a2
|
|
||||||
AUX gitlab-9.3.5-sidekiq.init 1464 BLAKE2B 61643180adcd406fa1ddeb35ec40075fc81898279da8c87d52060a38937afe8ed895ec89350bc20a4e7adc78283d6c1df35175227beb9876b811a4cc0b476525 SHA512 fe00243c815b0e4f826aada4f02c70659872673a36fe92ea1b72a94a21bacfb097260ac1623cc1fc9c74566fe5c6068a456c9dc6e1e1c02f42e86fd162573713
|
|
||||||
AUX gitlab-9.3.5-unicorn.init 3748 BLAKE2B c9019356230bd82a7552f2aafaa543148b1fa2e626015129276a9f17c5905c699b8e56a6f749f21da1a49728ab0054a41d08bbce9eb1e167dd8a2d721ed362df SHA512 6f7a6cded598f3f8174a4d39f06f1994aa77b22cb90fa7f1bb6f82919c9856c3eae1623f57636f2ee564b2bf6c660c82dd104e3c59455946db42e6cf44079ccb
|
|
||||||
AUX gitlab-mailroom.service 773 BLAKE2B 97850f4e90451392fd30477ec402a1d5ecec60f1732c2a6d09657f56740ca0cffb0a25a2e9e95a807b131d452fd11f78bc37610e3d6266465186994111f13236 SHA512 f82c63a180add1103e2bd115e67826ad7362a844991ef16f1de7fc6c78bf1955155ecf278fc0d759e674ab85736f3ba2a6650d00e9b3ce683316875efd9efa3c
|
|
||||||
AUX gitlab-unicorn.service 773 BLAKE2B e8b448c182bb6cb4a34872bb4ae94162d08e37c142d957348e1c8b1e27636f93d65b31ba4c4428132b89daa368d825c56006a574949e3d4ea00b0888afa4382c SHA512 0bf9630aa91ed8f590a7bfa42d09b7ba33f6342b43b3d191c792c11157f8926c2a2ac2390eebd8179637e29b5bf68233d4699d62463497a0fd45b9bdbdd9167b
|
|
||||||
AUX gitlab-workhorse.service 930 BLAKE2B 824dc2f99dc87825fed07268d2b08ff73973145245e1b753caa798d358174a52887583988feb0f51a27c75b194c663ecdc954ad5620ae36a446ea2ecee44239a SHA512 6332024fe0049287899cf482b6e4439e9dd90da14e489d08aa8e5e79cb7872efcc517d99b69fa23b011b382acb1e5926496a78f08af5d2d64daa515b869a0c6a
|
|
||||||
AUX gitlab.conf 27 BLAKE2B d06e3663890c54ec7f305e6b56ec90769664d484444b05d3003230c6399d63bd654c8ab161d70e4dd312e5fad6750a66e1c12ce60c153b816f9949dc92b41bef SHA512 909c49fee6d050c1e94b2559ff2a9d54c5c346492be0e2920b50d56d69eaddbed67e3ac12e012d2a9601b5596640ebf33c8dc68fc588a03ca370d963294be37f
|
|
||||||
DIST gitlab-ce-10.0.7.tar.gz 40049508 BLAKE2B 700a37878b9856fd6af8a0f8ef8e4d89b2b5913ed201eef5dbcf83eb50d63df61201e87d3c9c8956385d8af1acb66a60b8a2e23921583d0ff2080a05f6960092 SHA512 770b747a35988b663f1ffe3b05b317839cc66e9c76e64e51673d066787a42acbb688b739fe9fe3a6dc787f2e44d6fbd99388ea0a20f103bedc631ed0054401f4
|
|
||||||
DIST gitlab-ce-10.1.7.tar.gz 41749804 BLAKE2B 73d4d46f076175bbc554a36d1ed79688b969b92aede27ba2d3b2be1e210c065bb03cc19a6eb4ccaf24961ab918dba81829c60f47d330fc803892affd8f96f826 SHA512 3ebf8ab1e57ef82caeef940264a6f755e091717879d7ac36ce786155440ebd1264fa3320012cea4d1e6c319926a818cfcb19740fb765f069d5d18841ac1c0a21
|
|
||||||
DIST gitlab-ce-10.2.8.tar.gz 42393303 BLAKE2B 9d31579a15549e05d076d927dc4eb5c704565223926e968b7e4a0efdb5fc9d64afb697c6c391bbcbb86791639817a192222b7bc50ce7fbcb86ee68dd3a03f7d6 SHA512 cdd30f8500d1c902c42fd60b155143dc76ebc9990cc9c515ab2229f678feedebf6e1c7bd9c2c59b374cea2259eb7ad1384f50184787f45381afdaf3eb8e82803
|
|
||||||
DIST gitlab-ce-10.3.7.tar.gz 42852145 BLAKE2B 4f1340ea0b130eec5ba1fa2df43e04bab7c7bb920132c0deda0ae7498065da3938435c3aef957d416cc96ca8117ef5872f7b2c3f5691d81262ff34598b203dde SHA512 f4488e5a02067ebfbc9dcc0d1e0b06eeb047ea793c5e5c286e54c2fcee56d88f0a4b4dcbae66319a63960e7737ff134ab615764524fb7bb5bf017b0d035a55e0
|
|
||||||
DIST gitlab-ce-9.5.10.tar.gz 36463237 BLAKE2B d29ddcdb9c8e254fa0db050db148cd26b1889ec3923950d1d75068622a3a20087f0be62c395aa25c01f06a636214063e6e3ebd0561884ff6308f23770267bd2d SHA512 c1d2de2fbe7ebde26f2b56de2b7d48a4179c4ecb7e1676bffbcbab46cd59a96a46f7d6bb2ccd9af35ffd8d7934a63e72a4a725a5fea36884007ec60e82f47e0e
|
|
||||||
EBUILD gitlab-ce-10.0.7.ebuild 13568 BLAKE2B 22543f4630349dc09c8b96cdcd810ae65aa0e7ee7bc2b1a5da91b5189b45d2657be461ac5e8896180b1e2952f0f9a7d2beccb6a6138b8a7bbcaf3eb1e930459d SHA512 ba702162d9fad73d46953649c9faf913069f2059fbd253d8019224c1645c56cb6c0ec69893be6238e42ee3d54bbcd9a22343eece1975e084d7ff73d4efbb79dd
|
|
||||||
EBUILD gitlab-ce-10.1.7.ebuild 13679 BLAKE2B 613508e3e215eab15a30f4cc4d84cecda8ca141370fcdf639a6a0677a05a6f39ca9303c9ce75a768b3144d40c9c380c93a8f0484ed2bfeee76dc99ca114df8a6 SHA512 6958f3f67b7d8729519175337b5e411b9d32fa3e7348105870d5f35c938e905cc60e7af23802b1b5835610c72e9a76ca50c229f5d862403ffd5065e82ee39d25
|
|
||||||
EBUILD gitlab-ce-10.2.8.ebuild 13681 BLAKE2B f1f231d159618631160d7b1e132f204ef081649a2a86c69dcbbf41a395fb64c66ebddbc8baceeb704458084a2bfb4f8e0f4c4587a547a575f44a3643729ba2fe SHA512 805d6a717b0dcdc6551f549722abb8322a51d6cee1eb807dabac1fe4b98ffd32fcf3667d1de7f845a08e9dfb72afa257c51c6382cbc48f5f23fe15b027724dde
|
|
||||||
EBUILD gitlab-ce-10.3.7.ebuild 14085 BLAKE2B d4b591faed66854f282766e03d316385063bef8035040fbfefbf60ec9d3b0ec380bf5a23d71f52816a65444796891f25edb093e30bcd7583d5f9928b79e8257d SHA512 311e256f675c6cbb8e374448858e0adcfecd6a5432c4384a5d9c302a3c82dcab0aab0eb9a79d90f8f770dba0d1d984f0b7e3d53ce1e3b2c4c915aaa2facdbdd7
|
|
||||||
EBUILD gitlab-ce-10.4.5.ebuild 13152 BLAKE2B 0c0876fbe988e285ef2597531cf6bead19628bb0ed501a1367380f36ee773529434df743d83267a95e1facc9b2f8c20824089b8b0615ae2c9f57246c70c121ae SHA512 7472484a4d1f6050de4e649a11fa00d01a93dcd6a03dd41519a6c9e7673b923bb6621c2515786c016d05adcef1b130d17b8a132a0aa9b1c60aea955610892c9d
|
|
||||||
EBUILD gitlab-ce-10.4.7.ebuild 13152 BLAKE2B 0c0876fbe988e285ef2597531cf6bead19628bb0ed501a1367380f36ee773529434df743d83267a95e1facc9b2f8c20824089b8b0615ae2c9f57246c70c121ae SHA512 7472484a4d1f6050de4e649a11fa00d01a93dcd6a03dd41519a6c9e7673b923bb6621c2515786c016d05adcef1b130d17b8a132a0aa9b1c60aea955610892c9d
|
|
||||||
EBUILD gitlab-ce-10.5.4.ebuild 13151 BLAKE2B 66923a61ffece1fcdb974b535ec40ef33f31c617a6070a485360df5c2a9e1b7aafee872968f88835057a73ebdc65d88834b037b0d3c8a008e65962107002f232 SHA512 f183a12556bd1725dee258c1cab48dae81d4b4b5a709c2500177baf948537875a488c826fbf779db76ef5692253ac7189d6d3f8e8b38082e821df7e68bb812ee
|
|
||||||
EBUILD gitlab-ce-9.5.10.ebuild 13526 BLAKE2B 3f5753dc7551b87d3072e91353b28bca2bacfa223046aeee28b97cd905d3097597d53b609e3de9050b75e704c8e58419e9d284e162323ee217621185d7f1e797 SHA512 e33e56c8e49bd2ef03dd9af508b186f7908b8502960cbdb95ca9166631b84d5357c4965c0919e432ee5de9b9eeb33f68773ac405c24430568f9abb0d8e7354a6
|
|
||||||
MISC ChangeLog 27700 BLAKE2B c3cf41574933251ea85c6a2cfa2d2e57b0e452b3e7910ee1955dd8f60987d37e6c3b36f90f2144277cff4697f138c1b6efaf7fe72336887d93db708b192eee76 SHA512 ac5abb3f90e4cfe14af777a7c6bb182b6215f044b280a1a9b1865014beb50ed0212acdc066c554590e1bdd6f92c261d23d827cc47e4c92807c1431d0b757502a
|
|
||||||
MISC metadata.xml 665 BLAKE2B da259061375fae81a312cd655c3c0344826a8af5598f10e05f8d15d65c5ce92aef3798bc40f6bb857c1c1d4bdfb343a47a4ebe9ad408b6b9f07759d6c1fa52e2 SHA512 64b8fbae373d0a057f705f64c1d097dbfab893bd585e1db65ccdb06cda9569211c9b63fa168ac8de9f6d512a17759ecd20b54d818d2790a6f4c99d0ca73fddc3
|
|
|
@ -1,20 +0,0 @@
|
||||||
diff --git a/config/environments/production.rb b/config/environments/production.rb
|
|
||||||
index a9d8ac4..256770a 100644
|
|
||||||
--- a/config/environments/production.rb
|
|
||||||
+++ b/config/environments/production.rb
|
|
||||||
@@ -69,11 +69,10 @@ Rails.application.configure do
|
|
||||||
config.active_support.deprecation = :notify
|
|
||||||
|
|
||||||
config.action_mailer.delivery_method = :sendmail
|
|
||||||
- # Defaults to:
|
|
||||||
- # # config.action_mailer.sendmail_settings = {
|
|
||||||
- # # location: '/usr/sbin/sendmail',
|
|
||||||
- # # arguments: '-i -t'
|
|
||||||
- # # }
|
|
||||||
+ config.action_mailer.sendmail_settings = {
|
|
||||||
+ location: '/usr/sbin/sendmail',
|
|
||||||
+ arguments: '-i'
|
|
||||||
+ }
|
|
||||||
config.action_mailer.perform_deliveries = true
|
|
||||||
config.action_mailer.raise_delivery_errors = true
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
diff --git a/config/mail_room.yml b/config/mail_room.yml
|
|
||||||
index 88d93d4..688d663 100644
|
|
||||||
--- a/config/mail_room.yml
|
|
||||||
+++ b/config/mail_room.yml
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
:mailboxes:
|
|
||||||
<%
|
|
||||||
- require_relative "../lib/gitlab/mail_room" unless defined?(Gitlab::MailRoom)
|
|
||||||
+ require_relative "/opt/gitlab/lib/gitlab/mail_room" unless defined?(Gitlab::MailRoom)
|
|
||||||
config = Gitlab::MailRoom.config
|
|
||||||
|
|
||||||
if Gitlab::MailRoom.enabled?
|
|
|
@ -1,118 +0,0 @@
|
||||||
diff --git a/config/database.yml.mysql b/config/database.yml.mysql
|
|
||||||
index 98c2abe..2896c50 100644
|
|
||||||
--- a/config/database.yml.mysql
|
|
||||||
+++ b/config/database.yml.mysql
|
|
||||||
@@ -3,58 +3,12 @@
|
|
||||||
#
|
|
||||||
production:
|
|
||||||
adapter: mysql2
|
|
||||||
- encoding: utf8
|
|
||||||
- collation: utf8_general_ci
|
|
||||||
- reconnect: false
|
|
||||||
- database: gitlabhq_production
|
|
||||||
- pool: 10
|
|
||||||
- username: git
|
|
||||||
- password: "secure password"
|
|
||||||
- host: localhost
|
|
||||||
- # socket: /tmp/mysql.sock
|
|
||||||
-
|
|
||||||
-#
|
|
||||||
-# Development specific
|
|
||||||
-#
|
|
||||||
-development:
|
|
||||||
- adapter: mysql2
|
|
||||||
- encoding: utf8
|
|
||||||
- collation: utf8_general_ci
|
|
||||||
- reconnect: false
|
|
||||||
- database: gitlabhq_development
|
|
||||||
- pool: 5
|
|
||||||
- username: root
|
|
||||||
- password: "secure password"
|
|
||||||
- host: localhost
|
|
||||||
- # socket: /tmp/mysql.sock
|
|
||||||
-
|
|
||||||
-#
|
|
||||||
-# Staging specific
|
|
||||||
-#
|
|
||||||
-staging:
|
|
||||||
- adapter: mysql2
|
|
||||||
- encoding: utf8
|
|
||||||
- collation: utf8_general_ci
|
|
||||||
+ encoding: utf8mb4
|
|
||||||
+ collation: utf8mb4_general_ci
|
|
||||||
reconnect: false
|
|
||||||
- database: gitlabhq_staging
|
|
||||||
+ database: gitlab
|
|
||||||
pool: 10
|
|
||||||
username: git
|
|
||||||
password: "secure password"
|
|
||||||
host: localhost
|
|
||||||
- # socket: /tmp/mysql.sock
|
|
||||||
-
|
|
||||||
-# Warning: The database defined as "test" will be erased and
|
|
||||||
-# re-generated from your development database when you run "rake".
|
|
||||||
-# Do not set this db to the same as development or production.
|
|
||||||
-test: &test
|
|
||||||
- adapter: mysql2
|
|
||||||
- encoding: utf8mb4
|
|
||||||
- collation: utf8mb4_general_ci
|
|
||||||
- reconnect: false
|
|
||||||
- database: gitlabhq_test
|
|
||||||
- pool: 5
|
|
||||||
- username: root
|
|
||||||
- password:
|
|
||||||
- host: localhost
|
|
||||||
- # socket: /tmp/mysql.sock
|
|
||||||
- prepared_statements: false
|
|
||||||
+ # socket: /run/mysqld/mysqld.sock
|
|
||||||
diff --git a/config/database.yml.postgresql b/config/database.yml.postgresql
|
|
||||||
index baded68..5669617 100644
|
|
||||||
--- a/config/database.yml.postgresql
|
|
||||||
+++ b/config/database.yml.postgresql
|
|
||||||
@@ -4,45 +4,8 @@
|
|
||||||
production:
|
|
||||||
adapter: postgresql
|
|
||||||
encoding: unicode
|
|
||||||
- database: gitlabhq_production
|
|
||||||
+ database: gitlab
|
|
||||||
pool: 10
|
|
||||||
username: git
|
|
||||||
password: "secure password"
|
|
||||||
host: localhost
|
|
||||||
-
|
|
||||||
-#
|
|
||||||
-# Development specific
|
|
||||||
-#
|
|
||||||
-development:
|
|
||||||
- adapter: postgresql
|
|
||||||
- encoding: unicode
|
|
||||||
- database: gitlabhq_development
|
|
||||||
- pool: 5
|
|
||||||
- username: postgres
|
|
||||||
- password: "secure password"
|
|
||||||
- host: localhost
|
|
||||||
-
|
|
||||||
-#
|
|
||||||
-# Staging specific
|
|
||||||
-#
|
|
||||||
-staging:
|
|
||||||
- adapter: postgresql
|
|
||||||
- encoding: unicode
|
|
||||||
- database: gitlabhq_staging
|
|
||||||
- pool: 10
|
|
||||||
- username: git
|
|
||||||
- password: "secure password"
|
|
||||||
- host: localhost
|
|
||||||
-
|
|
||||||
-# Warning: The database defined as "test" will be erased and
|
|
||||||
-# re-generated from your development database when you run "rake".
|
|
||||||
-# Do not set this db to the same as development or production.
|
|
||||||
-test: &test
|
|
||||||
- adapter: postgresql
|
|
||||||
- encoding: unicode
|
|
||||||
- database: gitlabhq_test
|
|
||||||
- pool: 5
|
|
||||||
- username: postgres
|
|
||||||
- password:
|
|
||||||
- host: localhost
|
|
||||||
- prepared_statements: false
|
|
|
@ -1,104 +0,0 @@
|
||||||
diff --git a/config/database.yml.mysql b/config/database.yml.mysql
|
|
||||||
index eb71d3f..a3b5ecc 100644
|
|
||||||
--- a/config/database.yml.mysql
|
|
||||||
+++ b/config/database.yml.mysql
|
|
||||||
@@ -3,43 +3,12 @@
|
|
||||||
#
|
|
||||||
production:
|
|
||||||
adapter: mysql2
|
|
||||||
- encoding: utf8
|
|
||||||
- collation: utf8_general_ci
|
|
||||||
+ encoding: utf8mb4
|
|
||||||
+ collation: utf8mb4_general_ci
|
|
||||||
reconnect: false
|
|
||||||
- database: gitlabhq_production
|
|
||||||
+ database: gitlab
|
|
||||||
pool: 10
|
|
||||||
username: git
|
|
||||||
password: "secure password"
|
|
||||||
# host: localhost
|
|
||||||
- # socket: /tmp/mysql.sock
|
|
||||||
-
|
|
||||||
-#
|
|
||||||
-# Development specific
|
|
||||||
-#
|
|
||||||
-development:
|
|
||||||
- adapter: mysql2
|
|
||||||
- encoding: utf8
|
|
||||||
- collation: utf8_general_ci
|
|
||||||
- reconnect: false
|
|
||||||
- database: gitlabhq_development
|
|
||||||
- pool: 5
|
|
||||||
- username: root
|
|
||||||
- password: "secure password"
|
|
||||||
- # host: localhost
|
|
||||||
- # socket: /tmp/mysql.sock
|
|
||||||
-
|
|
||||||
-# Warning: The database defined as "test" will be erased and
|
|
||||||
-# re-generated from your development database when you run "rake".
|
|
||||||
-# Do not set this db to the same as development or production.
|
|
||||||
-test: &test
|
|
||||||
- adapter: mysql2
|
|
||||||
- encoding: utf8mb4
|
|
||||||
- collation: utf8mb4_general_ci
|
|
||||||
- reconnect: false
|
|
||||||
- database: gitlabhq_test
|
|
||||||
- pool: 5
|
|
||||||
- username: root
|
|
||||||
- password:
|
|
||||||
- # host: localhost
|
|
||||||
- # socket: /tmp/mysql.sock
|
|
||||||
- prepared_statements: false
|
|
||||||
+ # socket: /run/mysqld/mysqld.sock
|
|
||||||
diff --git a/config/database.yml.postgresql b/config/database.yml.postgresql
|
|
||||||
index 4b30982..28f7993 100644
|
|
||||||
--- a/config/database.yml.postgresql
|
|
||||||
+++ b/config/database.yml.postgresql
|
|
||||||
@@ -4,46 +4,9 @@
|
|
||||||
production:
|
|
||||||
adapter: postgresql
|
|
||||||
encoding: unicode
|
|
||||||
- database: gitlabhq_production
|
|
||||||
+ database: gitlab
|
|
||||||
pool: 10
|
|
||||||
# username: git
|
|
||||||
# password:
|
|
||||||
# host: localhost
|
|
||||||
# port: 5432
|
|
||||||
-
|
|
||||||
-#
|
|
||||||
-# Development specific
|
|
||||||
-#
|
|
||||||
-development:
|
|
||||||
- adapter: postgresql
|
|
||||||
- encoding: unicode
|
|
||||||
- database: gitlabhq_development
|
|
||||||
- pool: 5
|
|
||||||
- username: postgres
|
|
||||||
- password:
|
|
||||||
- # host: localhost
|
|
||||||
-
|
|
||||||
-#
|
|
||||||
-# Staging specific
|
|
||||||
-#
|
|
||||||
-staging:
|
|
||||||
- adapter: postgresql
|
|
||||||
- encoding: unicode
|
|
||||||
- database: gitlabhq_staging
|
|
||||||
- pool: 5
|
|
||||||
- username: postgres
|
|
||||||
- password:
|
|
||||||
- # host: localhost
|
|
||||||
-
|
|
||||||
-# Warning: The database defined as "test" will be erased and
|
|
||||||
-# re-generated from your development database when you run "rake".
|
|
||||||
-# Do not set this db to the same as development or production.
|
|
||||||
-test: &test
|
|
||||||
- adapter: postgresql
|
|
||||||
- encoding: unicode
|
|
||||||
- database: gitlabhq_test
|
|
||||||
- pool: 5
|
|
||||||
- username: postgres
|
|
||||||
- password:
|
|
||||||
- # host: localhost
|
|
||||||
- prepared_statements: false
|
|
|
@ -1,27 +0,0 @@
|
||||||
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
|
|
||||||
index 63c5e9b..2ffa8ed 100644
|
|
||||||
--- a/lib/tasks/gitlab/check.rake
|
|
||||||
+++ b/lib/tasks/gitlab/check.rake
|
|
||||||
@@ -28,7 +28,7 @@ namespace :gitlab do
|
|
||||||
SystemCheck::App::UploadsPathPermissionCheck,
|
|
||||||
SystemCheck::App::UploadsPathTmpPermissionCheck,
|
|
||||||
SystemCheck::App::InitScriptExistsCheck,
|
|
||||||
- SystemCheck::App::InitScriptUpToDateCheck,
|
|
||||||
+ # SystemCheck::App::InitScriptUpToDateCheck, Gentoo uses a different init script
|
|
||||||
SystemCheck::App::ProjectsHaveNamespaceCheck,
|
|
||||||
SystemCheck::App::RedisVersionCheck,
|
|
||||||
SystemCheck::App::RubyVersionCheck,
|
|
||||||
@@ -272,13 +272,6 @@ namespace :gitlab do
|
|
||||||
puts "yes".color(:green)
|
|
||||||
else
|
|
||||||
puts "no".color(:red)
|
|
||||||
- try_fixing_it(
|
|
||||||
- sudo_gitlab("RAILS_ENV=production bin/background_jobs start")
|
|
||||||
- )
|
|
||||||
- for_more_information(
|
|
||||||
- see_installation_guide_section("Install Init Script"),
|
|
||||||
- "see log/sidekiq.log for possible errors"
|
|
||||||
- )
|
|
||||||
fix_and_rerun
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,80 +0,0 @@
|
||||||
diff --git a/Gemfile b/Gemfile
|
|
||||||
index 2f81332..8d1b7d6 100644
|
|
||||||
--- a/Gemfile
|
|
||||||
+++ b/Gemfile
|
|
||||||
@@ -349,7 +349,7 @@ gem 'health_check', '~> 2.6.0'
|
|
||||||
|
|
||||||
# System information
|
|
||||||
gem 'vmstat', '~> 2.3.0'
|
|
||||||
-gem 'sys-filesystem', '~> 1.1.6'
|
|
||||||
+gem 'sys-filesystem', '~> 1.1.6', group: :exclude
|
|
||||||
|
|
||||||
# Gitaly GRPC client
|
|
||||||
gem 'gitaly', '~> 0.2.1'
|
|
||||||
diff --git a/app/controllers/admin/system_info_controller.rb b/app/controllers/admin/system_info_controller.rb
|
|
||||||
index 9903972..41af5a2 100644
|
|
||||||
--- a/app/controllers/admin/system_info_controller.rb
|
|
||||||
+++ b/app/controllers/admin/system_info_controller.rb
|
|
||||||
@@ -1,3 +1,5 @@
|
|
||||||
+require 'open3'
|
|
||||||
+
|
|
||||||
class Admin::SystemInfoController < Admin::ApplicationController
|
|
||||||
EXCLUDED_MOUNT_OPTIONS = [
|
|
||||||
'nobrowse',
|
|
||||||
@@ -29,10 +31,14 @@ class Admin::SystemInfoController < Admin::ApplicationController
|
|
||||||
'vfat'
|
|
||||||
].freeze
|
|
||||||
|
|
||||||
+ MOUNT_REGEX = /(\S+) on (\S+) type (\S+) \(([^)]+)\)/
|
|
||||||
+
|
|
||||||
+ Mount = Struct.new('Mount', :name, :mount_point, :mount_type, :options)
|
|
||||||
+ FsStat = Struct.new('FsStats', :path, :bytes_total, :bytes_used)
|
|
||||||
+
|
|
||||||
def show
|
|
||||||
@cpus = Vmstat.cpu rescue nil
|
|
||||||
@memory = Vmstat.memory rescue nil
|
|
||||||
- mounts = Sys::Filesystem.mounts
|
|
||||||
|
|
||||||
@disks = []
|
|
||||||
mounts.each do |mount|
|
|
||||||
@@ -42,15 +48,38 @@ class Admin::SystemInfoController < Admin::ApplicationController
|
|
||||||
next if (EXCLUDED_MOUNT_TYPES & [mount.mount_type]).any?
|
|
||||||
|
|
||||||
begin
|
|
||||||
- disk = Sys::Filesystem.stat(mount.mount_point)
|
|
||||||
+ disk = fs_stat(mount.mount_point)
|
|
||||||
@disks.push({
|
|
||||||
bytes_total: disk.bytes_total,
|
|
||||||
bytes_used: disk.bytes_used,
|
|
||||||
disk_name: mount.name,
|
|
||||||
mount_path: disk.path
|
|
||||||
})
|
|
||||||
- rescue Sys::Filesystem::Error
|
|
||||||
+ rescue IOError
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
+
|
|
||||||
+ def mounts
|
|
||||||
+ stdout, stderr, status = Open3.capture3('mount')
|
|
||||||
+ fail IOError, stderr unless status.success?
|
|
||||||
+
|
|
||||||
+ stdout.lines
|
|
||||||
+ .map { |line| MOUNT_REGEX.match(line) }
|
|
||||||
+ .compact
|
|
||||||
+ .map { |match| Mount.new(*match.captures) }
|
|
||||||
+ end
|
|
||||||
+
|
|
||||||
+ def fs_stat(mount_point)
|
|
||||||
+ stdout, status = Open3.capture2('stat', '-c', '%s %b %a', '-f', mount_point)
|
|
||||||
+ fail IOError unless status.success?
|
|
||||||
+
|
|
||||||
+ block_size, blocks_total, blocks_free = stdout.split(' ').map(&:to_i)
|
|
||||||
+
|
|
||||||
+ bytes_total = blocks_total * block_size
|
|
||||||
+ bytes_free = blocks_free * block_size
|
|
||||||
+ bytes_used = bytes_total - bytes_free
|
|
||||||
+
|
|
||||||
+ FsStat.new(mount_point, bytes_total, bytes_used)
|
|
||||||
+ end
|
|
||||||
end
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/config/webpack.config.js b/config/webpack.config.js
|
|
||||||
index d1bf9c6..210c871 100644
|
|
||||||
--- a/config/webpack.config.js
|
|
||||||
+++ b/config/webpack.config.js
|
|
||||||
@@ -6,7 +6,7 @@ var webpack = require('webpack');
|
|
||||||
var StatsPlugin = require('stats-webpack-plugin');
|
|
||||||
var CompressionPlugin = require('compression-webpack-plugin');
|
|
||||||
|
|
||||||
-var ROOT_PATH = path.resolve(__dirname, '..');
|
|
||||||
+var ROOT_PATH = '/opt/gitlab';
|
|
||||||
var IS_PRODUCTION = process.env.NODE_ENV === 'production';
|
|
||||||
var IS_DEV_SERVER = process.argv[1].indexOf('webpack-dev-server') !== -1;
|
|
||||||
var DEV_SERVER_PORT = parseInt(process.env.DEV_SERVER_PORT, 10) || 3808;
|
|
|
@ -1,988 +0,0 @@
|
||||||
diff --git a/package.json b/package.json
|
|
||||||
index feae6ca..dc0d822 100644
|
|
||||||
--- a/package.json
|
|
||||||
+++ b/package.json
|
|
||||||
@@ -71,11 +71,11 @@
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"babel-plugin-istanbul": "^4.0.0",
|
|
||||||
- "eslint": "^3.10.1",
|
|
||||||
- "eslint-config-airbnb-base": "^10.0.1",
|
|
||||||
+ "eslint": "^4.0.0",
|
|
||||||
+ "eslint-config-airbnb-base": "^12.0.0",
|
|
||||||
"eslint-import-resolver-webpack": "^0.8.3",
|
|
||||||
"eslint-plugin-filenames": "^1.1.0",
|
|
||||||
- "eslint-plugin-import": "^2.2.0",
|
|
||||||
+ "eslint-plugin-import": "^2.6.0",
|
|
||||||
"eslint-plugin-jasmine": "^2.1.0",
|
|
||||||
"eslint-plugin-promise": "^3.5.0",
|
|
||||||
"istanbul": "^0.4.5",
|
|
||||||
diff --git a/yarn.lock b/yarn.lock
|
|
||||||
index de4a9ac..411a469 100644
|
|
||||||
--- a/yarn.lock
|
|
||||||
+++ b/yarn.lock
|
|
||||||
@@ -33,28 +33,25 @@ acorn@^4.0.3:
|
|
||||||
version "4.0.13"
|
|
||||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787"
|
|
||||||
|
|
||||||
-acorn@^5.0.0, acorn@^5.0.3, acorn@^5.1.1:
|
|
||||||
+acorn@^5.0.0, acorn@^5.0.3:
|
|
||||||
version "5.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.1.1.tgz#53fe161111f912ab999ee887a90a0bc52822fd75"
|
|
||||||
|
|
||||||
+acorn@^5.4.0:
|
|
||||||
+ version "5.4.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.4.1.tgz#fdc58d9d17f4a4e98d102ded826a9b9759125102"
|
|
||||||
+
|
|
||||||
after@0.8.2:
|
|
||||||
version "0.8.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f"
|
|
||||||
|
|
||||||
-ajv-keywords@^1.0.0:
|
|
||||||
- version "1.5.1"
|
|
||||||
- resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c"
|
|
||||||
-
|
|
||||||
ajv-keywords@^2.0.0:
|
|
||||||
version "2.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.0.tgz#a296e17f7bfae7c1ce4f7e0de53d29cb32162df0"
|
|
||||||
|
|
||||||
-ajv@^4.7.0:
|
|
||||||
- version "4.11.2"
|
|
||||||
- resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.2.tgz#f166c3c11cbc6cb9dcc102a5bcfe5b72c95287e6"
|
|
||||||
- dependencies:
|
|
||||||
- co "^4.6.0"
|
|
||||||
- json-stable-stringify "^1.0.1"
|
|
||||||
+ajv-keywords@^2.1.0:
|
|
||||||
+ version "2.1.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762"
|
|
||||||
|
|
||||||
ajv@^4.9.1:
|
|
||||||
version "4.11.8"
|
|
||||||
@@ -72,6 +69,15 @@ ajv@^5.1.5:
|
|
||||||
json-schema-traverse "^0.3.0"
|
|
||||||
json-stable-stringify "^1.0.1"
|
|
||||||
|
|
||||||
+ajv@^5.2.3, ajv@^5.3.0:
|
|
||||||
+ version "5.5.2"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965"
|
|
||||||
+ dependencies:
|
|
||||||
+ co "^4.6.0"
|
|
||||||
+ fast-deep-equal "^1.0.0"
|
|
||||||
+ fast-json-stable-stringify "^2.0.0"
|
|
||||||
+ json-schema-traverse "^0.3.0"
|
|
||||||
+
|
|
||||||
align-text@^0.1.1, align-text@^0.1.3:
|
|
||||||
version "0.1.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117"
|
|
||||||
@@ -88,9 +94,9 @@ amdefine@>=0.0.4:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
|
|
||||||
|
|
||||||
-ansi-escapes@^1.1.0:
|
|
||||||
- version "1.4.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e"
|
|
||||||
+ansi-escapes@^3.0.0:
|
|
||||||
+ version "3.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.0.0.tgz#ec3e8b4e9f8064fc02c3ac9b65f1c275bda8ef92"
|
|
||||||
|
|
||||||
ansi-html@0.0.5:
|
|
||||||
version "0.0.5"
|
|
||||||
@@ -104,10 +110,20 @@ ansi-regex@^2.0.0:
|
|
||||||
version "2.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
|
|
||||||
|
|
||||||
+ansi-regex@^3.0.0:
|
|
||||||
+ version "3.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998"
|
|
||||||
+
|
|
||||||
ansi-styles@^2.2.1:
|
|
||||||
version "2.2.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
|
|
||||||
|
|
||||||
+ansi-styles@^3.1.0:
|
|
||||||
+ version "3.2.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88"
|
|
||||||
+ dependencies:
|
|
||||||
+ color-convert "^1.9.0"
|
|
||||||
+
|
|
||||||
anymatch@^1.3.0:
|
|
||||||
version "1.3.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a"
|
|
||||||
@@ -278,14 +294,6 @@ babel-code-frame@^6.11.0, babel-code-frame@^6.22.0:
|
|
||||||
esutils "^2.0.2"
|
|
||||||
js-tokens "^3.0.0"
|
|
||||||
|
|
||||||
-babel-code-frame@^6.16.0:
|
|
||||||
- version "6.26.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
|
|
||||||
- dependencies:
|
|
||||||
- chalk "^1.1.3"
|
|
||||||
- esutils "^2.0.2"
|
|
||||||
- js-tokens "^3.0.2"
|
|
||||||
-
|
|
||||||
babel-core@^6.22.1, babel-core@^6.23.0:
|
|
||||||
version "6.23.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.23.1.tgz#c143cb621bb2f621710c220c5d579d15b8a442df"
|
|
||||||
@@ -990,7 +998,7 @@ brace-expansion@^1.0.0:
|
|
||||||
balanced-match "^0.4.1"
|
|
||||||
concat-map "0.0.1"
|
|
||||||
|
|
||||||
-brace-expansion@^1.1.8:
|
|
||||||
+brace-expansion@^1.1.7, brace-expansion@^1.1.8:
|
|
||||||
version "1.1.8"
|
|
||||||
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292"
|
|
||||||
dependencies:
|
|
||||||
@@ -1170,7 +1178,7 @@ center-align@^0.1.1:
|
|
||||||
align-text "^0.1.3"
|
|
||||||
lazy-cache "^1.0.3"
|
|
||||||
|
|
||||||
-chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
|
|
||||||
+chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.3:
|
|
||||||
version "1.1.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
|
|
||||||
dependencies:
|
|
||||||
@@ -1180,6 +1188,18 @@ chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
|
|
||||||
strip-ansi "^3.0.0"
|
|
||||||
supports-color "^2.0.0"
|
|
||||||
|
|
||||||
+chalk@^2.0.0, chalk@^2.1.0:
|
|
||||||
+ version "2.3.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.0.tgz#b5ea48efc9c1793dccc9b4767c93914d3f2d52ba"
|
|
||||||
+ dependencies:
|
|
||||||
+ ansi-styles "^3.1.0"
|
|
||||||
+ escape-string-regexp "^1.0.5"
|
|
||||||
+ supports-color "^4.0.0"
|
|
||||||
+
|
|
||||||
+chardet@^0.4.0:
|
|
||||||
+ version "0.4.2"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2"
|
|
||||||
+
|
|
||||||
chokidar@^1.4.1, chokidar@^1.4.3, chokidar@^1.6.0, chokidar@^1.7.0:
|
|
||||||
version "1.7.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468"
|
|
||||||
@@ -1211,11 +1231,11 @@ clap@^1.0.9:
|
|
||||||
dependencies:
|
|
||||||
chalk "^1.1.3"
|
|
||||||
|
|
||||||
-cli-cursor@^1.0.1:
|
|
||||||
- version "1.0.2"
|
|
||||||
- resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987"
|
|
||||||
+cli-cursor@^2.1.0:
|
|
||||||
+ version "2.1.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5"
|
|
||||||
dependencies:
|
|
||||||
- restore-cursor "^1.0.1"
|
|
||||||
+ restore-cursor "^2.0.0"
|
|
||||||
|
|
||||||
cli-width@^2.0.0:
|
|
||||||
version "2.1.0"
|
|
||||||
@@ -1269,6 +1289,12 @@ color-convert@^1.3.0:
|
|
||||||
dependencies:
|
|
||||||
color-name "^1.1.1"
|
|
||||||
|
|
||||||
+color-convert@^1.9.0:
|
|
||||||
+ version "1.9.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed"
|
|
||||||
+ dependencies:
|
|
||||||
+ color-name "^1.1.1"
|
|
||||||
+
|
|
||||||
color-name@^1.0.0, color-name@^1.1.1:
|
|
||||||
version "1.1.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.2.tgz#5c8ab72b64bd2215d617ae9559ebb148475cf98d"
|
|
||||||
@@ -1366,7 +1392,7 @@ concat-map@0.0.1:
|
|
||||||
version "0.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
|
||||||
|
|
||||||
-concat-stream@^1.5.2:
|
|
||||||
+concat-stream@^1.6.0:
|
|
||||||
version "1.6.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7"
|
|
||||||
dependencies:
|
|
||||||
@@ -1520,7 +1546,7 @@ cropper@^2.3.0:
|
|
||||||
dependencies:
|
|
||||||
jquery ">= 1.9.1"
|
|
||||||
|
|
||||||
-cross-spawn@^5.0.1:
|
|
||||||
+cross-spawn@^5.0.1, cross-spawn@^5.1.0:
|
|
||||||
version "5.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
|
|
||||||
dependencies:
|
|
||||||
@@ -1698,6 +1724,18 @@ debug@2.6.8, debug@^2.1.0, debug@^2.1.1, debug@^2.2.0, debug@^2.4.5, debug@^2.6.
|
|
||||||
dependencies:
|
|
||||||
ms "2.0.0"
|
|
||||||
|
|
||||||
+debug@^2.6.9:
|
|
||||||
+ version "2.6.9"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
|
||||||
+ dependencies:
|
|
||||||
+ ms "2.0.0"
|
|
||||||
+
|
|
||||||
+debug@^3.1.0:
|
|
||||||
+ version "3.1.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
|
|
||||||
+ dependencies:
|
|
||||||
+ ms "2.0.0"
|
|
||||||
+
|
|
||||||
decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2:
|
|
||||||
version "1.2.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
|
|
||||||
@@ -1834,12 +1872,11 @@ doctrine@1.5.0:
|
|
||||||
esutils "^2.0.2"
|
|
||||||
isarray "^1.0.0"
|
|
||||||
|
|
||||||
-doctrine@^2.0.0:
|
|
||||||
- version "2.0.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.0.0.tgz#c73d8d2909d22291e1a007a395804da8b665fe63"
|
|
||||||
+doctrine@^2.1.0:
|
|
||||||
+ version "2.1.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"
|
|
||||||
dependencies:
|
|
||||||
esutils "^2.0.2"
|
|
||||||
- isarray "^1.0.0"
|
|
||||||
|
|
||||||
document-register-element@^1.3.0:
|
|
||||||
version "1.3.0"
|
|
||||||
@@ -2125,17 +2162,18 @@ escope@^3.6.0:
|
|
||||||
esrecurse "^4.1.0"
|
|
||||||
estraverse "^4.1.1"
|
|
||||||
|
|
||||||
-eslint-config-airbnb-base@^10.0.1:
|
|
||||||
- version "10.0.1"
|
|
||||||
- resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-10.0.1.tgz#f17d4e52992c1d45d1b7713efbcd5ecd0e7e0506"
|
|
||||||
+eslint-config-airbnb-base@^12.0.0:
|
|
||||||
+ version "12.1.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-12.1.0.tgz#386441e54a12ccd957b0a92564a4bafebd747944"
|
|
||||||
+ dependencies:
|
|
||||||
+ eslint-restricted-globals "^0.1.1"
|
|
||||||
|
|
||||||
-eslint-import-resolver-node@^0.2.0:
|
|
||||||
- version "0.2.3"
|
|
||||||
- resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz#5add8106e8c928db2cba232bcd9efa846e3da16c"
|
|
||||||
+eslint-import-resolver-node@^0.3.1:
|
|
||||||
+ version "0.3.2"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a"
|
|
||||||
dependencies:
|
|
||||||
- debug "^2.2.0"
|
|
||||||
- object-assign "^4.0.1"
|
|
||||||
- resolve "^1.1.6"
|
|
||||||
+ debug "^2.6.9"
|
|
||||||
+ resolve "^1.5.0"
|
|
||||||
|
|
||||||
eslint-import-resolver-webpack@^0.8.3:
|
|
||||||
version "0.8.3"
|
|
||||||
@@ -2153,11 +2191,11 @@ eslint-import-resolver-webpack@^0.8.3:
|
|
||||||
resolve "^1.2.0"
|
|
||||||
semver "^5.3.0"
|
|
||||||
|
|
||||||
-eslint-module-utils@^2.0.0:
|
|
||||||
- version "2.0.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.0.0.tgz#a6f8c21d901358759cdc35dbac1982ae1ee58bce"
|
|
||||||
+eslint-module-utils@^2.1.1:
|
|
||||||
+ version "2.1.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.1.1.tgz#abaec824177613b8a95b299639e1b6facf473449"
|
|
||||||
dependencies:
|
|
||||||
- debug "2.2.0"
|
|
||||||
+ debug "^2.6.8"
|
|
||||||
pkg-dir "^1.0.0"
|
|
||||||
|
|
||||||
eslint-plugin-filenames@^1.1.0:
|
|
||||||
@@ -2174,20 +2212,20 @@ eslint-plugin-html@^2.0.1:
|
|
||||||
dependencies:
|
|
||||||
htmlparser2 "^3.8.2"
|
|
||||||
|
|
||||||
-eslint-plugin-import@^2.2.0:
|
|
||||||
- version "2.2.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.2.0.tgz#72ba306fad305d67c4816348a4699a4229ac8b4e"
|
|
||||||
+eslint-plugin-import@^2.6.0:
|
|
||||||
+ version "2.8.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.8.0.tgz#fa1b6ef31fcb3c501c09859c1b86f1fc5b986894"
|
|
||||||
dependencies:
|
|
||||||
builtin-modules "^1.1.1"
|
|
||||||
contains-path "^0.1.0"
|
|
||||||
- debug "^2.2.0"
|
|
||||||
+ debug "^2.6.8"
|
|
||||||
doctrine "1.5.0"
|
|
||||||
- eslint-import-resolver-node "^0.2.0"
|
|
||||||
- eslint-module-utils "^2.0.0"
|
|
||||||
+ eslint-import-resolver-node "^0.3.1"
|
|
||||||
+ eslint-module-utils "^2.1.1"
|
|
||||||
has "^1.0.1"
|
|
||||||
lodash.cond "^4.3.0"
|
|
||||||
minimatch "^3.0.3"
|
|
||||||
- pkg-up "^1.0.0"
|
|
||||||
+ read-pkg-up "^2.0.0"
|
|
||||||
|
|
||||||
eslint-plugin-jasmine@^2.1.0:
|
|
||||||
version "2.2.0"
|
|
||||||
@@ -2197,51 +2235,68 @@ eslint-plugin-promise@^3.5.0:
|
|
||||||
version "3.5.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.5.0.tgz#78fbb6ffe047201627569e85a6c5373af2a68fca"
|
|
||||||
|
|
||||||
-eslint@^3.10.1:
|
|
||||||
- version "3.19.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.19.0.tgz#c8fc6201c7f40dd08941b87c085767386a679acc"
|
|
||||||
+eslint-restricted-globals@^0.1.1:
|
|
||||||
+ version "0.1.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/eslint-restricted-globals/-/eslint-restricted-globals-0.1.1.tgz#35f0d5cbc64c2e3ed62e93b4b1a7af05ba7ed4d7"
|
|
||||||
+
|
|
||||||
+eslint-scope@^3.7.1:
|
|
||||||
+ version "3.7.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8"
|
|
||||||
dependencies:
|
|
||||||
- babel-code-frame "^6.16.0"
|
|
||||||
- chalk "^1.1.3"
|
|
||||||
- concat-stream "^1.5.2"
|
|
||||||
- debug "^2.1.1"
|
|
||||||
- doctrine "^2.0.0"
|
|
||||||
- escope "^3.6.0"
|
|
||||||
- espree "^3.4.0"
|
|
||||||
+ esrecurse "^4.1.0"
|
|
||||||
+ estraverse "^4.1.1"
|
|
||||||
+
|
|
||||||
+eslint-visitor-keys@^1.0.0:
|
|
||||||
+ version "1.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
|
|
||||||
+
|
|
||||||
+eslint@^4.0.0:
|
|
||||||
+ version "4.17.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.17.0.tgz#dc24bb51ede48df629be7031c71d9dc0ee4f3ddf"
|
|
||||||
+ dependencies:
|
|
||||||
+ ajv "^5.3.0"
|
|
||||||
+ babel-code-frame "^6.22.0"
|
|
||||||
+ chalk "^2.1.0"
|
|
||||||
+ concat-stream "^1.6.0"
|
|
||||||
+ cross-spawn "^5.1.0"
|
|
||||||
+ debug "^3.1.0"
|
|
||||||
+ doctrine "^2.1.0"
|
|
||||||
+ eslint-scope "^3.7.1"
|
|
||||||
+ eslint-visitor-keys "^1.0.0"
|
|
||||||
+ espree "^3.5.2"
|
|
||||||
esquery "^1.0.0"
|
|
||||||
- estraverse "^4.2.0"
|
|
||||||
esutils "^2.0.2"
|
|
||||||
file-entry-cache "^2.0.0"
|
|
||||||
- glob "^7.0.3"
|
|
||||||
- globals "^9.14.0"
|
|
||||||
- ignore "^3.2.0"
|
|
||||||
+ functional-red-black-tree "^1.0.1"
|
|
||||||
+ glob "^7.1.2"
|
|
||||||
+ globals "^11.0.1"
|
|
||||||
+ ignore "^3.3.3"
|
|
||||||
imurmurhash "^0.1.4"
|
|
||||||
- inquirer "^0.12.0"
|
|
||||||
- is-my-json-valid "^2.10.0"
|
|
||||||
+ inquirer "^3.0.6"
|
|
||||||
is-resolvable "^1.0.0"
|
|
||||||
- js-yaml "^3.5.1"
|
|
||||||
- json-stable-stringify "^1.0.0"
|
|
||||||
+ js-yaml "^3.9.1"
|
|
||||||
+ json-stable-stringify-without-jsonify "^1.0.1"
|
|
||||||
levn "^0.3.0"
|
|
||||||
- lodash "^4.0.0"
|
|
||||||
- mkdirp "^0.5.0"
|
|
||||||
+ lodash "^4.17.4"
|
|
||||||
+ minimatch "^3.0.2"
|
|
||||||
+ mkdirp "^0.5.1"
|
|
||||||
natural-compare "^1.4.0"
|
|
||||||
optionator "^0.8.2"
|
|
||||||
- path-is-inside "^1.0.1"
|
|
||||||
- pluralize "^1.2.1"
|
|
||||||
- progress "^1.1.8"
|
|
||||||
- require-uncached "^1.0.2"
|
|
||||||
- shelljs "^0.7.5"
|
|
||||||
- strip-bom "^3.0.0"
|
|
||||||
+ path-is-inside "^1.0.2"
|
|
||||||
+ pluralize "^7.0.0"
|
|
||||||
+ progress "^2.0.0"
|
|
||||||
+ require-uncached "^1.0.3"
|
|
||||||
+ semver "^5.3.0"
|
|
||||||
+ strip-ansi "^4.0.0"
|
|
||||||
strip-json-comments "~2.0.1"
|
|
||||||
- table "^3.7.8"
|
|
||||||
+ table "^4.0.1"
|
|
||||||
text-table "~0.2.0"
|
|
||||||
- user-home "^2.0.0"
|
|
||||||
|
|
||||||
-espree@^3.4.0:
|
|
||||||
- version "3.5.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.0.tgz#98358625bdd055861ea27e2867ea729faf463d8d"
|
|
||||||
+espree@^3.5.2:
|
|
||||||
+ version "3.5.3"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.3.tgz#931e0af64e7fbbed26b050a29daad1fc64799fa6"
|
|
||||||
dependencies:
|
|
||||||
- acorn "^5.1.1"
|
|
||||||
+ acorn "^5.4.0"
|
|
||||||
acorn-jsx "^3.0.0"
|
|
||||||
|
|
||||||
esprima@2.7.x, esprima@^2.6.0, esprima@^2.7.1:
|
|
||||||
@@ -2273,7 +2328,7 @@ estraverse@^1.9.1:
|
|
||||||
version "1.9.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44"
|
|
||||||
|
|
||||||
-estraverse@^4.0.0, estraverse@^4.1.1, estraverse@^4.2.0:
|
|
||||||
+estraverse@^4.0.0, estraverse@^4.1.1:
|
|
||||||
version "4.2.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13"
|
|
||||||
|
|
||||||
@@ -2344,10 +2399,6 @@ execa@^0.7.0:
|
|
||||||
signal-exit "^3.0.0"
|
|
||||||
strip-eof "^1.0.0"
|
|
||||||
|
|
||||||
-exit-hook@^1.0.0:
|
|
||||||
- version "1.1.1"
|
|
||||||
- resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8"
|
|
||||||
-
|
|
||||||
expand-braces@^0.1.1:
|
|
||||||
version "0.1.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/expand-braces/-/expand-braces-0.1.2.tgz#488b1d1d2451cb3d3a6b192cfc030f44c5855fea"
|
|
||||||
@@ -2419,6 +2470,14 @@ extend@^3.0.0, extend@~3.0.0:
|
|
||||||
version "3.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444"
|
|
||||||
|
|
||||||
+external-editor@^2.0.4:
|
|
||||||
+ version "2.1.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.1.0.tgz#3d026a21b7f95b5726387d4200ac160d372c3b48"
|
|
||||||
+ dependencies:
|
|
||||||
+ chardet "^0.4.0"
|
|
||||||
+ iconv-lite "^0.4.17"
|
|
||||||
+ tmp "^0.0.33"
|
|
||||||
+
|
|
||||||
extglob@^0.3.1:
|
|
||||||
version "0.3.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1"
|
|
||||||
@@ -2433,6 +2492,14 @@ fast-deep-equal@^0.1.0:
|
|
||||||
version "0.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-0.1.0.tgz#5c6f4599aba6b333ee3342e2ed978672f1001f8d"
|
|
||||||
|
|
||||||
+fast-deep-equal@^1.0.0:
|
|
||||||
+ version "1.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff"
|
|
||||||
+
|
|
||||||
+fast-json-stable-stringify@^2.0.0:
|
|
||||||
+ version "2.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
|
|
||||||
+
|
|
||||||
fast-levenshtein@~2.0.4:
|
|
||||||
version "2.0.6"
|
|
||||||
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
|
|
||||||
@@ -2459,12 +2526,11 @@ faye-websocket@~0.7.3:
|
|
||||||
dependencies:
|
|
||||||
websocket-driver ">=0.3.6"
|
|
||||||
|
|
||||||
-figures@^1.3.5:
|
|
||||||
- version "1.7.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e"
|
|
||||||
+figures@^2.0.0:
|
|
||||||
+ version "2.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962"
|
|
||||||
dependencies:
|
|
||||||
escape-string-regexp "^1.0.5"
|
|
||||||
- object-assign "^4.1.0"
|
|
||||||
|
|
||||||
file-entry-cache@^2.0.0:
|
|
||||||
version "2.0.0"
|
|
||||||
@@ -2646,6 +2712,10 @@ function-bind@^1.0.2:
|
|
||||||
version "1.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771"
|
|
||||||
|
|
||||||
+functional-red-black-tree@^1.0.1:
|
|
||||||
+ version "1.0.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
|
|
||||||
+
|
|
||||||
gauge@~2.7.3:
|
|
||||||
version "2.7.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
|
|
||||||
@@ -2659,16 +2729,6 @@ gauge@~2.7.3:
|
|
||||||
strip-ansi "^3.0.1"
|
|
||||||
wide-align "^1.1.0"
|
|
||||||
|
|
||||||
-generate-function@^2.0.0:
|
|
||||||
- version "2.0.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74"
|
|
||||||
-
|
|
||||||
-generate-object-property@^1.1.0:
|
|
||||||
- version "1.2.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0"
|
|
||||||
- dependencies:
|
|
||||||
- is-property "^1.0.0"
|
|
||||||
-
|
|
||||||
get-caller-file@^1.0.1:
|
|
||||||
version "1.0.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5"
|
|
||||||
@@ -2720,36 +2780,36 @@ glob@^6.0.4:
|
|
||||||
once "^1.3.0"
|
|
||||||
path-is-absolute "^1.0.0"
|
|
||||||
|
|
||||||
-glob@^7.0.0, glob@^7.1.1:
|
|
||||||
- version "7.1.2"
|
|
||||||
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
|
|
||||||
+glob@^7.0.3, glob@^7.0.5:
|
|
||||||
+ version "7.1.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
|
|
||||||
dependencies:
|
|
||||||
fs.realpath "^1.0.0"
|
|
||||||
inflight "^1.0.4"
|
|
||||||
inherits "2"
|
|
||||||
- minimatch "^3.0.4"
|
|
||||||
+ minimatch "^3.0.2"
|
|
||||||
once "^1.3.0"
|
|
||||||
path-is-absolute "^1.0.0"
|
|
||||||
|
|
||||||
-glob@^7.0.3, glob@^7.0.5:
|
|
||||||
- version "7.1.1"
|
|
||||||
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
|
|
||||||
+glob@^7.1.1, glob@^7.1.2:
|
|
||||||
+ version "7.1.2"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
|
|
||||||
dependencies:
|
|
||||||
fs.realpath "^1.0.0"
|
|
||||||
inflight "^1.0.4"
|
|
||||||
inherits "2"
|
|
||||||
- minimatch "^3.0.2"
|
|
||||||
+ minimatch "^3.0.4"
|
|
||||||
once "^1.3.0"
|
|
||||||
path-is-absolute "^1.0.0"
|
|
||||||
|
|
||||||
+globals@^11.0.1:
|
|
||||||
+ version "11.3.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/globals/-/globals-11.3.0.tgz#e04fdb7b9796d8adac9c8f64c14837b2313378b0"
|
|
||||||
+
|
|
||||||
globals@^9.0.0:
|
|
||||||
version "9.14.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/globals/-/globals-9.14.0.tgz#8859936af0038741263053b39d0e76ca241e4034"
|
|
||||||
|
|
||||||
-globals@^9.14.0:
|
|
||||||
- version "9.18.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a"
|
|
||||||
-
|
|
||||||
globby@^5.0.0:
|
|
||||||
version "5.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d"
|
|
||||||
@@ -3018,6 +3078,10 @@ iconv-lite@0.4.15:
|
|
||||||
version "0.4.15"
|
|
||||||
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.15.tgz#fe265a218ac6a57cfe854927e9d04c19825eddeb"
|
|
||||||
|
|
||||||
+iconv-lite@^0.4.17:
|
|
||||||
+ version "0.4.19"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
|
|
||||||
+
|
|
||||||
icss-replace-symbols@^1.0.2:
|
|
||||||
version "1.0.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz#cb0b6054eb3af6edc9ab1d62d01933e2d4c8bfa5"
|
|
||||||
@@ -3030,9 +3094,9 @@ ignore-by-default@^1.0.0:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09"
|
|
||||||
|
|
||||||
-ignore@^3.2.0:
|
|
||||||
- version "3.3.3"
|
|
||||||
- resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.3.tgz#432352e57accd87ab3110e82d3fea0e47812156d"
|
|
||||||
+ignore@^3.3.3:
|
|
||||||
+ version "3.3.7"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021"
|
|
||||||
|
|
||||||
immediate@~3.0.5:
|
|
||||||
version "3.0.6"
|
|
||||||
@@ -3086,22 +3150,23 @@ ini@^1.3.4, ini@~1.3.0:
|
|
||||||
version "1.3.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e"
|
|
||||||
|
|
||||||
-inquirer@^0.12.0:
|
|
||||||
- version "0.12.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.12.0.tgz#1ef2bfd63504df0bc75785fff8c2c41df12f077e"
|
|
||||||
+inquirer@^3.0.6:
|
|
||||||
+ version "3.3.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9"
|
|
||||||
dependencies:
|
|
||||||
- ansi-escapes "^1.1.0"
|
|
||||||
- ansi-regex "^2.0.0"
|
|
||||||
- chalk "^1.0.0"
|
|
||||||
- cli-cursor "^1.0.1"
|
|
||||||
+ ansi-escapes "^3.0.0"
|
|
||||||
+ chalk "^2.0.0"
|
|
||||||
+ cli-cursor "^2.1.0"
|
|
||||||
cli-width "^2.0.0"
|
|
||||||
- figures "^1.3.5"
|
|
||||||
+ external-editor "^2.0.4"
|
|
||||||
+ figures "^2.0.0"
|
|
||||||
lodash "^4.3.0"
|
|
||||||
- readline2 "^1.0.1"
|
|
||||||
- run-async "^0.1.0"
|
|
||||||
- rx-lite "^3.1.2"
|
|
||||||
- string-width "^1.0.1"
|
|
||||||
- strip-ansi "^3.0.0"
|
|
||||||
+ mute-stream "0.0.7"
|
|
||||||
+ run-async "^2.2.0"
|
|
||||||
+ rx-lite "^4.0.8"
|
|
||||||
+ rx-lite-aggregates "^4.0.8"
|
|
||||||
+ string-width "^2.1.0"
|
|
||||||
+ strip-ansi "^4.0.0"
|
|
||||||
through "^2.3.6"
|
|
||||||
|
|
||||||
internal-ip@^1.2.0:
|
|
||||||
@@ -3213,15 +3278,6 @@ is-glob@^3.1.0:
|
|
||||||
dependencies:
|
|
||||||
is-extglob "^2.1.0"
|
|
||||||
|
|
||||||
-is-my-json-valid@^2.10.0:
|
|
||||||
- version "2.16.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.16.0.tgz#f079dd9bfdae65ee2038aae8acbc86ab109e3693"
|
|
||||||
- dependencies:
|
|
||||||
- generate-function "^2.0.0"
|
|
||||||
- generate-object-property "^1.1.0"
|
|
||||||
- jsonpointer "^4.0.0"
|
|
||||||
- xtend "^4.0.0"
|
|
||||||
-
|
|
||||||
is-npm@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4"
|
|
||||||
@@ -3268,9 +3324,9 @@ is-primitive@^2.0.0:
|
|
||||||
version "2.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
|
|
||||||
|
|
||||||
-is-property@^1.0.0:
|
|
||||||
- version "1.0.2"
|
|
||||||
- resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84"
|
|
||||||
+is-promise@^2.1.0:
|
|
||||||
+ version "2.1.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa"
|
|
||||||
|
|
||||||
is-redirect@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
@@ -3483,10 +3539,6 @@ js-tokens@^3.0.0:
|
|
||||||
version "3.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7"
|
|
||||||
|
|
||||||
-js-tokens@^3.0.2:
|
|
||||||
- version "3.0.2"
|
|
||||||
- resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
|
|
||||||
-
|
|
||||||
js-yaml@3.x, js-yaml@^3.4.3, js-yaml@^3.7.0:
|
|
||||||
version "3.8.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.1.tgz#782ba50200be7b9e5a8537001b7804db3ad02628"
|
|
||||||
@@ -3494,9 +3546,9 @@ js-yaml@3.x, js-yaml@^3.4.3, js-yaml@^3.7.0:
|
|
||||||
argparse "^1.0.7"
|
|
||||||
esprima "^3.1.1"
|
|
||||||
|
|
||||||
-js-yaml@^3.5.1:
|
|
||||||
- version "3.9.1"
|
|
||||||
- resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.9.1.tgz#08775cebdfdd359209f0d2acd383c8f86a6904a0"
|
|
||||||
+js-yaml@^3.9.1:
|
|
||||||
+ version "3.10.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"
|
|
||||||
dependencies:
|
|
||||||
argparse "^1.0.7"
|
|
||||||
esprima "^4.0.0"
|
|
||||||
@@ -3532,7 +3584,11 @@ json-schema@0.2.3:
|
|
||||||
version "0.2.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
|
|
||||||
|
|
||||||
-json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1:
|
|
||||||
+json-stable-stringify-without-jsonify@^1.0.1:
|
|
||||||
+ version "1.0.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
|
|
||||||
+
|
|
||||||
+json-stable-stringify@^1.0.1:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af"
|
|
||||||
dependencies:
|
|
||||||
@@ -3560,10 +3616,6 @@ jsonify@~0.0.0:
|
|
||||||
version "0.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
|
|
||||||
|
|
||||||
-jsonpointer@^4.0.0:
|
|
||||||
- version "4.0.1"
|
|
||||||
- resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9"
|
|
||||||
-
|
|
||||||
jsprim@^1.2.2:
|
|
||||||
version "1.4.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
|
|
||||||
@@ -3887,7 +3939,7 @@ lodash@^3.8.0:
|
|
||||||
version "3.10.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
|
|
||||||
|
|
||||||
-lodash@^4.0.0, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.3.0, lodash@^4.5.0:
|
|
||||||
+lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.3.0, lodash@^4.5.0:
|
|
||||||
version "4.17.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
|
|
||||||
|
|
||||||
@@ -4132,9 +4184,9 @@ multicast-dns@^6.0.1:
|
|
||||||
dns-packet "^1.0.1"
|
|
||||||
thunky "^0.1.0"
|
|
||||||
|
|
||||||
-mute-stream@0.0.5:
|
|
||||||
- version "0.0.5"
|
|
||||||
- resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0"
|
|
||||||
+mute-stream@0.0.7:
|
|
||||||
+ version "0.0.7"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
|
|
||||||
|
|
||||||
name-all-modules-plugin@^1.0.1:
|
|
||||||
version "1.0.1"
|
|
||||||
@@ -4383,9 +4435,11 @@ once@1.x, once@^1.3.0, once@^1.3.3, once@^1.4.0:
|
|
||||||
dependencies:
|
|
||||||
wrappy "1"
|
|
||||||
|
|
||||||
-onetime@^1.0.0:
|
|
||||||
- version "1.1.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789"
|
|
||||||
+onetime@^2.0.0:
|
|
||||||
+ version "2.0.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4"
|
|
||||||
+ dependencies:
|
|
||||||
+ mimic-fn "^1.0.0"
|
|
||||||
|
|
||||||
opener@^1.4.3:
|
|
||||||
version "1.4.3"
|
|
||||||
@@ -4567,7 +4621,7 @@ path-is-absolute@^1.0.0:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
|
|
||||||
|
|
||||||
-path-is-inside@^1.0.1:
|
|
||||||
+path-is-inside@^1.0.1, path-is-inside@^1.0.2:
|
|
||||||
version "1.0.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53"
|
|
||||||
|
|
||||||
@@ -4649,15 +4703,9 @@ pkg-dir@^2.0.0:
|
|
||||||
dependencies:
|
|
||||||
find-up "^2.1.0"
|
|
||||||
|
|
||||||
-pkg-up@^1.0.0:
|
|
||||||
- version "1.0.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26"
|
|
||||||
- dependencies:
|
|
||||||
- find-up "^1.0.0"
|
|
||||||
-
|
|
||||||
-pluralize@^1.2.1:
|
|
||||||
- version "1.2.1"
|
|
||||||
- resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45"
|
|
||||||
+pluralize@^7.0.0:
|
|
||||||
+ version "7.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777"
|
|
||||||
|
|
||||||
portfinder@^1.0.9:
|
|
||||||
version "1.0.13"
|
|
||||||
@@ -4958,9 +5006,9 @@ process@^0.11.0, process@~0.11.0:
|
|
||||||
version "0.11.9"
|
|
||||||
resolved "https://registry.yarnpkg.com/process/-/process-0.11.9.tgz#7bd5ad21aa6253e7da8682264f1e11d11c0318c1"
|
|
||||||
|
|
||||||
-progress@^1.1.8:
|
|
||||||
- version "1.1.8"
|
|
||||||
- resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be"
|
|
||||||
+progress@^2.0.0:
|
|
||||||
+ version "2.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f"
|
|
||||||
|
|
||||||
proto-list@~1.2.1:
|
|
||||||
version "1.2.4"
|
|
||||||
@@ -5197,20 +5245,6 @@ readdirp@^2.0.0:
|
|
||||||
readable-stream "^2.0.2"
|
|
||||||
set-immediate-shim "^1.0.1"
|
|
||||||
|
|
||||||
-readline2@^1.0.1:
|
|
||||||
- version "1.0.1"
|
|
||||||
- resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35"
|
|
||||||
- dependencies:
|
|
||||||
- code-point-at "^1.0.0"
|
|
||||||
- is-fullwidth-code-point "^1.0.0"
|
|
||||||
- mute-stream "0.0.5"
|
|
||||||
-
|
|
||||||
-rechoir@^0.6.2:
|
|
||||||
- version "0.6.2"
|
|
||||||
- resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
|
|
||||||
- dependencies:
|
|
||||||
- resolve "^1.1.6"
|
|
||||||
-
|
|
||||||
recursive-readdir@2.1.1:
|
|
||||||
version "2.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.1.1.tgz#a01cfc7f7f38a53ec096a096f63a50489c3e297c"
|
|
||||||
@@ -5360,7 +5394,7 @@ require-main-filename@^1.0.1:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"
|
|
||||||
|
|
||||||
-require-uncached@^1.0.2:
|
|
||||||
+require-uncached@^1.0.3:
|
|
||||||
version "1.0.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3"
|
|
||||||
dependencies:
|
|
||||||
@@ -5379,16 +5413,22 @@ resolve@1.1.x:
|
|
||||||
version "1.1.7"
|
|
||||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
|
|
||||||
|
|
||||||
-resolve@^1.1.6, resolve@^1.2.0:
|
|
||||||
+resolve@^1.2.0:
|
|
||||||
version "1.2.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c"
|
|
||||||
|
|
||||||
-restore-cursor@^1.0.1:
|
|
||||||
- version "1.0.1"
|
|
||||||
- resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541"
|
|
||||||
+resolve@^1.5.0:
|
|
||||||
+ version "1.5.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
|
|
||||||
+ dependencies:
|
|
||||||
+ path-parse "^1.0.5"
|
|
||||||
+
|
|
||||||
+restore-cursor@^2.0.0:
|
|
||||||
+ version "2.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf"
|
|
||||||
dependencies:
|
|
||||||
- exit-hook "^1.0.0"
|
|
||||||
- onetime "^1.0.0"
|
|
||||||
+ onetime "^2.0.0"
|
|
||||||
+ signal-exit "^3.0.2"
|
|
||||||
|
|
||||||
right-align@^0.1.1:
|
|
||||||
version "0.1.3"
|
|
||||||
@@ -5406,15 +5446,21 @@ ripemd160@^1.0.0:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-1.0.1.tgz#93a4bbd4942bc574b69a8fa57c71de10ecca7d6e"
|
|
||||||
|
|
||||||
-run-async@^0.1.0:
|
|
||||||
- version "0.1.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389"
|
|
||||||
+run-async@^2.2.0:
|
|
||||||
+ version "2.3.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0"
|
|
||||||
dependencies:
|
|
||||||
- once "^1.3.0"
|
|
||||||
+ is-promise "^2.1.0"
|
|
||||||
|
|
||||||
-rx-lite@^3.1.2:
|
|
||||||
- version "3.1.2"
|
|
||||||
- resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102"
|
|
||||||
+rx-lite-aggregates@^4.0.8:
|
|
||||||
+ version "4.0.8"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be"
|
|
||||||
+ dependencies:
|
|
||||||
+ rx-lite "*"
|
|
||||||
+
|
|
||||||
+rx-lite@*, rx-lite@^4.0.8:
|
|
||||||
+ version "4.0.8"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444"
|
|
||||||
|
|
||||||
safe-buffer@5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
|
|
||||||
version "5.1.1"
|
|
||||||
@@ -5535,19 +5581,11 @@ shebang-regex@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
|
|
||||||
|
|
||||||
-shelljs@^0.7.5:
|
|
||||||
- version "0.7.8"
|
|
||||||
- resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
|
|
||||||
- dependencies:
|
|
||||||
- glob "^7.0.0"
|
|
||||||
- interpret "^1.0.0"
|
|
||||||
- rechoir "^0.6.2"
|
|
||||||
-
|
|
||||||
sigmund@^1.0.1:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590"
|
|
||||||
|
|
||||||
-signal-exit@^3.0.0:
|
|
||||||
+signal-exit@^3.0.0, signal-exit@^3.0.2:
|
|
||||||
version "3.0.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
|
|
||||||
|
|
||||||
@@ -5555,9 +5593,11 @@ slash@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55"
|
|
||||||
|
|
||||||
-slice-ansi@0.0.4:
|
|
||||||
- version "0.0.4"
|
|
||||||
- resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35"
|
|
||||||
+slice-ansi@1.0.0:
|
|
||||||
+ version "1.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-1.0.0.tgz#044f1a49d8842ff307aad6b505ed178bd950134d"
|
|
||||||
+ dependencies:
|
|
||||||
+ is-fullwidth-code-point "^2.0.0"
|
|
||||||
|
|
||||||
slide@^1.1.5:
|
|
||||||
version "1.1.6"
|
|
||||||
@@ -5805,6 +5845,13 @@ string-width@^2.0.0:
|
|
||||||
is-fullwidth-code-point "^2.0.0"
|
|
||||||
strip-ansi "^3.0.0"
|
|
||||||
|
|
||||||
+string-width@^2.1.0, string-width@^2.1.1:
|
|
||||||
+ version "2.1.1"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e"
|
|
||||||
+ dependencies:
|
|
||||||
+ is-fullwidth-code-point "^2.0.0"
|
|
||||||
+ strip-ansi "^4.0.0"
|
|
||||||
+
|
|
||||||
string_decoder@^0.10.25, string_decoder@~0.10.x:
|
|
||||||
version "0.10.31"
|
|
||||||
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
|
|
||||||
@@ -5825,6 +5872,12 @@ strip-ansi@3.0.1, strip-ansi@^3.0.0, strip-ansi@^3.0.1:
|
|
||||||
dependencies:
|
|
||||||
ansi-regex "^2.0.0"
|
|
||||||
|
|
||||||
+strip-ansi@^4.0.0:
|
|
||||||
+ version "4.0.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f"
|
|
||||||
+ dependencies:
|
|
||||||
+ ansi-regex "^3.0.0"
|
|
||||||
+
|
|
||||||
strip-bom@^2.0.0:
|
|
||||||
version "2.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e"
|
|
||||||
@@ -5859,6 +5912,12 @@ supports-color@^3.1.0, supports-color@^3.1.1, supports-color@^3.1.2, supports-co
|
|
||||||
dependencies:
|
|
||||||
has-flag "^1.0.0"
|
|
||||||
|
|
||||||
+supports-color@^4.0.0:
|
|
||||||
+ version "4.5.0"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b"
|
|
||||||
+ dependencies:
|
|
||||||
+ has-flag "^2.0.0"
|
|
||||||
+
|
|
||||||
supports-color@^4.2.1:
|
|
||||||
version "4.2.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.2.1.tgz#65a4bb2631e90e02420dba5554c375a4754bb836"
|
|
||||||
@@ -5877,16 +5936,16 @@ svgo@^0.7.0:
|
|
||||||
sax "~1.2.1"
|
|
||||||
whet.extend "~0.9.9"
|
|
||||||
|
|
||||||
-table@^3.7.8:
|
|
||||||
- version "3.8.3"
|
|
||||||
- resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f"
|
|
||||||
+table@^4.0.1:
|
|
||||||
+ version "4.0.2"
|
|
||||||
+ resolved "https://registry.yarnpkg.com/table/-/table-4.0.2.tgz#a33447375391e766ad34d3486e6e2aedc84d2e36"
|
|
||||||
dependencies:
|
|
||||||
- ajv "^4.7.0"
|
|
||||||
- ajv-keywords "^1.0.0"
|
|
||||||
- chalk "^1.1.1"
|
|
||||||
- lodash "^4.0.0"
|
|
||||||
- slice-ansi "0.0.4"
|
|
||||||
- string-width "^2.0.0"
|
|
||||||
+ ajv "^5.2.3"
|
|
||||||
+ ajv-keywords "^2.1.0"
|
|
||||||
+ chalk "^2.1.0"
|
|
||||||
+ lodash "^4.17.4"
|
|
||||||
+ slice-ansi "1.0.0"
|
|
||||||
+ string-width "^2.1.1"
|
|
||||||
|
|
||||||
tapable@^0.1.8:
|
|
||||||
version "0.1.10"
|
|
||||||
@@ -5989,7 +6048,7 @@ tmp@0.0.31:
|
|
||||||
dependencies:
|
|
||||||
os-tmpdir "~1.0.1"
|
|
||||||
|
|
||||||
-tmp@0.0.x:
|
|
||||||
+tmp@0.0.x, tmp@^0.0.33:
|
|
||||||
version "0.0.33"
|
|
||||||
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
|
|
||||||
dependencies:
|
|
||||||
@@ -6186,12 +6245,6 @@ url@^0.11.0:
|
|
||||||
punycode "1.3.2"
|
|
||||||
querystring "0.2.0"
|
|
||||||
|
|
||||||
-user-home@^2.0.0:
|
|
||||||
- version "2.0.0"
|
|
||||||
- resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f"
|
|
||||||
- dependencies:
|
|
||||||
- os-homedir "^1.0.0"
|
|
||||||
-
|
|
||||||
useragent@^2.1.12:
|
|
||||||
version "2.2.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/useragent/-/useragent-2.2.1.tgz#cf593ef4f2d175875e8bb658ea92e18a4fd06d8e"
|
|
|
@ -1,96 +0,0 @@
|
||||||
diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example
|
|
||||||
index f2f05b3..0670112 100644
|
|
||||||
--- a/config/gitlab.yml.example
|
|
||||||
+++ b/config/gitlab.yml.example
|
|
||||||
@@ -502,7 +502,7 @@ production: &base
|
|
||||||
# Gitaly settings
|
|
||||||
gitaly:
|
|
||||||
# Path to the directory containing Gitaly client executables.
|
|
||||||
- client_path: /home/git/gitaly/bin
|
|
||||||
+ client_path: /usr/bin
|
|
||||||
# Default Gitaly authentication token. Can be overriden per storage. Can
|
|
||||||
# be left blank when Gitaly is running locally on a Unix socket, which
|
|
||||||
# is the normal way to deploy Gitaly.
|
|
||||||
@@ -520,8 +520,8 @@ production: &base
|
|
||||||
# real path not the symlink.
|
|
||||||
storages: # You must have at least a `default` storage path.
|
|
||||||
default:
|
|
||||||
- path: /home/git/repositories/
|
|
||||||
- gitaly_address: unix:/home/git/gitlab/tmp/sockets/private/gitaly.socket # TCP connections are supported too (e.g. tcp://host:port)
|
|
||||||
+ path: /var/lib/git/repositories/
|
|
||||||
+ gitaly_address: unix:/run/gitlab/gitaly.socket # TCP connections are supported too (e.g. tcp://host:port)
|
|
||||||
# gitaly_token: 'special token' # Optional: override global gitaly.token for this storage.
|
|
||||||
|
|
||||||
## Backup settings
|
|
||||||
@@ -549,12 +549,12 @@ production: &base
|
|
||||||
|
|
||||||
## GitLab Shell settings
|
|
||||||
gitlab_shell:
|
|
||||||
- path: /home/git/gitlab-shell/
|
|
||||||
- hooks_path: /home/git/gitlab-shell/hooks/
|
|
||||||
+ path: /usr/share/gitlab-shell/
|
|
||||||
+ hooks_path: /usr/share/gitlab-shell/hooks/
|
|
||||||
|
|
||||||
# File that contains the secret key for verifying access for gitlab-shell.
|
|
||||||
# Default is '.gitlab_shell_secret' relative to Rails.root (i.e. root of the GitLab app).
|
|
||||||
- # secret_file: /home/git/gitlab/.gitlab_shell_secret
|
|
||||||
+ secret_file: /opt/gitlab/.gitlab_shell_secret
|
|
||||||
|
|
||||||
# Git over HTTP
|
|
||||||
upload_pack: true
|
|
||||||
@@ -569,7 +569,7 @@ production: &base
|
|
||||||
workhorse:
|
|
||||||
# File that contains the secret key for verifying access for gitlab-workhorse.
|
|
||||||
# Default is '.gitlab_workhorse_secret' relative to Rails.root (i.e. root of the GitLab app).
|
|
||||||
- # secret_file: /home/git/gitlab/.gitlab_workhorse_secret
|
|
||||||
+ # secret_file: /opt/gitlab/.gitlab_workhorse_secret
|
|
||||||
|
|
||||||
## Git settings
|
|
||||||
# CAUTION!
|
|
||||||
@@ -667,8 +667,8 @@ test:
|
|
||||||
backup:
|
|
||||||
path: tmp/tests/backups
|
|
||||||
gitlab_shell:
|
|
||||||
- path: tmp/tests/gitlab-shell/
|
|
||||||
- hooks_path: tmp/tests/gitlab-shell/hooks/
|
|
||||||
+ path: /usr/share/gitlab-shell/
|
|
||||||
+ hooks_path: /usr/share/gitlab-shell/hooks/
|
|
||||||
issues_tracker:
|
|
||||||
redmine:
|
|
||||||
title: "Redmine"
|
|
||||||
diff --git a/config/unicorn.rb.example b/config/unicorn.rb.example
|
|
||||||
index cc10da2..3c80d44 100644
|
|
||||||
--- a/config/unicorn.rb.example
|
|
||||||
+++ b/config/unicorn.rb.example
|
|
||||||
@@ -33,12 +33,12 @@ worker_processes 3
|
|
||||||
|
|
||||||
# Help ensure your application will always spawn in the symlinked
|
|
||||||
# "current" directory that Capistrano sets up.
|
|
||||||
-working_directory "/home/git/gitlab" # available in 0.94.0+
|
|
||||||
+working_directory "/opt/gitlab" # available in 0.94.0+
|
|
||||||
|
|
||||||
# Listen on both a Unix domain socket and a TCP port.
|
|
||||||
# If you are load-balancing multiple Unicorn masters, lower the backlog
|
|
||||||
# setting to e.g. 64 for faster failover.
|
|
||||||
-listen "/home/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 1024
|
|
||||||
+listen "/run/gitlab/gitlab.socket", :backlog => 1024
|
|
||||||
listen "127.0.0.1:8080", :tcp_nopush => true
|
|
||||||
|
|
||||||
# nuke workers after 30 seconds instead of 60 seconds (the default)
|
|
||||||
@@ -59,13 +59,13 @@ listen "127.0.0.1:8080", :tcp_nopush => true
|
|
||||||
timeout 60
|
|
||||||
|
|
||||||
# feel free to point this anywhere accessible on the filesystem
|
|
||||||
-pid "/home/git/gitlab/tmp/pids/unicorn.pid"
|
|
||||||
+pid "/run/gitlab/unicorn.pid"
|
|
||||||
|
|
||||||
# By default, the Unicorn logger will write to stderr.
|
|
||||||
# Additionally, some applications/frameworks log to stderr or stdout,
|
|
||||||
# so prevent them from going to /dev/null when daemonized here:
|
|
||||||
-stderr_path "/home/git/gitlab/log/unicorn.stderr.log"
|
|
||||||
-stdout_path "/home/git/gitlab/log/unicorn.stdout.log"
|
|
||||||
+stderr_path "/var/log/gitlab/unicorn.stderr.log"
|
|
||||||
+stdout_path "/var/log/gitlab/unicorn.stdout.log"
|
|
||||||
|
|
||||||
# combine Ruby 2.0.0dev or REE with "preload_app true" for memory savings
|
|
||||||
# http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow
|
|
|
@ -1,64 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
|
|
||||||
extra_started_commands="check"
|
|
||||||
|
|
||||||
name="GitLab Sidekiq"
|
|
||||||
description="Sidekiq for GitLab"
|
|
||||||
description_check="Runs sanity checks"
|
|
||||||
|
|
||||||
: ${gitlab_user:=@USER@}
|
|
||||||
: ${gitlab_base:="@GITLAB_BASE@"}
|
|
||||||
: ${rails_env:=production}
|
|
||||||
|
|
||||||
: ${sidekiq_pidfile:="/run/gitlab/sidekiq.pid"}
|
|
||||||
: ${sidekiq_logfile:="@LOGS_DIR@/sidekiq.log"}
|
|
||||||
: ${sidekiq_config:="/etc/gitlab/sidekiq_queues.yml"}
|
|
||||||
|
|
||||||
sidekiq_command="/usr/bin/bundle"
|
|
||||||
sidekiq_command_args="exec sidekiq -C ${sidekiq_config} -P ${sidekiq_pidfile} -L ${sidekiq_logfile}"
|
|
||||||
|
|
||||||
check_command="sudo -u ${gitlab_user} -H /usr/bin/bundle"
|
|
||||||
check_command_args1="exec rake gitlab:env:info RAILS_ENV=${rails_env}"
|
|
||||||
check_command_args2="exec rake gitlab:check RAILS_ENV=${rails_env}"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need redis gitlab-workhorse
|
|
||||||
use net
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${sidekiq_pidfile}")"
|
|
||||||
|
|
||||||
ebegin "Starting ${name} - Sidekiq"
|
|
||||||
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--background --quiet \
|
|
||||||
--chdir "${gitlab_base}" \
|
|
||||||
--user=${gitlab_user} \
|
|
||||||
--pidfile="${sidekiq_pidfile}" \
|
|
||||||
--env RAILS_ENV=${rails_env} \
|
|
||||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping ${name} - Sidekiq"
|
|
||||||
start-stop-daemon --stop \
|
|
||||||
--pidfile="${sidekiq_pidfile}" \
|
|
||||||
--exec ${sidekiq_command}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
ebegin "Running sanity checks for ${name}"
|
|
||||||
|
|
||||||
cd /opt/gitlab
|
|
||||||
|
|
||||||
${check_command} ${check_command_args1}
|
|
||||||
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
${check_command} ${check_command_args2}
|
|
||||||
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1,156 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
|
|
||||||
extra_started_commands="restartsidekiq check"
|
|
||||||
extra_stopped_commands="backup"
|
|
||||||
|
|
||||||
name="GitLab"
|
|
||||||
description="GitLab on Unicorns"
|
|
||||||
description_restartsidekiq="Restarts Sidekiq only"
|
|
||||||
description_check="Runs sanity checks"
|
|
||||||
description_backup="Creates a backup of your Gitlab database and files"
|
|
||||||
|
|
||||||
: ${gitlab_user:=@USER@}
|
|
||||||
: ${gitlab_base:="@GITLAB_BASE@"}
|
|
||||||
: ${rails_env:=production}
|
|
||||||
|
|
||||||
: ${server_pidfile:="/run/gitlab/unicorn.pid"}
|
|
||||||
|
|
||||||
: ${sidekiq_pidfile:="/run/gitlab/sidekiq.pid"}
|
|
||||||
: ${sidekiq_logfile:="@LOGS_DIR@/sidekiq.log"}
|
|
||||||
: ${sidekiq_config:="/etc/gitlab/sidekiq_queues.yml"}
|
|
||||||
|
|
||||||
: ${mail_room_pidfile:="/run/gitlab/mail_room.pid"}
|
|
||||||
: ${mail_room_logfile:="@LOGS_DIR@/mail_room.log"}
|
|
||||||
: ${mail_room_config:="/etc/gitlab/mail_room.yml"}
|
|
||||||
|
|
||||||
socket_dir="/run/gitlab"
|
|
||||||
|
|
||||||
server_command="/usr/bin/bundle"
|
|
||||||
server_command_args="exec unicorn_rails -c ${gitlab_base}/config/unicorn.rb -E ${rails_env} -D"
|
|
||||||
|
|
||||||
sidekiq_command="/usr/bin/bundle"
|
|
||||||
sidekiq_command_args="exec sidekiq -C ${sidekiq_config} -P ${sidekiq_pidfile} -L ${sidekiq_logfile}"
|
|
||||||
|
|
||||||
mail_room_command="/usr/bin/bundle"
|
|
||||||
mail_room_command_args="exec mail_room -q -c ${mail_room_config} >> ${mail_room_logfile} 2>&1"
|
|
||||||
|
|
||||||
check_command="sudo -u ${gitlab_user} -H /usr/bin/bundle"
|
|
||||||
check_command_args1="exec rake gitlab:env:info RAILS_ENV=${rails_env}"
|
|
||||||
check_command_args2="exec rake gitlab:check RAILS_ENV=${rails_env}"
|
|
||||||
|
|
||||||
backup_command="sudo -u ${gitlab_user} -H /usr/bin/bundle"
|
|
||||||
backup_args=" exec rake gitlab:backup:create RAILS_ENV=${rails_env}"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need redis gitlab-workhorse gitlab-gitaly
|
|
||||||
use net
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting ${name} - Unicorn servers"
|
|
||||||
|
|
||||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${server_pidfile}")"
|
|
||||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${sidekiq_pidfile}")"
|
|
||||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${mail_room_pidfile}")"
|
|
||||||
checkpath -d -o ${gitlab_user} -m700 "${socket_dir}"
|
|
||||||
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--chdir "${gitlab_base}" \
|
|
||||||
--user=${gitlab_user} \
|
|
||||||
--pidfile="${server_pidfile}" \
|
|
||||||
--env RAILS_ENV=${rails_env} \
|
|
||||||
--exec ${server_command} -- ${server_command_args}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
ebegin "Starting ${name} - Sidekiq"
|
|
||||||
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--background --quiet \
|
|
||||||
--chdir "${gitlab_base}" \
|
|
||||||
--user=${gitlab_user} \
|
|
||||||
--pidfile="${sidekiq_pidfile}" \
|
|
||||||
--env RAILS_ENV=${rails_env} \
|
|
||||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
if [ -e /etc/default/gitlab ]; then
|
|
||||||
. /etc/default/gitlab
|
|
||||||
if [ "${mail_room_enabled}" == "true" ]; then
|
|
||||||
ebegin "Starting ${name} - mail_room"
|
|
||||||
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--background --quiet \
|
|
||||||
--chdir "${gitlab_base}" \
|
|
||||||
--user=${gitlab_user} \
|
|
||||||
--pidfile="${mail_room_pidfile}" -m \
|
|
||||||
--env RAILS_ENV=${rails_env} \
|
|
||||||
--exec ${mail_room_command} -- ${mail_room_command_args}
|
|
||||||
eend $?
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping ${name} - mail_room"
|
|
||||||
start-stop-daemon --stop \
|
|
||||||
--signal QUIT \
|
|
||||||
--pidfile=${mail_room_pidfile} \
|
|
||||||
--exec ${mail_room_command}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
ebegin "Stopping ${name} - Sidekiq"
|
|
||||||
start-stop-daemon --stop \
|
|
||||||
--pidfile=${sidekiq_pidfile} \
|
|
||||||
--exec ${sidekiq_command}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
ebegin "Stopping ${name} - Unicorn servers"
|
|
||||||
start-stop-daemon --stop \
|
|
||||||
--signal QUIT \
|
|
||||||
--pidfile=${server_pidfile} \
|
|
||||||
--exec ${server_command}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
restartsidekiq() {
|
|
||||||
ebegin "Restarting ${name} - Sidekiq: Stopping"
|
|
||||||
start-stop-daemon --stop \
|
|
||||||
--pidfile=${sidekiq_pidfile} \
|
|
||||||
--exec ${sidekiq_command} \
|
|
||||||
--progress \
|
|
||||||
--retry 180
|
|
||||||
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
ebegin "Starting ${name} - Sidekiq"
|
|
||||||
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--background --quiet \
|
|
||||||
--chdir "${gitlab_base}" \
|
|
||||||
--user=${gitlab_user} \
|
|
||||||
--pidfile="${sidekiq_pidfile}" \
|
|
||||||
--env RAILS_ENV=${rails_env} \
|
|
||||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
ebegin "Running sanity checks for ${name}"
|
|
||||||
|
|
||||||
cd /opt/gitlab
|
|
||||||
|
|
||||||
${check_command} ${check_command_args1}
|
|
||||||
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
${check_command} ${check_command_args2}
|
|
||||||
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
backup() {
|
|
||||||
ebegin "Creating backup of ${name}"
|
|
||||||
cd /opt/gitlab
|
|
||||||
${backup_command} ${backup_args}
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
#####################################################
|
|
||||||
#
|
|
||||||
# GitLab version : 8.13.x - 9999
|
|
||||||
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp)
|
|
||||||
# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd
|
|
||||||
#
|
|
||||||
####################################################
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=GitLab Sidekiq Worker
|
|
||||||
Requires=redis.service
|
|
||||||
Wants=mysqld.service postgresql.service
|
|
||||||
After=redis.service mysqld.service postgresql.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
User=git
|
|
||||||
WorkingDirectory=/opt/gitlab
|
|
||||||
Environment=RAILS_ENV=production
|
|
||||||
SyslogIdentifier=gitlab-sidekiq
|
|
||||||
PIDFile=/run/gitlab/sidekiq.pid
|
|
||||||
|
|
||||||
ExecStart=/usr/bin/bundle exec "sidekiq -d -C /etc/gitlab/sidekiq_queues.yml -e production -P /run/gitlab/sidekiq.pid -d -L /var/log/gitlab/sidekiq.log >> /var/log/gitlab/sidekiq.log 2>&1"
|
|
||||||
ExecStop=/usr/bin/bundle exec "sidekiqctl stop /run/gitlab/sidekiq.pid >> /var/log/gitlab/sidekiq.log 2>&1"
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,64 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
|
|
||||||
extra_started_commands="check"
|
|
||||||
|
|
||||||
name="GitLab Sidekiq"
|
|
||||||
description="Sidekiq for GitLab"
|
|
||||||
description_check="Runs sanity checks"
|
|
||||||
|
|
||||||
: ${gitlab_user:=@USER@}
|
|
||||||
: ${gitlab_base:="@GITLAB_BASE@"}
|
|
||||||
: ${rails_env:=production}
|
|
||||||
|
|
||||||
: ${sidekiq_pidfile:="/run/gitlab/pids/sidekiq.pid"}
|
|
||||||
: ${sidekiq_logfile:="@LOGS_DIR@/sidekiq.log"}
|
|
||||||
: ${sidekiq_config:="/etc/gitlab/sidekiq_queues.yml"}
|
|
||||||
|
|
||||||
sidekiq_command="/usr/bin/bundle"
|
|
||||||
sidekiq_command_args="exec sidekiq -C ${sidekiq_config} -P ${sidekiq_pidfile} -L ${sidekiq_logfile}"
|
|
||||||
|
|
||||||
check_command="sudo -u ${gitlab_user} -H /usr/bin/bundle"
|
|
||||||
check_command_args1="exec rake gitlab:env:info RAILS_ENV=${rails_env}"
|
|
||||||
check_command_args2="exec rake gitlab:check RAILS_ENV=${rails_env}"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need redis gitlab-workhorse
|
|
||||||
use net
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${sidekiq_pidfile}")"
|
|
||||||
|
|
||||||
ebegin "Starting ${name} - Sidekiq"
|
|
||||||
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--background --quiet \
|
|
||||||
--chdir "${gitlab_base}" \
|
|
||||||
--user=${gitlab_user} \
|
|
||||||
--pidfile="${sidekiq_pidfile}" \
|
|
||||||
--env RAILS_ENV=${rails_env} \
|
|
||||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping ${name} - Sidekiq"
|
|
||||||
start-stop-daemon --stop \
|
|
||||||
--pidfile=${sidekiq_pidfile} \
|
|
||||||
--exec ${sidekiq_command}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
ebegin "Running sanity checks for ${name}"
|
|
||||||
|
|
||||||
cd /opt/gitlab
|
|
||||||
|
|
||||||
${check_command} ${check_command_args1}
|
|
||||||
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
${check_command} ${check_command_args2}
|
|
||||||
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1,145 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
|
|
||||||
extra_started_commands="restartsidekiq check"
|
|
||||||
|
|
||||||
name="GitLab"
|
|
||||||
description="GitLab on Unicorns"
|
|
||||||
description_restartsidekiq="Restarts Sidekiq only"
|
|
||||||
description_check="Runs sanity checks"
|
|
||||||
|
|
||||||
: ${gitlab_user:=@USER@}
|
|
||||||
: ${gitlab_base:="@GITLAB_BASE@"}
|
|
||||||
: ${rails_env:=production}
|
|
||||||
|
|
||||||
: ${server_pidfile:="/run/gitlab/pids/unicorn.pid"}
|
|
||||||
|
|
||||||
: ${sidekiq_pidfile:="/run/gitlab/pids/sidekiq.pid"}
|
|
||||||
: ${sidekiq_logfile:="@LOGS_DIR@/sidekiq.log"}
|
|
||||||
: ${sidekiq_config:="/etc/gitlab/sidekiq_queues.yml"}
|
|
||||||
|
|
||||||
: ${mail_room_pidfile:="/run/gitlab/pids/mail_room.pid"}
|
|
||||||
: ${mail_room_logfile:="@LOGS_DIR@/mail_room.log"}
|
|
||||||
: ${mail_room_config:="/etc/gitlab/mail_room.yml"}
|
|
||||||
|
|
||||||
socket_dir="/run/gitlab/sockets"
|
|
||||||
|
|
||||||
server_command="/usr/bin/bundle"
|
|
||||||
server_command_args="exec unicorn_rails -c ${gitlab_base}/config/unicorn.rb -E ${rails_env} -D"
|
|
||||||
|
|
||||||
sidekiq_command="/usr/bin/bundle"
|
|
||||||
sidekiq_command_args="exec sidekiq -C ${sidekiq_config} -P ${sidekiq_pidfile} -L ${sidekiq_logfile}"
|
|
||||||
|
|
||||||
mail_room_command="/usr/bin/bundle"
|
|
||||||
mail_room_command_args="exec mail_room -q -c ${mail_room_config} >> ${mail_room_logfile} 2>&1"
|
|
||||||
|
|
||||||
check_command="sudo -u ${gitlab_user} -H /usr/bin/bundle"
|
|
||||||
check_command_args1="exec rake gitlab:env:info RAILS_ENV=${rails_env}"
|
|
||||||
check_command_args2="exec rake gitlab:check RAILS_ENV=${rails_env}"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
provide gitlab
|
|
||||||
need redis gitlab-workhorse gitlab-gitaly
|
|
||||||
use net
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting ${name} - Unicorn servers"
|
|
||||||
|
|
||||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${server_pidfile}")"
|
|
||||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${sidekiq_pidfile}")"
|
|
||||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${mail_room_pidfile}")"
|
|
||||||
checkpath -d -o ${gitlab_user} -m700 "${socket_dir}"
|
|
||||||
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--chdir "${gitlab_base}" \
|
|
||||||
--user=${gitlab_user} \
|
|
||||||
--pidfile="${server_pidfile}" \
|
|
||||||
--env RAILS_ENV=${rails_env} \
|
|
||||||
--exec ${server_command} -- ${server_command_args}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
ebegin "Starting ${name} - Sidekiq"
|
|
||||||
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--background --quiet \
|
|
||||||
--chdir "${gitlab_base}" \
|
|
||||||
--user=${gitlab_user} \
|
|
||||||
--pidfile="${sidekiq_pidfile}" \
|
|
||||||
--env RAILS_ENV=${rails_env} \
|
|
||||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
if [ -e /etc/default/gitlab ]; then
|
|
||||||
. /etc/default/gitlab
|
|
||||||
if [ "${mail_room_enabled}" == "true" ]; then
|
|
||||||
ebegin "Starting ${name} - mail_room"
|
|
||||||
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--background --quiet \
|
|
||||||
--chdir "${gitlab_base}" \
|
|
||||||
--user=${gitlab_user} \
|
|
||||||
--pidfile="${mail_room_pidfile}" -m \
|
|
||||||
--env RAILS_ENV=${rails_env} \
|
|
||||||
--exec ${mail_room_command} -- ${mail_room_command_args}
|
|
||||||
eend $?
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping ${name} - mail_room"
|
|
||||||
start-stop-daemon --stop \
|
|
||||||
--signal QUIT \
|
|
||||||
--pidfile=${mail_room_pidfile} \
|
|
||||||
--exec ${mail_room_command}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
ebegin "Stopping ${name} - Sidekiq"
|
|
||||||
start-stop-daemon --stop \
|
|
||||||
--pidfile=${sidekiq_pidfile} \
|
|
||||||
--exec ${sidekiq_command}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
ebegin "Stopping ${name} - Unicorn servers"
|
|
||||||
start-stop-daemon --stop \
|
|
||||||
--signal QUIT \
|
|
||||||
--pidfile=${server_pidfile} \
|
|
||||||
--exec ${server_command}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
restartsidekiq() {
|
|
||||||
ebegin "Restarting ${name} - Sidekiq: Stopping"
|
|
||||||
start-stop-daemon --stop \
|
|
||||||
--pidfile=${sidekiq_pidfile} \
|
|
||||||
--exec ${sidekiq_command} \
|
|
||||||
--progress \
|
|
||||||
--retry 180
|
|
||||||
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
ebegin "Starting ${name} - Sidekiq"
|
|
||||||
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--background --quiet \
|
|
||||||
--chdir "${gitlab_base}" \
|
|
||||||
--user=${gitlab_user} \
|
|
||||||
--pidfile="${sidekiq_pidfile}" \
|
|
||||||
--env RAILS_ENV=${rails_env} \
|
|
||||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
ebegin "Running sanity checks for ${name}"
|
|
||||||
|
|
||||||
cd /opt/gitlab
|
|
||||||
|
|
||||||
${check_command} ${check_command_args1}
|
|
||||||
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
${check_command} ${check_command_args2}
|
|
||||||
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1,28 +0,0 @@
|
||||||
#####################################################
|
|
||||||
#
|
|
||||||
# GitLab version : 8.x - 8.x
|
|
||||||
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp)
|
|
||||||
# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd
|
|
||||||
#
|
|
||||||
####################################################
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Gitlab mailroom Worker
|
|
||||||
Requires=gitlab-unicorn.service
|
|
||||||
Wants=gitlab-unicorn.service
|
|
||||||
After=gitlab-unicorn.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
User=git
|
|
||||||
Environment=RAILS_ENV=production
|
|
||||||
WorkingDirectory=/opt/gitlab
|
|
||||||
SyslogIdentifier=gitlab-mailroom
|
|
||||||
PIDFile=/run/gitlab/gitlab-mailroom.pid
|
|
||||||
Type=oneshot
|
|
||||||
RemainAfterExit=yes
|
|
||||||
|
|
||||||
ExecStart=/opt/gitlab/bin/mail_room start
|
|
||||||
ExecStop=/opt/gitlab/bin/mail_room stop
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,25 +0,0 @@
|
||||||
#####################################################
|
|
||||||
#
|
|
||||||
# GitLab version : 5.x - 7.x
|
|
||||||
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp)
|
|
||||||
# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd
|
|
||||||
#
|
|
||||||
####################################################
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=GitLab Unicorn Server
|
|
||||||
Requires=redis.service
|
|
||||||
Wants=mysqld.service postgresql.service
|
|
||||||
After=redis.service mysqld.service postgresql.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
User=git
|
|
||||||
WorkingDirectory=/opt/gitlab
|
|
||||||
Environment=RAILS_ENV=production
|
|
||||||
SyslogIdentifier=gitlab-unicorn
|
|
||||||
PIDFile=/run/gitlab/unicorn.pid
|
|
||||||
|
|
||||||
ExecStart=/usr/bin/bundle exec "unicorn_rails -D -c /opt/gitlab/config/unicorn.rb -E production"
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,25 +0,0 @@
|
||||||
#####################################################
|
|
||||||
#
|
|
||||||
# GitLab version : 8.2 - 8.x
|
|
||||||
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp)
|
|
||||||
# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd
|
|
||||||
#
|
|
||||||
####################################################
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Gitlab Workhorse
|
|
||||||
Requires=gitlab-unicorn.service
|
|
||||||
Wants=gitlab-unicorn.service
|
|
||||||
After=gitlab-unicorn.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
User=git
|
|
||||||
WorkingDirectory=/opt/gitlab
|
|
||||||
SyslogIdentifier=gitlab-workhorse
|
|
||||||
PIDFile=/run/gitlab/gitlab-workhorse.pid
|
|
||||||
|
|
||||||
ExecStart=/opt/gitlab/bin/daemon_with_pidfile /run/gitlab/gitlab-workhorse.pid /usr/bin/gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr /run/gitlab/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 /var/lib/git/repositories/ >> /var/log/gitlab/gitlab-workhorse.log 2>&1
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1 +0,0 @@
|
||||||
d /run/gitlab 0755 git git
|
|
|
@ -1,430 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
# Maintainer notes:
|
|
||||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
|
||||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
|
||||||
# it should be done, but GitLab has too many dependencies that it will be too
|
|
||||||
# difficult to maintain them via ebuilds.
|
|
||||||
#
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user systemd
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="03a14086924c017c49b49d20b525b90ae2a965f5"
|
|
||||||
|
|
||||||
GITALY_VERSION="0.38.0"
|
|
||||||
GITLAB_PAGES_VERSION="0.5.1"
|
|
||||||
GITLAB_SHELL_VERSION="5.9.0"
|
|
||||||
GITLAB_WORKHORSE_VERSION="3.0.0"
|
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
|
||||||
|
|
||||||
## Gems dependencies:
|
|
||||||
# charlock_holmes dev-libs/icu
|
|
||||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
|
||||||
# rugged dev-util/cmake, virtual/pkgconfig
|
|
||||||
# json dev-util/ragel
|
|
||||||
# pygments.rb python 2.7+
|
|
||||||
# execjs net-libs/nodejs, or any other JS runtime
|
|
||||||
# pg dev-db/postgresql
|
|
||||||
# mysql virtual/mysql
|
|
||||||
#
|
|
||||||
GEMS_DEPEND="
|
|
||||||
dev-libs/icu
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/re2
|
|
||||||
dev-util/ragel
|
|
||||||
>=net-libs/nodejs-4.3.0
|
|
||||||
>=sys-apps/yarn-0.17.0
|
|
||||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
|
||||||
mysql? ( virtual/mysql )
|
|
||||||
kerberos? ( virtual/krb5 )"
|
|
||||||
CDEPEND="
|
|
||||||
dev-util/cmake
|
|
||||||
virtual/pkgconfig"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${GEMS_DEPEND}
|
|
||||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
|
||||||
>=dev-vcs/git-2.8.4
|
|
||||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
|
||||||
kerberos? ( !app-crypt/heimdal )
|
|
||||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
|
||||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
|
||||||
~www-servers/gitlab-gitaly-${GITALY_VERSION}"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-db/redis-2.8
|
|
||||||
virtual/mta
|
|
||||||
systemd? ( sys-apps/systemd:0= )"
|
|
||||||
# required bundler >= 1.15.3
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/rubygems
|
|
||||||
>=dev-ruby/bundler-1.14.6"
|
|
||||||
|
|
||||||
#
|
|
||||||
# fix-sendmail-config:
|
|
||||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
|
||||||
# fix-redis-config-path:
|
|
||||||
# Point to the absolute location of redis_config.rb
|
|
||||||
#
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
|
||||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
|
||||||
"${FILESDIR}/03-${PN}-9.4.0-database.yml.patch"
|
|
||||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
|
||||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
|
||||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
|
||||||
"${FILESDIR}/07-${PN}-10.0.7-yarn.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
MY_NAME="gitlab"
|
|
||||||
MY_USER="git" # should be same as in gitlab-shell
|
|
||||||
|
|
||||||
DEST_DIR="/opt/${MY_NAME}"
|
|
||||||
CONF_DIR="/etc/${MY_NAME}"
|
|
||||||
LOGS_DIR="/var/log/${MY_NAME}"
|
|
||||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
local satellites_path="${TEMP_DIR}/repo_satellites"
|
|
||||||
local repos_path=/var/lib/git/repositories
|
|
||||||
local shell_path=/usr/share/gitlab-shell
|
|
||||||
local run_path=/run/${MY_NAME}
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \
|
|
||||||
-e "/path: \\/home\\/git\\/repositories\\/$/ s|/home/git/repositories/|/var/lib/git/repositories/|" \
|
|
||||||
-e "/gitaly_address:/ s|/home/git/gitlab/tmp/sockets/private/|${run_path}/sockets/|" \
|
|
||||||
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
|
||||||
-e "s|/home/git/gitlab/log|${LOGS_DIR}|g" \
|
|
||||||
-e "s|/home/git/gitlab|${DEST_DIR}|g" \
|
|
||||||
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
|
||||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
|
||||||
|
|
||||||
# modify default database settings for PostgreSQL
|
|
||||||
sed -i -E \
|
|
||||||
-e 's|(username:).*|\1 gitlab|' \
|
|
||||||
-e 's|(password:).*|\1 gitlab|' \
|
|
||||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
|
||||||
config/database.yml.postgresql \
|
|
||||||
|| die "failed to filter database.yml.postgresql"
|
|
||||||
|
|
||||||
# rename config files
|
|
||||||
mv config/gitlab.yml.example config/gitlab.yml
|
|
||||||
mv config/unicorn.rb.example config/unicorn.rb
|
|
||||||
|
|
||||||
local dbconf=config/database.yml
|
|
||||||
if use postgres && ! use mysql; then
|
|
||||||
mv ${dbconf}.postgresql ${dbconf}
|
|
||||||
rm ${dbconf}.mysql
|
|
||||||
elif use mysql && ! use postgres; then
|
|
||||||
mv ${dbconf}.mysql ${dbconf}
|
|
||||||
rm ${dbconf}.postgresql
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove useless files
|
|
||||||
rm -r lib/support/{deploy,init.d}
|
|
||||||
use unicorn || rm config/unicorn.rb
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
local dest=${DEST_DIR}
|
|
||||||
local conf=${CONF_DIR}
|
|
||||||
local logs=${LOGS_DIR}
|
|
||||||
local temp=${TEMP_DIR}
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750
|
|
||||||
dodir ${logs} ${temp}
|
|
||||||
|
|
||||||
diropts -m755
|
|
||||||
dodir ${conf} ${dest}/public/uploads
|
|
||||||
|
|
||||||
dosym ${temp} ${dest}/tmp
|
|
||||||
dosym ${logs} ${dest}/log
|
|
||||||
|
|
||||||
# install configs
|
|
||||||
insinto ${conf}
|
|
||||||
doins -r config/*
|
|
||||||
dosym ${conf} ${dest}/config
|
|
||||||
|
|
||||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
|
||||||
|
|
||||||
# remove needless dirs
|
|
||||||
rm -Rf config tmp log
|
|
||||||
|
|
||||||
# install the rest files
|
|
||||||
# using cp 'cause doins is slow
|
|
||||||
cp -Rl * "${D}/${dest}"/
|
|
||||||
cp -Rl .??* "${D}/${dest}"/
|
|
||||||
|
|
||||||
# install logrotate config
|
|
||||||
dodir /etc/logrotate.d
|
|
||||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
|
||||||
${logs}/*.log {
|
|
||||||
missingok
|
|
||||||
delaycompress
|
|
||||||
compress
|
|
||||||
copytruncate
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
## Install gems via bundler ##
|
|
||||||
|
|
||||||
cd "${D}/${dest}"
|
|
||||||
|
|
||||||
local without="development test aws"
|
|
||||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
|
||||||
without+="$(use $flag || echo ' '$flag)"
|
|
||||||
done
|
|
||||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
|
||||||
|
|
||||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
|
||||||
|
|
||||||
einfo "Running bundle install ${bundle_args} ..."
|
|
||||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
|
||||||
|
|
||||||
einfo "Cleaning old gems ..."
|
|
||||||
${RUBY} /usr/bin/bundle clean
|
|
||||||
|
|
||||||
# clean gems cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
|
||||||
|
|
||||||
## RC script ##
|
|
||||||
|
|
||||||
if use systemd ; then
|
|
||||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
|
||||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
|
||||||
else
|
|
||||||
local rcscript=gitlab-9.3.5-sidekiq.init
|
|
||||||
use unicorn && rcscript=gitlab-9.3.5-unicorn.init
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
|
||||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "If this is an update from a previous version, stop your GitLab"
|
|
||||||
elog "instance and issue the following command to perform all required"
|
|
||||||
elog "migrations:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
|
||||||
elog "before running the config phase. Run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
elog "If this was a fresh install, follow these steps:"
|
|
||||||
elog
|
|
||||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
|
||||||
elog
|
|
||||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
|
||||||
elog " for \"production\" environment."
|
|
||||||
elog
|
|
||||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
|
||||||
elog " haven't done so already."
|
|
||||||
elog
|
|
||||||
if use postgres; then
|
|
||||||
elog "If you have local PostgreSQL running, just copy&run:"
|
|
||||||
elog " su postgres"
|
|
||||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
|
||||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
|
||||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
|
||||||
elog " Note: You should change your password to something more random..."
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
elog "4. Finally execute the following command to initialize the environment:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog " Note: Do not forget to start Redis server first!"
|
|
||||||
elog
|
|
||||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
|
||||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
|
||||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
|
||||||
elog "http://goo.gl/5XGRGv."
|
|
||||||
if use postgres; then
|
|
||||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
|
||||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
|
||||||
elog "super user for *every* GitLab database:"
|
|
||||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
||||||
elog "For details, see the documentation at the GitLab website."
|
|
||||||
fi
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
|
||||||
ewarn " mysql -u root -p -e \\"
|
|
||||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
|
||||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
|
||||||
ewarn
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
ewarn
|
|
||||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "Checking configuration files"
|
|
||||||
|
|
||||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
|
||||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
|
||||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
|
||||||
eerror "database settings for \"production\" environment."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
|
||||||
local git_home="$(egethome ${MY_USER})"
|
|
||||||
|
|
||||||
# configure Git global settings
|
|
||||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
|
||||||
einfo "Setting git user"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
git config --global user.email '${email_from}';
|
|
||||||
git config --global user.name 'GitLab'" \
|
|
||||||
|| die "failed to setup git name and email"
|
|
||||||
fi
|
|
||||||
|
|
||||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
|
||||||
|
|
||||||
# determine whether this is an update or a fresh install. we do this by
|
|
||||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
|
||||||
#
|
|
||||||
if [ -d "${DEST_DIR}/.git" ]; then
|
|
||||||
local update=true
|
|
||||||
else
|
|
||||||
local update=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "Please only proceed if you've read and understood the following page:"
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
|
||||||
fi
|
|
||||||
ewarn
|
|
||||||
ewarn "Press any key to continue, or abort with Ctrl+C"
|
|
||||||
read
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Initialize app ##
|
|
||||||
|
|
||||||
local RAILS_ENV="production"
|
|
||||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
|
||||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
einfo "Migrating database ..."
|
|
||||||
exec_rake db:migrate
|
|
||||||
|
|
||||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
|
||||||
einfo "Migrating iids ..."
|
|
||||||
exec_rake migrate_iids
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
|
||||||
exec_rake gitlab:assets:clean
|
|
||||||
|
|
||||||
einfo "Cleaning cache ..."
|
|
||||||
exec_rake cache:clear
|
|
||||||
else
|
|
||||||
# create dummy git repo as workaround for
|
|
||||||
# https://github.com/bundler/bundler/issues/2039
|
|
||||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
git init
|
|
||||||
git add README.md
|
|
||||||
git commit -m 'Dummy repository'" >/dev/null
|
|
||||||
|
|
||||||
einfo "Initializing database ..."
|
|
||||||
exec_rake gitlab:setup
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
|
||||||
exec_rake gitlab:assets:compile
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn
|
|
||||||
ewarn "This configuration script runs only common migration tasks."
|
|
||||||
ewarn "Please read guides on"
|
|
||||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
|
||||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
|
||||||
ewarn "version."
|
|
||||||
fi
|
|
||||||
elog
|
|
||||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
|
||||||
elog "Gitlab now and then run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
if ! use systemd ; then
|
|
||||||
elog "You may also run"
|
|
||||||
elog " /etc/init.d/gitlab check"
|
|
||||||
elog " for convenience."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ryaml() {
|
|
||||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec_rake() {
|
|
||||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run rake $@"
|
|
||||||
}
|
|
|
@ -1,435 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
# Maintainer notes:
|
|
||||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
|
||||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
|
||||||
# it should be done, but GitLab has too many dependencies that it will be too
|
|
||||||
# difficult to maintain them via ebuilds.
|
|
||||||
#
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user systemd
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="d3016d86a9c0855d94e2da53b9512974a7795b8f"
|
|
||||||
|
|
||||||
GITLAB_GITALY_VERSION="0.43.1"
|
|
||||||
GITLAB_PAGES_VERSION="0.6.0"
|
|
||||||
GITLAB_SHELL_VERSION="5.9.3"
|
|
||||||
GITLAB_WORKHORSE_VERSION="3.2.0"
|
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
|
||||||
|
|
||||||
## Gems dependencies:
|
|
||||||
# charlock_holmes dev-libs/icu
|
|
||||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
|
||||||
# rugged dev-util/cmake, virtual/pkgconfig
|
|
||||||
# json dev-util/ragel
|
|
||||||
# pygments.rb python 2.7+
|
|
||||||
# execjs net-libs/nodejs, or any other JS runtime
|
|
||||||
# pg dev-db/postgresql
|
|
||||||
# mysql virtual/mysql
|
|
||||||
#
|
|
||||||
GEMS_DEPEND="
|
|
||||||
dev-libs/icu
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/re2
|
|
||||||
dev-util/ragel
|
|
||||||
>=net-libs/nodejs-4.3.0
|
|
||||||
>=sys-apps/yarn-0.17.0
|
|
||||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
|
||||||
mysql? ( virtual/mysql )
|
|
||||||
kerberos? ( virtual/krb5 )"
|
|
||||||
CDEPEND="
|
|
||||||
dev-util/cmake
|
|
||||||
virtual/pkgconfig"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${GEMS_DEPEND}
|
|
||||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
|
||||||
>=dev-vcs/git-2.8.4
|
|
||||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
|
||||||
kerberos? ( !app-crypt/heimdal )
|
|
||||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
|
||||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
|
||||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-db/redis-2.8
|
|
||||||
virtual/mta
|
|
||||||
systemd? ( sys-apps/systemd:0= )"
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/rubygems
|
|
||||||
>=dev-ruby/bundler-1.15.4"
|
|
||||||
|
|
||||||
#
|
|
||||||
# fix-sendmail-config:
|
|
||||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
|
||||||
# fix-redis-config-path:
|
|
||||||
# Point to the absolute location of redis_config.rb
|
|
||||||
#
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
|
||||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
|
||||||
"${FILESDIR}/03-${PN}-9.4.0-database.yml.patch"
|
|
||||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
|
||||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
|
||||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
MY_NAME="gitlab"
|
|
||||||
MY_USER="git" # should be same as in gitlab-shell
|
|
||||||
|
|
||||||
DEST_DIR="/opt/${MY_NAME}"
|
|
||||||
CONF_DIR="/etc/${MY_NAME}"
|
|
||||||
LOGS_DIR="/var/log/${MY_NAME}"
|
|
||||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
local satellites_path="${TEMP_DIR}/repo_satellites"
|
|
||||||
local repos_path=/var/lib/git/repositories
|
|
||||||
local shell_path=/usr/share/gitlab-shell
|
|
||||||
local run_path=/run/${MY_NAME}
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \
|
|
||||||
-e "/path: \\/home\\/git\\/repositories\\/$/ s|/home/git/repositories/|/var/lib/git/repositories/|" \
|
|
||||||
-e "/gitaly_address:/ s|/home/git/gitlab/tmp/sockets/private/|${run_path}/sockets/|" \
|
|
||||||
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
|
||||||
-e "s|/home/git/gitlab/log|${LOGS_DIR}|g" \
|
|
||||||
-e "s|/home/git/gitlab|${DEST_DIR}|g" \
|
|
||||||
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
|
||||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
|
||||||
|
|
||||||
# modify default database settings for PostgreSQL
|
|
||||||
sed -i -E \
|
|
||||||
-e 's|(username:).*|\1 gitlab|' \
|
|
||||||
-e 's|(password:).*|\1 gitlab|' \
|
|
||||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
|
||||||
config/database.yml.postgresql \
|
|
||||||
|| die "failed to filter database.yml.postgresql"
|
|
||||||
|
|
||||||
# rename config files
|
|
||||||
mv config/gitlab.yml.example config/gitlab.yml
|
|
||||||
mv config/unicorn.rb.example config/unicorn.rb
|
|
||||||
|
|
||||||
local dbconf=config/database.yml
|
|
||||||
if use postgres && ! use mysql; then
|
|
||||||
mv ${dbconf}.postgresql ${dbconf}
|
|
||||||
rm ${dbconf}.mysql
|
|
||||||
elif use mysql && ! use postgres; then
|
|
||||||
mv ${dbconf}.mysql ${dbconf}
|
|
||||||
rm ${dbconf}.postgresql
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove useless files
|
|
||||||
rm -r lib/support/{deploy,init.d}
|
|
||||||
use unicorn || rm config/unicorn.rb
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
local dest=${DEST_DIR}
|
|
||||||
local conf=${CONF_DIR}
|
|
||||||
local logs=${LOGS_DIR}
|
|
||||||
local temp=${TEMP_DIR}
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750
|
|
||||||
dodir ${logs} ${temp}
|
|
||||||
|
|
||||||
diropts -m755
|
|
||||||
dodir ${conf} ${dest}/public/uploads
|
|
||||||
|
|
||||||
dosym ${temp} ${dest}/tmp
|
|
||||||
dosym ${logs} ${dest}/log
|
|
||||||
|
|
||||||
# install configs
|
|
||||||
insinto ${conf}
|
|
||||||
doins -r config/*
|
|
||||||
dosym ${conf} ${dest}/config
|
|
||||||
|
|
||||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
|
||||||
|
|
||||||
# remove needless dirs
|
|
||||||
rm -Rf config tmp log
|
|
||||||
|
|
||||||
# install the rest files
|
|
||||||
# using cp 'cause doins is slow
|
|
||||||
cp -Rl * "${D}/${dest}"/
|
|
||||||
cp -Rl .??* "${D}/${dest}"/
|
|
||||||
|
|
||||||
# install logrotate config
|
|
||||||
dodir /etc/logrotate.d
|
|
||||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
|
||||||
${logs}/*.log {
|
|
||||||
missingok
|
|
||||||
delaycompress
|
|
||||||
compress
|
|
||||||
copytruncate
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
## Install gems via bundler ##
|
|
||||||
|
|
||||||
cd "${D}/${dest}"
|
|
||||||
|
|
||||||
local without="development test aws"
|
|
||||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
|
||||||
without+="$(use $flag || echo ' '$flag)"
|
|
||||||
done
|
|
||||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
|
||||||
|
|
||||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
|
||||||
|
|
||||||
einfo "Running bundle install ${bundle_args} ..."
|
|
||||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
|
||||||
|
|
||||||
einfo "Cleaning old gems ..."
|
|
||||||
${RUBY} /usr/bin/bundle clean
|
|
||||||
|
|
||||||
# clean gems cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
|
||||||
|
|
||||||
## RC script ##
|
|
||||||
|
|
||||||
if use systemd ; then
|
|
||||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
|
||||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
|
||||||
else
|
|
||||||
local rcscript=gitlab-9.3.5-sidekiq.init
|
|
||||||
use unicorn && rcscript=gitlab-9.3.5-unicorn.init
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
|
||||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "If this is an update from a previous version, stop your GitLab"
|
|
||||||
elog "instance and issue the following command to perform all required"
|
|
||||||
elog "migrations:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
|
||||||
elog "before running the config phase. Run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
elog "If this was a fresh install, follow these steps:"
|
|
||||||
elog
|
|
||||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
|
||||||
elog
|
|
||||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
|
||||||
elog " for \"production\" environment."
|
|
||||||
elog
|
|
||||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
|
||||||
elog " haven't done so already."
|
|
||||||
elog
|
|
||||||
if use postgres; then
|
|
||||||
elog "If you have local PostgreSQL running, just copy&run:"
|
|
||||||
elog " su postgres"
|
|
||||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
|
||||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
|
||||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
|
||||||
elog " Note: You should change your password to something more random..."
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
elog "4. Finally execute the following command to initialize the environment:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog " Note: Do not forget to start Redis server first!"
|
|
||||||
elog
|
|
||||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
|
||||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
|
||||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
|
||||||
elog "http://goo.gl/5XGRGv."
|
|
||||||
if use postgres; then
|
|
||||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
|
||||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
|
||||||
elog "super user for *every* GitLab database:"
|
|
||||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
||||||
elog "For details, see the documentation at the GitLab website."
|
|
||||||
fi
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
|
||||||
ewarn " mysql -u root -p -e \\"
|
|
||||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
|
||||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
|
||||||
ewarn
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
ewarn
|
|
||||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "Checking configuration files"
|
|
||||||
|
|
||||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
|
||||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
|
||||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
|
||||||
eerror "database settings for \"production\" environment."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
|
||||||
local git_home="$(egethome ${MY_USER})"
|
|
||||||
|
|
||||||
# configure Git global settings
|
|
||||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
|
||||||
einfo "Setting git user"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
git config --global user.email '${email_from}';
|
|
||||||
git config --global user.name 'GitLab'" \
|
|
||||||
|| die "failed to setup git name and email"
|
|
||||||
fi
|
|
||||||
|
|
||||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
|
||||||
|
|
||||||
# determine whether this is an update or a fresh install. we do this by
|
|
||||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
|
||||||
#
|
|
||||||
if [ -d "${DEST_DIR}/.git" ]; then
|
|
||||||
local update=true
|
|
||||||
else
|
|
||||||
local update=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "Please only proceed if you've read and understood the following page:"
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
|
||||||
fi
|
|
||||||
ewarn
|
|
||||||
ewarn "Press any key to continue, or abort with Ctrl+C"
|
|
||||||
read
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Initialize app ##
|
|
||||||
|
|
||||||
local RAILS_ENV="production"
|
|
||||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
|
||||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
einfo "Migrating database ..."
|
|
||||||
exec_rake db:migrate
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:compile
|
|
||||||
|
|
||||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
|
||||||
einfo "Migrating iids ..."
|
|
||||||
exec_rake migrate_iids
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
|
||||||
exec_rake gitlab:assets:clean
|
|
||||||
|
|
||||||
einfo "Cleaning cache ..."
|
|
||||||
exec_rake cache:clear
|
|
||||||
else
|
|
||||||
# create dummy git repo as workaround for
|
|
||||||
# https://github.com/bundler/bundler/issues/2039
|
|
||||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
git init
|
|
||||||
git add README.md
|
|
||||||
git commit -m 'Dummy repository'" >/dev/null
|
|
||||||
|
|
||||||
einfo "Initializing database ..."
|
|
||||||
exec_rake gitlab:setup
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:pack
|
|
||||||
exec_rake gettext:po_to_json
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
|
||||||
exec_rake gitlab:assets:compile
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn
|
|
||||||
ewarn "This configuration script runs only common migration tasks."
|
|
||||||
ewarn "Please read guides on"
|
|
||||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
|
||||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
|
||||||
ewarn "version."
|
|
||||||
fi
|
|
||||||
elog
|
|
||||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
|
||||||
elog "Gitlab now and then run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
if ! use systemd ; then
|
|
||||||
elog "You may also run"
|
|
||||||
elog " /etc/init.d/gitlab check"
|
|
||||||
elog " for convenience."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ryaml() {
|
|
||||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec_rake() {
|
|
||||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run rake $@"
|
|
||||||
}
|
|
|
@ -1,435 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
# Maintainer notes:
|
|
||||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
|
||||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
|
||||||
# it should be done, but GitLab has too many dependencies that it will be too
|
|
||||||
# difficult to maintain them via ebuilds.
|
|
||||||
#
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user systemd
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="94bb13bf583ee6b7ae859afdea9ed7f021161c23"
|
|
||||||
|
|
||||||
GITLAB_GITALY_VERSION="0.52.1"
|
|
||||||
GITLAB_PAGES_VERSION="0.6.0"
|
|
||||||
GITLAB_SHELL_VERSION="5.10.0"
|
|
||||||
GITLAB_WORKHORSE_VERSION="3.3.1"
|
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
|
||||||
|
|
||||||
## Gems dependencies:
|
|
||||||
# charlock_holmes dev-libs/icu
|
|
||||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
|
||||||
# rugged dev-util/cmake, virtual/pkgconfig
|
|
||||||
# json dev-util/ragel
|
|
||||||
# pygments.rb python 2.7+
|
|
||||||
# execjs net-libs/nodejs, or any other JS runtime
|
|
||||||
# pg dev-db/postgresql
|
|
||||||
# mysql virtual/mysql
|
|
||||||
#
|
|
||||||
GEMS_DEPEND="
|
|
||||||
dev-libs/icu
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/re2
|
|
||||||
dev-util/ragel
|
|
||||||
>=net-libs/nodejs-4.3.0
|
|
||||||
>=sys-apps/yarn-0.17.0
|
|
||||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
|
||||||
mysql? ( virtual/mysql )
|
|
||||||
kerberos? ( virtual/krb5 )"
|
|
||||||
CDEPEND="
|
|
||||||
dev-util/cmake
|
|
||||||
virtual/pkgconfig"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${GEMS_DEPEND}
|
|
||||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
|
||||||
>=dev-vcs/git-2.8.4
|
|
||||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
|
||||||
kerberos? ( !app-crypt/heimdal )
|
|
||||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
|
||||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
|
||||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-db/redis-2.8
|
|
||||||
virtual/mta
|
|
||||||
systemd? ( sys-apps/systemd:0= )"
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/rubygems
|
|
||||||
>=dev-ruby/bundler-1.15.4"
|
|
||||||
|
|
||||||
#
|
|
||||||
# fix-sendmail-config:
|
|
||||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
|
||||||
# fix-redis-config-path:
|
|
||||||
# Point to the absolute location of redis_config.rb
|
|
||||||
#
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
|
||||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
|
||||||
"${FILESDIR}/03-${PN}-10.2.8-database.yml.patch"
|
|
||||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
|
||||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
|
||||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
MY_NAME="gitlab"
|
|
||||||
MY_USER="git" # should be same as in gitlab-shell
|
|
||||||
|
|
||||||
DEST_DIR="/opt/${MY_NAME}"
|
|
||||||
CONF_DIR="/etc/${MY_NAME}"
|
|
||||||
LOGS_DIR="/var/log/${MY_NAME}"
|
|
||||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
local satellites_path="${TEMP_DIR}/repo_satellites"
|
|
||||||
local repos_path=/var/lib/git/repositories
|
|
||||||
local shell_path=/usr/share/gitlab-shell
|
|
||||||
local run_path=/run/${MY_NAME}
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \
|
|
||||||
-e "/path: \\/home\\/git\\/repositories\\/$/ s|/home/git/repositories/|/var/lib/git/repositories/|" \
|
|
||||||
-e "/gitaly_address:/ s|/home/git/gitlab/tmp/sockets/private/|${run_path}/sockets/|" \
|
|
||||||
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
|
||||||
-e "s|/home/git/gitlab/log|${LOGS_DIR}|g" \
|
|
||||||
-e "s|/home/git/gitlab|${DEST_DIR}|g" \
|
|
||||||
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
|
||||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
|
||||||
|
|
||||||
# modify default database settings for PostgreSQL
|
|
||||||
sed -i -E \
|
|
||||||
-e 's|(username:).*|\1 gitlab|' \
|
|
||||||
-e 's|(password:).*|\1 gitlab|' \
|
|
||||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
|
||||||
config/database.yml.postgresql \
|
|
||||||
|| die "failed to filter database.yml.postgresql"
|
|
||||||
|
|
||||||
# rename config files
|
|
||||||
mv config/gitlab.yml.example config/gitlab.yml
|
|
||||||
mv config/unicorn.rb.example config/unicorn.rb
|
|
||||||
|
|
||||||
local dbconf=config/database.yml
|
|
||||||
if use postgres && ! use mysql; then
|
|
||||||
mv ${dbconf}.postgresql ${dbconf}
|
|
||||||
rm ${dbconf}.mysql
|
|
||||||
elif use mysql && ! use postgres; then
|
|
||||||
mv ${dbconf}.mysql ${dbconf}
|
|
||||||
rm ${dbconf}.postgresql
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove useless files
|
|
||||||
rm -r lib/support/{deploy,init.d}
|
|
||||||
use unicorn || rm config/unicorn.rb
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
local dest=${DEST_DIR}
|
|
||||||
local conf=${CONF_DIR}
|
|
||||||
local logs=${LOGS_DIR}
|
|
||||||
local temp=${TEMP_DIR}
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750
|
|
||||||
dodir ${logs} ${temp}
|
|
||||||
|
|
||||||
diropts -m755
|
|
||||||
dodir ${conf} ${dest}/public/uploads
|
|
||||||
|
|
||||||
dosym ${temp} ${dest}/tmp
|
|
||||||
dosym ${logs} ${dest}/log
|
|
||||||
|
|
||||||
# install configs
|
|
||||||
insinto ${conf}
|
|
||||||
doins -r config/*
|
|
||||||
dosym ${conf} ${dest}/config
|
|
||||||
|
|
||||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
|
||||||
|
|
||||||
# remove needless dirs
|
|
||||||
rm -Rf config tmp log
|
|
||||||
|
|
||||||
# install the rest files
|
|
||||||
# using cp 'cause doins is slow
|
|
||||||
cp -Rl * "${D}/${dest}"/
|
|
||||||
cp -Rl .??* "${D}/${dest}"/
|
|
||||||
|
|
||||||
# install logrotate config
|
|
||||||
dodir /etc/logrotate.d
|
|
||||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
|
||||||
${logs}/*.log {
|
|
||||||
missingok
|
|
||||||
delaycompress
|
|
||||||
compress
|
|
||||||
copytruncate
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
## Install gems via bundler ##
|
|
||||||
|
|
||||||
cd "${D}/${dest}"
|
|
||||||
|
|
||||||
local without="development test aws"
|
|
||||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
|
||||||
without+="$(use $flag || echo ' '$flag)"
|
|
||||||
done
|
|
||||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
|
||||||
|
|
||||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
|
||||||
|
|
||||||
einfo "Running bundle install ${bundle_args} ..."
|
|
||||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
|
||||||
|
|
||||||
einfo "Cleaning old gems ..."
|
|
||||||
${RUBY} /usr/bin/bundle clean
|
|
||||||
|
|
||||||
# clean gems cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
|
||||||
|
|
||||||
## RC script ##
|
|
||||||
|
|
||||||
if use systemd ; then
|
|
||||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
|
||||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
|
||||||
else
|
|
||||||
local rcscript=gitlab-9.3.5-sidekiq.init
|
|
||||||
use unicorn && rcscript=gitlab-9.3.5-unicorn.init
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
|
||||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "If this is an update from a previous version, stop your GitLab"
|
|
||||||
elog "instance and issue the following command to perform all required"
|
|
||||||
elog "migrations:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
|
||||||
elog "before running the config phase. Run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
elog "If this was a fresh install, follow these steps:"
|
|
||||||
elog
|
|
||||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
|
||||||
elog
|
|
||||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
|
||||||
elog " for \"production\" environment."
|
|
||||||
elog
|
|
||||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
|
||||||
elog " haven't done so already."
|
|
||||||
elog
|
|
||||||
if use postgres; then
|
|
||||||
elog "If you have local PostgreSQL running, just copy&run:"
|
|
||||||
elog " su postgres"
|
|
||||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
|
||||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
|
||||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
|
||||||
elog " Note: You should change your password to something more random..."
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
elog "4. Finally execute the following command to initialize the environment:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog " Note: Do not forget to start Redis server first!"
|
|
||||||
elog
|
|
||||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
|
||||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
|
||||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
|
||||||
elog "http://goo.gl/5XGRGv."
|
|
||||||
if use postgres; then
|
|
||||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
|
||||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
|
||||||
elog "super user for *every* GitLab database:"
|
|
||||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
||||||
elog "For details, see the documentation at the GitLab website."
|
|
||||||
fi
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
|
||||||
ewarn " mysql -u root -p -e \\"
|
|
||||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
|
||||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
|
||||||
ewarn
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
ewarn
|
|
||||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "Checking configuration files"
|
|
||||||
|
|
||||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
|
||||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
|
||||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
|
||||||
eerror "database settings for \"production\" environment."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
|
||||||
local git_home="$(egethome ${MY_USER})"
|
|
||||||
|
|
||||||
# configure Git global settings
|
|
||||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
|
||||||
einfo "Setting git user"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
git config --global user.email '${email_from}';
|
|
||||||
git config --global user.name 'GitLab'" \
|
|
||||||
|| die "failed to setup git name and email"
|
|
||||||
fi
|
|
||||||
|
|
||||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
|
||||||
|
|
||||||
# determine whether this is an update or a fresh install. we do this by
|
|
||||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
|
||||||
#
|
|
||||||
if [ -d "${DEST_DIR}/.git" ]; then
|
|
||||||
local update=true
|
|
||||||
else
|
|
||||||
local update=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "Please only proceed if you've read and understood the following page:"
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
|
||||||
fi
|
|
||||||
ewarn
|
|
||||||
ewarn "Press any key to continue, or abort with Ctrl+C"
|
|
||||||
read
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Initialize app ##
|
|
||||||
|
|
||||||
local RAILS_ENV="production"
|
|
||||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
|
||||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
einfo "Migrating database ..."
|
|
||||||
exec_rake db:migrate
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:compile
|
|
||||||
|
|
||||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
|
||||||
einfo "Migrating iids ..."
|
|
||||||
exec_rake migrate_iids
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
|
||||||
exec_rake gitlab:assets:clean
|
|
||||||
|
|
||||||
einfo "Cleaning cache ..."
|
|
||||||
exec_rake cache:clear
|
|
||||||
else
|
|
||||||
# create dummy git repo as workaround for
|
|
||||||
# https://github.com/bundler/bundler/issues/2039
|
|
||||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
git init
|
|
||||||
git add README.md
|
|
||||||
git commit -m 'Dummy repository'" >/dev/null
|
|
||||||
|
|
||||||
einfo "Initializing database ..."
|
|
||||||
exec_rake gitlab:setup
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:pack
|
|
||||||
exec_rake gettext:po_to_json
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
|
||||||
exec_rake gitlab:assets:compile
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn
|
|
||||||
ewarn "This configuration script runs only common migration tasks."
|
|
||||||
ewarn "Please read guides on"
|
|
||||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
|
||||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
|
||||||
ewarn "version."
|
|
||||||
fi
|
|
||||||
elog
|
|
||||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
|
||||||
elog "Gitlab now and then run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
if ! use systemd ; then
|
|
||||||
elog "You may also run"
|
|
||||||
elog " /etc/init.d/gitlab check"
|
|
||||||
elog " for convenience."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ryaml() {
|
|
||||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec_rake() {
|
|
||||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run rake $@"
|
|
||||||
}
|
|
|
@ -1,442 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
# Maintainer notes:
|
|
||||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
|
||||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
|
||||||
# it should be done, but GitLab has too many dependencies that it will be too
|
|
||||||
# difficult to maintain them via ebuilds.
|
|
||||||
#
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user systemd
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="586669a02ee7a18635d8e590117ac9e2bd9b62f4"
|
|
||||||
|
|
||||||
GITLAB_GITALY_VERSION="0.59.2"
|
|
||||||
GITLAB_PAGES_VERSION="0.6.0"
|
|
||||||
GITLAB_SHELL_VERSION="5.10.2"
|
|
||||||
GITLAB_WORKHORSE_VERSION="3.3.1"
|
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
|
||||||
|
|
||||||
## Gems dependencies:
|
|
||||||
# charlock_holmes dev-libs/icu
|
|
||||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
|
||||||
# rugged dev-util/cmake, virtual/pkgconfig
|
|
||||||
# json dev-util/ragel
|
|
||||||
# pygments.rb python 2.7+
|
|
||||||
# execjs net-libs/nodejs, or any other JS runtime
|
|
||||||
# pg dev-db/postgresql
|
|
||||||
# mysql virtual/mysql
|
|
||||||
#
|
|
||||||
GEMS_DEPEND="
|
|
||||||
dev-libs/icu
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/re2
|
|
||||||
dev-util/ragel
|
|
||||||
>=net-libs/nodejs-4.3.0
|
|
||||||
>=sys-apps/yarn-0.17.0
|
|
||||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
|
||||||
mysql? ( virtual/mysql )
|
|
||||||
kerberos? ( virtual/krb5 )"
|
|
||||||
CDEPEND="
|
|
||||||
dev-util/cmake
|
|
||||||
virtual/pkgconfig"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${GEMS_DEPEND}
|
|
||||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
|
||||||
>=dev-vcs/git-2.8.4
|
|
||||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
|
||||||
kerberos? ( !app-crypt/heimdal )
|
|
||||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
|
||||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
|
||||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-db/redis-2.8
|
|
||||||
virtual/mta
|
|
||||||
systemd? ( sys-apps/systemd:0= )"
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/rubygems
|
|
||||||
>=dev-ruby/bundler-1.15.4"
|
|
||||||
|
|
||||||
#
|
|
||||||
# fix-sendmail-config:
|
|
||||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
|
||||||
# fix-redis-config-path:
|
|
||||||
# Point to the absolute location of redis_config.rb
|
|
||||||
#
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
|
||||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
|
||||||
"${FILESDIR}/03-${PN}-10.2.8-database.yml.patch"
|
|
||||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
|
||||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
|
||||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
MY_NAME="gitlab"
|
|
||||||
MY_USER="git" # should be same as in gitlab-shell
|
|
||||||
|
|
||||||
DEST_DIR="/opt/${MY_NAME}"
|
|
||||||
CONF_DIR="/etc/${MY_NAME}"
|
|
||||||
LOGS_DIR="/var/log/${MY_NAME}"
|
|
||||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
local satellites_path="${TEMP_DIR}/repo_satellites"
|
|
||||||
local repos_path=/var/lib/git/repositories
|
|
||||||
local shell_path=/usr/share/gitlab-shell
|
|
||||||
local run_path=/run/${MY_NAME}
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \
|
|
||||||
-e "/path: \\/home\\/git\\/repositories\\/$/ s|/home/git/repositories/|/var/lib/git/repositories/|" \
|
|
||||||
-e "/gitaly_address:/ s|/home/git/gitlab/tmp/sockets/private/|${run_path}/sockets/|" \
|
|
||||||
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
|
||||||
-e "s|/home/git/gitlab/log|${LOGS_DIR}|g" \
|
|
||||||
-e "s|/home/git/gitlab|${DEST_DIR}|g" \
|
|
||||||
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
|
||||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
|
||||||
|
|
||||||
# modify default database settings for PostgreSQL
|
|
||||||
sed -i -E \
|
|
||||||
-e 's|(username:).*|\1 gitlab|' \
|
|
||||||
-e 's|(password:).*|\1 gitlab|' \
|
|
||||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
|
||||||
config/database.yml.postgresql \
|
|
||||||
|| die "failed to filter database.yml.postgresql"
|
|
||||||
|
|
||||||
# rename config files
|
|
||||||
mv config/gitlab.yml.example config/gitlab.yml
|
|
||||||
mv config/unicorn.rb.example config/unicorn.rb
|
|
||||||
|
|
||||||
local dbconf=config/database.yml
|
|
||||||
if use postgres && ! use mysql; then
|
|
||||||
mv ${dbconf}.postgresql ${dbconf}
|
|
||||||
rm ${dbconf}.mysql
|
|
||||||
elif use mysql && ! use postgres; then
|
|
||||||
mv ${dbconf}.mysql ${dbconf}
|
|
||||||
rm ${dbconf}.postgresql
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove useless files
|
|
||||||
rm -r lib/support/{deploy,init.d}
|
|
||||||
use unicorn || rm config/unicorn.rb
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
local dest=${DEST_DIR}
|
|
||||||
local conf=${CONF_DIR}
|
|
||||||
local logs=${LOGS_DIR}
|
|
||||||
local temp=${TEMP_DIR}
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750
|
|
||||||
dodir ${logs} ${temp}
|
|
||||||
|
|
||||||
diropts -m755
|
|
||||||
dodir ${conf} ${dest}/public/uploads
|
|
||||||
|
|
||||||
dosym ${temp} ${dest}/tmp
|
|
||||||
dosym ${logs} ${dest}/log
|
|
||||||
|
|
||||||
# install configs
|
|
||||||
insinto ${conf}
|
|
||||||
doins -r config/*
|
|
||||||
dosym ${conf} ${dest}/config
|
|
||||||
|
|
||||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
|
||||||
|
|
||||||
# remove needless dirs
|
|
||||||
rm -Rf config tmp log
|
|
||||||
|
|
||||||
# install the rest files
|
|
||||||
# using cp 'cause doins is slow
|
|
||||||
cp -Rl * "${D}/${dest}"/
|
|
||||||
cp -Rl .??* "${D}/${dest}"/
|
|
||||||
|
|
||||||
# install logrotate config
|
|
||||||
dodir /etc/logrotate.d
|
|
||||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
|
||||||
${logs}/*.log {
|
|
||||||
missingok
|
|
||||||
delaycompress
|
|
||||||
compress
|
|
||||||
copytruncate
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
## Install gems via bundler ##
|
|
||||||
|
|
||||||
cd "${D}/${dest}"
|
|
||||||
|
|
||||||
local without="development test aws"
|
|
||||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
|
||||||
without+="$(use $flag || echo ' '$flag)"
|
|
||||||
done
|
|
||||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
|
||||||
|
|
||||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
|
||||||
|
|
||||||
einfo "Running bundle install ${bundle_args} ..."
|
|
||||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
|
||||||
|
|
||||||
einfo "Cleaning old gems ..."
|
|
||||||
${RUBY} /usr/bin/bundle clean
|
|
||||||
|
|
||||||
# clean gems cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
|
||||||
|
|
||||||
## RC script ##
|
|
||||||
|
|
||||||
if use systemd ; then
|
|
||||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
|
||||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
|
||||||
else
|
|
||||||
local rcscript=gitlab-9.3.5-sidekiq.init
|
|
||||||
use unicorn && rcscript=gitlab-9.3.5-unicorn.init
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
|
||||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "If this is an update from a previous version, stop your GitLab"
|
|
||||||
elog "instance and issue the following command to perform all required"
|
|
||||||
elog "migrations:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
|
||||||
elog "before running the config phase. Run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
elog "If this was a fresh install, follow these steps:"
|
|
||||||
elog
|
|
||||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
|
||||||
elog
|
|
||||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
|
||||||
elog " for \"production\" environment."
|
|
||||||
elog
|
|
||||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
|
||||||
elog " haven't done so already."
|
|
||||||
elog
|
|
||||||
if use postgres; then
|
|
||||||
elog "If you have local PostgreSQL running, just copy&run:"
|
|
||||||
elog " su postgres"
|
|
||||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
|
||||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
|
||||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
|
||||||
elog " Note: You should change your password to something more random..."
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
elog "4. Finally execute the following command to initialize the environment:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog " Note: Do not forget to start Redis server first!"
|
|
||||||
elog
|
|
||||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
|
||||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
|
||||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
|
||||||
elog "http://goo.gl/5XGRGv."
|
|
||||||
if use postgres; then
|
|
||||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
|
||||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
|
||||||
elog "super user for *every* GitLab database:"
|
|
||||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
||||||
elog "For details, see the documentation at the GitLab website."
|
|
||||||
fi
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
|
||||||
ewarn " mysql -u root -p -e \\"
|
|
||||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
|
||||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
|
||||||
ewarn
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
ewarn
|
|
||||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "Checking configuration files"
|
|
||||||
|
|
||||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
|
||||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
|
||||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
|
||||||
eerror "database settings for \"production\" environment."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
|
||||||
local git_home="$(egethome ${MY_USER})"
|
|
||||||
|
|
||||||
# configure Git global settings
|
|
||||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
|
||||||
einfo "Setting git user"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
git config --global user.email '${email_from}';
|
|
||||||
git config --global user.name 'GitLab'" \
|
|
||||||
|| die "failed to setup git name and email"
|
|
||||||
fi
|
|
||||||
|
|
||||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
|
||||||
|
|
||||||
# determine whether this is an update or a fresh install. we do this by
|
|
||||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
|
||||||
#
|
|
||||||
if [ -d "${DEST_DIR}/.git" ]; then
|
|
||||||
local update=true
|
|
||||||
else
|
|
||||||
local update=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "Please only proceed if you've read and understood the following page:"
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
|
||||||
fi
|
|
||||||
ewarn
|
|
||||||
ewarn "Press any key to continue, or abort with Ctrl+C"
|
|
||||||
read
|
|
||||||
fi
|
|
||||||
|
|
||||||
ewarn "Now is a good time to create a backup of your Gitlab installation, just in case."
|
|
||||||
ewarn "To do so, abort this configuration with Ctrl+C and type the following commands:"
|
|
||||||
ewarn " cd /opt/gitlab"
|
|
||||||
ewarn " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
ewarn "Then, re-run the configuration step. If you want to skip the backup, press any key now."
|
|
||||||
read
|
|
||||||
|
|
||||||
## Initialize app ##
|
|
||||||
|
|
||||||
local RAILS_ENV="production"
|
|
||||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
|
||||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
einfo "Migrating database ..."
|
|
||||||
exec_rake db:migrate
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:compile
|
|
||||||
|
|
||||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
|
||||||
einfo "Migrating iids ..."
|
|
||||||
exec_rake migrate_iids
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
|
||||||
exec_rake gitlab:assets:clean
|
|
||||||
|
|
||||||
einfo "Cleaning cache ..."
|
|
||||||
exec_rake cache:clear
|
|
||||||
else
|
|
||||||
# create dummy git repo as workaround for
|
|
||||||
# https://github.com/bundler/bundler/issues/2039
|
|
||||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
git init
|
|
||||||
git add README.md
|
|
||||||
git commit -m 'Dummy repository'" >/dev/null
|
|
||||||
|
|
||||||
einfo "Initializing database ..."
|
|
||||||
exec_rake gitlab:setup
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:pack
|
|
||||||
exec_rake gettext:po_to_json
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
|
||||||
exec_rake gitlab:assets:compile
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn
|
|
||||||
ewarn "This configuration script runs only common migration tasks."
|
|
||||||
ewarn "Please read guides on"
|
|
||||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
|
||||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
|
||||||
ewarn "version."
|
|
||||||
fi
|
|
||||||
elog
|
|
||||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
|
||||||
elog "Gitlab now and then run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
if ! use systemd ; then
|
|
||||||
elog "You may also run"
|
|
||||||
elog " /etc/init.d/gitlab check"
|
|
||||||
elog " for convenience."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ryaml() {
|
|
||||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec_rake() {
|
|
||||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run rake $@"
|
|
||||||
}
|
|
|
@ -1,430 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
# Maintainer notes:
|
|
||||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
|
||||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
|
||||||
# it should be done, but GitLab has too many dependencies that it will be too
|
|
||||||
# difficult to maintain them via ebuilds.
|
|
||||||
#
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/${PN}.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
EGIT_CHECKOUT_DIR="${WORKDIR}/all"
|
|
||||||
|
|
||||||
inherit eutils git-r3 ruby-ng user systemd
|
|
||||||
|
|
||||||
GITLAB_GITALY_VERSION="0.66.0"
|
|
||||||
GITLAB_PAGES_VERSION="0.6.1"
|
|
||||||
GITLAB_SHELL_VERSION="5.11.0"
|
|
||||||
GITLAB_WORKHORSE_VERSION="3.3.1"
|
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
|
||||||
|
|
||||||
## Gems dependencies:
|
|
||||||
# charlock_holmes dev-libs/icu
|
|
||||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
|
||||||
# rugged dev-util/cmake, virtual/pkgconfig
|
|
||||||
# json dev-util/ragel
|
|
||||||
# pygments.rb python 2.7+
|
|
||||||
# execjs net-libs/nodejs, or any other JS runtime
|
|
||||||
# pg dev-db/postgresql
|
|
||||||
# mysql virtual/mysql
|
|
||||||
#
|
|
||||||
GEMS_DEPEND="
|
|
||||||
dev-libs/icu
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/re2
|
|
||||||
dev-util/ragel
|
|
||||||
>=net-libs/nodejs-6.0.0
|
|
||||||
>=sys-apps/yarn-0.17.0
|
|
||||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
|
||||||
mysql? ( virtual/mysql )
|
|
||||||
kerberos? ( virtual/krb5 )"
|
|
||||||
CDEPEND="
|
|
||||||
dev-util/cmake
|
|
||||||
virtual/pkgconfig"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${GEMS_DEPEND}
|
|
||||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
|
||||||
>=dev-vcs/git-2.8.4
|
|
||||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
|
||||||
kerberos? ( !app-crypt/heimdal )
|
|
||||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
|
||||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
|
||||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-db/redis-2.8
|
|
||||||
virtual/mta
|
|
||||||
systemd? ( sys-apps/systemd:0= )"
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/rubygems
|
|
||||||
>=dev-ruby/bundler-1.15.4"
|
|
||||||
|
|
||||||
#
|
|
||||||
# fix-sendmail-config:
|
|
||||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
|
||||||
# fix-redis-config-path:
|
|
||||||
# Point to the absolute location of redis_config.rb
|
|
||||||
#
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
|
||||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
|
||||||
"${FILESDIR}/03-${PN}-10.2.8-database.yml.patch"
|
|
||||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
|
||||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
|
||||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
|
||||||
"${FILESDIR}/08-${PN}-10.4.4-general-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
MY_NAME="gitlab"
|
|
||||||
MY_USER="git" # should be same as in gitlab-shell
|
|
||||||
|
|
||||||
DEST_DIR="/opt/${MY_NAME}"
|
|
||||||
CONF_DIR="/etc/${MY_NAME}"
|
|
||||||
LOGS_DIR="/var/log/${MY_NAME}"
|
|
||||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
|
||||||
|
|
||||||
all_ruby_unpack() {
|
|
||||||
git-r3_fetch
|
|
||||||
git-r3_checkout
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
sed -i \
|
|
||||||
-e "s|/home/git/gitlab/tmp|/run/${MY_NAME}|g" \
|
|
||||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
|
||||||
|
|
||||||
# modify default database settings for PostgreSQL
|
|
||||||
sed -i -E \
|
|
||||||
-e 's|(username:).*|\1 gitlab|' \
|
|
||||||
-e 's|(password:).*|\1 gitlab|' \
|
|
||||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
|
||||||
config/database.yml.postgresql \
|
|
||||||
|| die "failed to filter database.yml.postgresql"
|
|
||||||
|
|
||||||
# rename config files
|
|
||||||
mv config/gitlab.yml.example config/gitlab.yml
|
|
||||||
mv config/unicorn.rb.example config/unicorn.rb
|
|
||||||
|
|
||||||
local dbconf=config/database.yml
|
|
||||||
if use postgres && ! use mysql; then
|
|
||||||
mv ${dbconf}.postgresql ${dbconf}
|
|
||||||
rm ${dbconf}.mysql
|
|
||||||
elif use mysql && ! use postgres; then
|
|
||||||
mv ${dbconf}.mysql ${dbconf}
|
|
||||||
rm ${dbconf}.postgresql
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove useless files
|
|
||||||
rm -r lib/support/{deploy,init.d}
|
|
||||||
use unicorn || rm config/unicorn.rb
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
local dest=${DEST_DIR}
|
|
||||||
local conf=${CONF_DIR}
|
|
||||||
local logs=${LOGS_DIR}
|
|
||||||
local temp=${TEMP_DIR}
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750
|
|
||||||
dodir ${logs} ${temp}
|
|
||||||
|
|
||||||
diropts -m755
|
|
||||||
dodir ${conf} ${dest}/public/uploads
|
|
||||||
|
|
||||||
dosym ${temp} ${dest}/tmp
|
|
||||||
dosym ${logs} ${dest}/log
|
|
||||||
|
|
||||||
# install configs
|
|
||||||
insinto ${conf}
|
|
||||||
doins -r config/*
|
|
||||||
dosym ${conf} ${dest}/config
|
|
||||||
|
|
||||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
|
||||||
|
|
||||||
# remove needless dirs
|
|
||||||
rm -Rf config tmp log
|
|
||||||
|
|
||||||
# install the rest files
|
|
||||||
# using cp 'cause doins is slow
|
|
||||||
cp -Rl * "${D}/${dest}"/
|
|
||||||
cp -Rl .??* "${D}/${dest}"/
|
|
||||||
|
|
||||||
# install logrotate config
|
|
||||||
dodir /etc/logrotate.d
|
|
||||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
|
||||||
${logs}/*.log {
|
|
||||||
missingok
|
|
||||||
delaycompress
|
|
||||||
compress
|
|
||||||
copytruncate
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
## Install gems via bundler ##
|
|
||||||
|
|
||||||
cd "${D}/${dest}"
|
|
||||||
|
|
||||||
local without="development test aws"
|
|
||||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
|
||||||
without+="$(use $flag || echo ' '$flag)"
|
|
||||||
done
|
|
||||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
|
||||||
|
|
||||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
|
||||||
|
|
||||||
einfo "Running bundle install ${bundle_args} ..."
|
|
||||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
|
||||||
|
|
||||||
einfo "Cleaning old gems ..."
|
|
||||||
${RUBY} /usr/bin/bundle clean
|
|
||||||
|
|
||||||
# clean gems cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
|
||||||
|
|
||||||
## RC script ##
|
|
||||||
|
|
||||||
if use systemd ; then
|
|
||||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
|
||||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
|
||||||
else
|
|
||||||
local rcscript=gitlab-10.4.4-sidekiq.init
|
|
||||||
use unicorn && rcscript=gitlab-10.4.4-unicorn.init
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
|
||||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "If this is an update from a previous version, stop your GitLab"
|
|
||||||
elog "instance and issue the following command to perform all required"
|
|
||||||
elog "migrations:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
|
||||||
elog "before running the config phase. Run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
elog "If you're using OpenRC, you can use the following command:"
|
|
||||||
elog
|
|
||||||
elog " /etc/init.d/gitlab backup"
|
|
||||||
elog
|
|
||||||
elog "If this was a fresh install, follow these steps:"
|
|
||||||
elog
|
|
||||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
|
||||||
elog
|
|
||||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
|
||||||
elog " for \"production\" environment."
|
|
||||||
elog
|
|
||||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
|
||||||
elog " haven't done so already."
|
|
||||||
elog
|
|
||||||
if use postgres; then
|
|
||||||
elog "If you have local PostgreSQL running, just copy&run:"
|
|
||||||
elog " su postgres"
|
|
||||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
|
||||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
|
||||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
|
||||||
elog " Note: You should change your password to something more random..."
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
elog "4. Finally execute the following command to initialize the environment:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog " Note: Do not forget to start Redis server first!"
|
|
||||||
elog
|
|
||||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
|
||||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
|
||||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
|
||||||
elog "http://goo.gl/5XGRGv."
|
|
||||||
if use postgres; then
|
|
||||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
|
||||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
|
||||||
elog "super user for *every* GitLab database:"
|
|
||||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
||||||
elog "For details, see the documentation at the GitLab website."
|
|
||||||
fi
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
|
||||||
ewarn " mysql -u root -p -e \\"
|
|
||||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
|
||||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
|
||||||
ewarn
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
ewarn
|
|
||||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "Checking configuration files"
|
|
||||||
|
|
||||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
|
||||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
|
||||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
|
||||||
eerror "database settings for \"production\" environment."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
|
||||||
local git_home="$(egethome ${MY_USER})"
|
|
||||||
|
|
||||||
# configure Git global settings
|
|
||||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
|
||||||
einfo "Setting git user"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
git config --global user.email '${email_from}';
|
|
||||||
git config --global user.name 'GitLab'" \
|
|
||||||
|| die "failed to setup git name and email"
|
|
||||||
fi
|
|
||||||
|
|
||||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
|
||||||
|
|
||||||
# determine whether this is an update or a fresh install. we do this by
|
|
||||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
|
||||||
#
|
|
||||||
if [ -d "${DEST_DIR}/.git" ]; then
|
|
||||||
local update=true
|
|
||||||
else
|
|
||||||
local update=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "Please only proceed if you've read and understood the following page:"
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
|
||||||
fi
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
ewarn "Now is a good time to create a backup of your Gitlab installation, just in case."
|
|
||||||
ewarn "To do so, abort this configuration with Ctrl+C and type the following commands:"
|
|
||||||
ewarn " cd /opt/gitlab"
|
|
||||||
ewarn " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
ewarn
|
|
||||||
ewarn "Press Ctrl+C to abort now or any key to continue."
|
|
||||||
read
|
|
||||||
|
|
||||||
## Initialize app ##
|
|
||||||
|
|
||||||
local RAILS_ENV="production"
|
|
||||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
|
||||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
einfo "Migrating database ..."
|
|
||||||
exec_rake db:migrate
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:compile
|
|
||||||
|
|
||||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
|
||||||
einfo "Migrating iids ..."
|
|
||||||
exec_rake migrate_iids
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
|
||||||
exec_rake gitlab:assets:clean
|
|
||||||
|
|
||||||
einfo "Cleaning cache ..."
|
|
||||||
exec_rake cache:clear
|
|
||||||
else
|
|
||||||
# create dummy git repo as workaround for
|
|
||||||
# https://github.com/bundler/bundler/issues/2039
|
|
||||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
git init
|
|
||||||
git add README.md
|
|
||||||
git commit -m 'Dummy repository'" >/dev/null
|
|
||||||
|
|
||||||
einfo "Initializing database ..."
|
|
||||||
exec_rake gitlab:setup
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:pack
|
|
||||||
exec_rake gettext:po_to_json
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
|
||||||
exec_rake gitlab:assets:compile
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn
|
|
||||||
ewarn "This configuration script runs only common migration tasks."
|
|
||||||
ewarn "Please read guides on"
|
|
||||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
|
||||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
|
||||||
ewarn "version."
|
|
||||||
fi
|
|
||||||
elog
|
|
||||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
|
||||||
elog "Gitlab now and then run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
if ! use systemd ; then
|
|
||||||
elog "You may also run"
|
|
||||||
elog " /etc/init.d/gitlab check"
|
|
||||||
elog " for convenience."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ryaml() {
|
|
||||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec_rake() {
|
|
||||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run rake $@"
|
|
||||||
}
|
|
|
@ -1,430 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
# Maintainer notes:
|
|
||||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
|
||||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
|
||||||
# it should be done, but GitLab has too many dependencies that it will be too
|
|
||||||
# difficult to maintain them via ebuilds.
|
|
||||||
#
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/${PN}.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
EGIT_CHECKOUT_DIR="${WORKDIR}/all"
|
|
||||||
|
|
||||||
inherit eutils git-r3 ruby-ng user systemd
|
|
||||||
|
|
||||||
GITLAB_GITALY_VERSION="0.66.0"
|
|
||||||
GITLAB_PAGES_VERSION="0.6.1"
|
|
||||||
GITLAB_SHELL_VERSION="5.11.0"
|
|
||||||
GITLAB_WORKHORSE_VERSION="3.3.1"
|
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
|
||||||
|
|
||||||
## Gems dependencies:
|
|
||||||
# charlock_holmes dev-libs/icu
|
|
||||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
|
||||||
# rugged dev-util/cmake, virtual/pkgconfig
|
|
||||||
# json dev-util/ragel
|
|
||||||
# pygments.rb python 2.7+
|
|
||||||
# execjs net-libs/nodejs, or any other JS runtime
|
|
||||||
# pg dev-db/postgresql
|
|
||||||
# mysql virtual/mysql
|
|
||||||
#
|
|
||||||
GEMS_DEPEND="
|
|
||||||
dev-libs/icu
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/re2
|
|
||||||
dev-util/ragel
|
|
||||||
>=net-libs/nodejs-6.0.0
|
|
||||||
>=sys-apps/yarn-0.17.0
|
|
||||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
|
||||||
mysql? ( virtual/mysql )
|
|
||||||
kerberos? ( virtual/krb5 )"
|
|
||||||
CDEPEND="
|
|
||||||
dev-util/cmake
|
|
||||||
virtual/pkgconfig"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${GEMS_DEPEND}
|
|
||||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
|
||||||
>=dev-vcs/git-2.8.4
|
|
||||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
|
||||||
kerberos? ( !app-crypt/heimdal )
|
|
||||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
|
||||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
|
||||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-db/redis-2.8
|
|
||||||
virtual/mta
|
|
||||||
systemd? ( sys-apps/systemd:0= )"
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/rubygems
|
|
||||||
>=dev-ruby/bundler-1.15.4"
|
|
||||||
|
|
||||||
#
|
|
||||||
# fix-sendmail-config:
|
|
||||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
|
||||||
# fix-redis-config-path:
|
|
||||||
# Point to the absolute location of redis_config.rb
|
|
||||||
#
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
|
||||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
|
||||||
"${FILESDIR}/03-${PN}-10.2.8-database.yml.patch"
|
|
||||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
|
||||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
|
||||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
|
||||||
"${FILESDIR}/08-${PN}-10.4.4-general-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
MY_NAME="gitlab"
|
|
||||||
MY_USER="git" # should be same as in gitlab-shell
|
|
||||||
|
|
||||||
DEST_DIR="/opt/${MY_NAME}"
|
|
||||||
CONF_DIR="/etc/${MY_NAME}"
|
|
||||||
LOGS_DIR="/var/log/${MY_NAME}"
|
|
||||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
|
||||||
|
|
||||||
all_ruby_unpack() {
|
|
||||||
git-r3_fetch
|
|
||||||
git-r3_checkout
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
sed -i \
|
|
||||||
-e "s|/home/git/gitlab/tmp|/run/${MY_NAME}|g" \
|
|
||||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
|
||||||
|
|
||||||
# modify default database settings for PostgreSQL
|
|
||||||
sed -i -E \
|
|
||||||
-e 's|(username:).*|\1 gitlab|' \
|
|
||||||
-e 's|(password:).*|\1 gitlab|' \
|
|
||||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
|
||||||
config/database.yml.postgresql \
|
|
||||||
|| die "failed to filter database.yml.postgresql"
|
|
||||||
|
|
||||||
# rename config files
|
|
||||||
mv config/gitlab.yml.example config/gitlab.yml
|
|
||||||
mv config/unicorn.rb.example config/unicorn.rb
|
|
||||||
|
|
||||||
local dbconf=config/database.yml
|
|
||||||
if use postgres && ! use mysql; then
|
|
||||||
mv ${dbconf}.postgresql ${dbconf}
|
|
||||||
rm ${dbconf}.mysql
|
|
||||||
elif use mysql && ! use postgres; then
|
|
||||||
mv ${dbconf}.mysql ${dbconf}
|
|
||||||
rm ${dbconf}.postgresql
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove useless files
|
|
||||||
rm -r lib/support/{deploy,init.d}
|
|
||||||
use unicorn || rm config/unicorn.rb
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
local dest=${DEST_DIR}
|
|
||||||
local conf=${CONF_DIR}
|
|
||||||
local logs=${LOGS_DIR}
|
|
||||||
local temp=${TEMP_DIR}
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750
|
|
||||||
dodir ${logs} ${temp}
|
|
||||||
|
|
||||||
diropts -m755
|
|
||||||
dodir ${conf} ${dest}/public/uploads
|
|
||||||
|
|
||||||
dosym ${temp} ${dest}/tmp
|
|
||||||
dosym ${logs} ${dest}/log
|
|
||||||
|
|
||||||
# install configs
|
|
||||||
insinto ${conf}
|
|
||||||
doins -r config/*
|
|
||||||
dosym ${conf} ${dest}/config
|
|
||||||
|
|
||||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
|
||||||
|
|
||||||
# remove needless dirs
|
|
||||||
rm -Rf config tmp log
|
|
||||||
|
|
||||||
# install the rest files
|
|
||||||
# using cp 'cause doins is slow
|
|
||||||
cp -Rl * "${D}/${dest}"/
|
|
||||||
cp -Rl .??* "${D}/${dest}"/
|
|
||||||
|
|
||||||
# install logrotate config
|
|
||||||
dodir /etc/logrotate.d
|
|
||||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
|
||||||
${logs}/*.log {
|
|
||||||
missingok
|
|
||||||
delaycompress
|
|
||||||
compress
|
|
||||||
copytruncate
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
## Install gems via bundler ##
|
|
||||||
|
|
||||||
cd "${D}/${dest}"
|
|
||||||
|
|
||||||
local without="development test aws"
|
|
||||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
|
||||||
without+="$(use $flag || echo ' '$flag)"
|
|
||||||
done
|
|
||||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
|
||||||
|
|
||||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
|
||||||
|
|
||||||
einfo "Running bundle install ${bundle_args} ..."
|
|
||||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
|
||||||
|
|
||||||
einfo "Cleaning old gems ..."
|
|
||||||
${RUBY} /usr/bin/bundle clean
|
|
||||||
|
|
||||||
# clean gems cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
|
||||||
|
|
||||||
## RC script ##
|
|
||||||
|
|
||||||
if use systemd ; then
|
|
||||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
|
||||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
|
||||||
else
|
|
||||||
local rcscript=gitlab-10.4.4-sidekiq.init
|
|
||||||
use unicorn && rcscript=gitlab-10.4.4-unicorn.init
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
|
||||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "If this is an update from a previous version, stop your GitLab"
|
|
||||||
elog "instance and issue the following command to perform all required"
|
|
||||||
elog "migrations:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
|
||||||
elog "before running the config phase. Run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
elog "If you're using OpenRC, you can use the following command:"
|
|
||||||
elog
|
|
||||||
elog " /etc/init.d/gitlab backup"
|
|
||||||
elog
|
|
||||||
elog "If this was a fresh install, follow these steps:"
|
|
||||||
elog
|
|
||||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
|
||||||
elog
|
|
||||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
|
||||||
elog " for \"production\" environment."
|
|
||||||
elog
|
|
||||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
|
||||||
elog " haven't done so already."
|
|
||||||
elog
|
|
||||||
if use postgres; then
|
|
||||||
elog "If you have local PostgreSQL running, just copy&run:"
|
|
||||||
elog " su postgres"
|
|
||||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
|
||||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
|
||||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
|
||||||
elog " Note: You should change your password to something more random..."
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
elog "4. Finally execute the following command to initialize the environment:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog " Note: Do not forget to start Redis server first!"
|
|
||||||
elog
|
|
||||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
|
||||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
|
||||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
|
||||||
elog "http://goo.gl/5XGRGv."
|
|
||||||
if use postgres; then
|
|
||||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
|
||||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
|
||||||
elog "super user for *every* GitLab database:"
|
|
||||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
||||||
elog "For details, see the documentation at the GitLab website."
|
|
||||||
fi
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
|
||||||
ewarn " mysql -u root -p -e \\"
|
|
||||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
|
||||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
|
||||||
ewarn
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
ewarn
|
|
||||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "Checking configuration files"
|
|
||||||
|
|
||||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
|
||||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
|
||||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
|
||||||
eerror "database settings for \"production\" environment."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
|
||||||
local git_home="$(egethome ${MY_USER})"
|
|
||||||
|
|
||||||
# configure Git global settings
|
|
||||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
|
||||||
einfo "Setting git user"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
git config --global user.email '${email_from}';
|
|
||||||
git config --global user.name 'GitLab'" \
|
|
||||||
|| die "failed to setup git name and email"
|
|
||||||
fi
|
|
||||||
|
|
||||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
|
||||||
|
|
||||||
# determine whether this is an update or a fresh install. we do this by
|
|
||||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
|
||||||
#
|
|
||||||
if [ -d "${DEST_DIR}/.git" ]; then
|
|
||||||
local update=true
|
|
||||||
else
|
|
||||||
local update=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "Please only proceed if you've read and understood the following page:"
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
|
||||||
fi
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
ewarn "Now is a good time to create a backup of your Gitlab installation, just in case."
|
|
||||||
ewarn "To do so, abort this configuration with Ctrl+C and type the following commands:"
|
|
||||||
ewarn " cd /opt/gitlab"
|
|
||||||
ewarn " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
ewarn
|
|
||||||
ewarn "Press Ctrl+C to abort now or any key to continue."
|
|
||||||
read
|
|
||||||
|
|
||||||
## Initialize app ##
|
|
||||||
|
|
||||||
local RAILS_ENV="production"
|
|
||||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
|
||||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
einfo "Migrating database ..."
|
|
||||||
exec_rake db:migrate
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:compile
|
|
||||||
|
|
||||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
|
||||||
einfo "Migrating iids ..."
|
|
||||||
exec_rake migrate_iids
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
|
||||||
exec_rake gitlab:assets:clean
|
|
||||||
|
|
||||||
einfo "Cleaning cache ..."
|
|
||||||
exec_rake cache:clear
|
|
||||||
else
|
|
||||||
# create dummy git repo as workaround for
|
|
||||||
# https://github.com/bundler/bundler/issues/2039
|
|
||||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
git init
|
|
||||||
git add README.md
|
|
||||||
git commit -m 'Dummy repository'" >/dev/null
|
|
||||||
|
|
||||||
einfo "Initializing database ..."
|
|
||||||
exec_rake gitlab:setup
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:pack
|
|
||||||
exec_rake gettext:po_to_json
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
|
||||||
exec_rake gitlab:assets:compile
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn
|
|
||||||
ewarn "This configuration script runs only common migration tasks."
|
|
||||||
ewarn "Please read guides on"
|
|
||||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
|
||||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
|
||||||
ewarn "version."
|
|
||||||
fi
|
|
||||||
elog
|
|
||||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
|
||||||
elog "Gitlab now and then run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
if ! use systemd ; then
|
|
||||||
elog "You may also run"
|
|
||||||
elog " /etc/init.d/gitlab check"
|
|
||||||
elog " for convenience."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ryaml() {
|
|
||||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec_rake() {
|
|
||||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run rake $@"
|
|
||||||
}
|
|
|
@ -1,430 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
# Maintainer notes:
|
|
||||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
|
||||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
|
||||||
# it should be done, but GitLab has too many dependencies that it will be too
|
|
||||||
# difficult to maintain them via ebuilds.
|
|
||||||
#
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/${PN}.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
EGIT_CHECKOUT_DIR="${WORKDIR}/all"
|
|
||||||
|
|
||||||
inherit eutils git-r3 ruby-ng user systemd
|
|
||||||
|
|
||||||
GITLAB_GITALY_VERSION="0.81.0"
|
|
||||||
GITLAB_PAGES_VERSION="0.6.1"
|
|
||||||
GITLAB_SHELL_VERSION="6.0.3"
|
|
||||||
GITLAB_WORKHORSE_VERSION="3.6.0"
|
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
|
||||||
|
|
||||||
## Gems dependencies:
|
|
||||||
# charlock_holmes dev-libs/icu
|
|
||||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
|
||||||
# rugged dev-util/cmake, virtual/pkgconfig
|
|
||||||
# json dev-util/ragel
|
|
||||||
# pygments.rb python 2.7+
|
|
||||||
# execjs net-libs/nodejs, or any other JS runtime
|
|
||||||
# pg dev-db/postgresql
|
|
||||||
# mysql virtual/mysql
|
|
||||||
#
|
|
||||||
GEMS_DEPEND="
|
|
||||||
dev-libs/icu
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/re2
|
|
||||||
dev-util/ragel
|
|
||||||
>=net-libs/nodejs-6.0.0
|
|
||||||
>=sys-apps/yarn-0.17.0
|
|
||||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
|
||||||
mysql? ( virtual/mysql )
|
|
||||||
kerberos? ( virtual/krb5 )"
|
|
||||||
CDEPEND="
|
|
||||||
dev-util/cmake
|
|
||||||
virtual/pkgconfig"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${GEMS_DEPEND}
|
|
||||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
|
||||||
>=dev-vcs/git-2.8.4
|
|
||||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
|
||||||
kerberos? ( !app-crypt/heimdal )
|
|
||||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
|
||||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
|
||||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-db/redis-2.8
|
|
||||||
virtual/mta
|
|
||||||
systemd? ( sys-apps/systemd:0= )"
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/rubygems
|
|
||||||
>=dev-ruby/bundler-1.15.4"
|
|
||||||
|
|
||||||
#
|
|
||||||
# fix-sendmail-config:
|
|
||||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
|
||||||
# fix-redis-config-path:
|
|
||||||
# Point to the absolute location of redis_config.rb
|
|
||||||
#
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
|
||||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
|
||||||
"${FILESDIR}/03-${PN}-10.2.8-database.yml.patch"
|
|
||||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
|
||||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
|
||||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
|
||||||
"${FILESDIR}/08-${PN}-10.4.4-general-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
MY_NAME="gitlab"
|
|
||||||
MY_USER="git" # should be same as in gitlab-shell
|
|
||||||
|
|
||||||
DEST_DIR="/opt/${MY_NAME}"
|
|
||||||
CONF_DIR="/etc/${MY_NAME}"
|
|
||||||
LOGS_DIR="/var/log/${MY_NAME}"
|
|
||||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
|
||||||
|
|
||||||
all_ruby_unpack() {
|
|
||||||
git-r3_fetch
|
|
||||||
git-r3_checkout
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
sed -i \
|
|
||||||
-e "s|/home/git/gitlab/tmp|/run/${MY_NAME}|g" \
|
|
||||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
|
||||||
|
|
||||||
# modify default database settings for PostgreSQL
|
|
||||||
sed -i -E \
|
|
||||||
-e 's|(username:).*|\1 gitlab|' \
|
|
||||||
-e 's|(password:).*|\1 gitlab|' \
|
|
||||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
|
||||||
config/database.yml.postgresql \
|
|
||||||
|| die "failed to filter database.yml.postgresql"
|
|
||||||
|
|
||||||
# rename config files
|
|
||||||
mv config/gitlab.yml.example config/gitlab.yml
|
|
||||||
mv config/unicorn.rb.example config/unicorn.rb
|
|
||||||
|
|
||||||
local dbconf=config/database.yml
|
|
||||||
if use postgres && ! use mysql; then
|
|
||||||
mv ${dbconf}.postgresql ${dbconf}
|
|
||||||
rm ${dbconf}.mysql
|
|
||||||
elif use mysql && ! use postgres; then
|
|
||||||
mv ${dbconf}.mysql ${dbconf}
|
|
||||||
rm ${dbconf}.postgresql
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove useless files
|
|
||||||
rm -r lib/support/{deploy,init.d}
|
|
||||||
use unicorn || rm config/unicorn.rb
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
local dest=${DEST_DIR}
|
|
||||||
local conf=${CONF_DIR}
|
|
||||||
local logs=${LOGS_DIR}
|
|
||||||
local temp=${TEMP_DIR}
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750
|
|
||||||
dodir ${logs} ${temp}
|
|
||||||
|
|
||||||
diropts -m755
|
|
||||||
dodir ${conf} ${dest}/public/uploads
|
|
||||||
|
|
||||||
dosym ${temp} ${dest}/tmp
|
|
||||||
dosym ${logs} ${dest}/log
|
|
||||||
|
|
||||||
# install configs
|
|
||||||
insinto ${conf}
|
|
||||||
doins -r config/*
|
|
||||||
dosym ${conf} ${dest}/config
|
|
||||||
|
|
||||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
|
||||||
|
|
||||||
# remove needless dirs
|
|
||||||
rm -Rf config tmp log
|
|
||||||
|
|
||||||
# install the rest files
|
|
||||||
# using cp 'cause doins is slow
|
|
||||||
cp -Rl * "${D}/${dest}"/
|
|
||||||
cp -Rl .??* "${D}/${dest}"/
|
|
||||||
|
|
||||||
# install logrotate config
|
|
||||||
dodir /etc/logrotate.d
|
|
||||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
|
||||||
${logs}/*.log {
|
|
||||||
missingok
|
|
||||||
delaycompress
|
|
||||||
compress
|
|
||||||
copytruncate
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
## Install gems via bundler ##
|
|
||||||
|
|
||||||
cd "${D}/${dest}"
|
|
||||||
|
|
||||||
local without="development test aws"
|
|
||||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
|
||||||
without+="$(use $flag || echo ' '$flag)"
|
|
||||||
done
|
|
||||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
|
||||||
|
|
||||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
|
||||||
|
|
||||||
einfo "Running bundle install ${bundle_args} ..."
|
|
||||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
|
||||||
|
|
||||||
einfo "Cleaning old gems ..."
|
|
||||||
${RUBY} /usr/bin/bundle clean
|
|
||||||
|
|
||||||
# clean gems cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
|
||||||
|
|
||||||
## RC script ##
|
|
||||||
|
|
||||||
if use systemd ; then
|
|
||||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
|
||||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
|
||||||
else
|
|
||||||
local rcscript=gitlab-10.4.4-sidekiq.init
|
|
||||||
use unicorn && rcscript=gitlab-10.4.4-unicorn.init
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
|
||||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "If this is an update from a previous version, stop your GitLab"
|
|
||||||
elog "instance and issue the following command to perform all required"
|
|
||||||
elog "migrations:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
|
||||||
elog "before running the config phase. Run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
elog "If you're using OpenRC, you can use the following command:"
|
|
||||||
elog
|
|
||||||
elog " /etc/init.d/gitlab backup"
|
|
||||||
elog
|
|
||||||
elog "If this was a fresh install, follow these steps:"
|
|
||||||
elog
|
|
||||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
|
||||||
elog
|
|
||||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
|
||||||
elog " for \"production\" environment."
|
|
||||||
elog
|
|
||||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
|
||||||
elog " haven't done so already."
|
|
||||||
elog
|
|
||||||
if use postgres; then
|
|
||||||
elog "If you have local PostgreSQL running, just copy&run:"
|
|
||||||
elog " su postgres"
|
|
||||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
|
||||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
|
||||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
|
||||||
elog " Note: You should change your password to something more random..."
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
elog "4. Finally execute the following command to initialize the environment:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog " Note: Do not forget to start Redis server first!"
|
|
||||||
elog
|
|
||||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
|
||||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
|
||||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
|
||||||
elog "http://goo.gl/5XGRGv."
|
|
||||||
if use postgres; then
|
|
||||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
|
||||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
|
||||||
elog "super user for *every* GitLab database:"
|
|
||||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
||||||
elog "For details, see the documentation at the GitLab website."
|
|
||||||
fi
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
|
||||||
ewarn " mysql -u root -p -e \\"
|
|
||||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
|
||||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
|
||||||
ewarn
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
ewarn
|
|
||||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "Checking configuration files"
|
|
||||||
|
|
||||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
|
||||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
|
||||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
|
||||||
eerror "database settings for \"production\" environment."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
|
||||||
local git_home="$(egethome ${MY_USER})"
|
|
||||||
|
|
||||||
# configure Git global settings
|
|
||||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
|
||||||
einfo "Setting git user"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
git config --global user.email '${email_from}';
|
|
||||||
git config --global user.name 'GitLab'" \
|
|
||||||
|| die "failed to setup git name and email"
|
|
||||||
fi
|
|
||||||
|
|
||||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
|
||||||
|
|
||||||
# determine whether this is an update or a fresh install. we do this by
|
|
||||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
|
||||||
#
|
|
||||||
if [ -d "${DEST_DIR}/.git" ]; then
|
|
||||||
local update=true
|
|
||||||
else
|
|
||||||
local update=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "Please only proceed if you've read and understood the following page:"
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
|
||||||
fi
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
ewarn "Now is a good time to create a backup of your Gitlab installation, just in case."
|
|
||||||
ewarn "To do so, abort this configuration with Ctrl+C and type the following commands:"
|
|
||||||
ewarn " cd /opt/gitlab"
|
|
||||||
ewarn " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
ewarn
|
|
||||||
ewarn "Press Ctrl+C to abort now or any key to continue."
|
|
||||||
read
|
|
||||||
|
|
||||||
## Initialize app ##
|
|
||||||
|
|
||||||
local RAILS_ENV="production"
|
|
||||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
|
||||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
einfo "Migrating database ..."
|
|
||||||
exec_rake db:migrate
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:compile
|
|
||||||
|
|
||||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
|
||||||
einfo "Migrating iids ..."
|
|
||||||
exec_rake migrate_iids
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
|
||||||
exec_rake gitlab:assets:clean
|
|
||||||
|
|
||||||
einfo "Cleaning cache ..."
|
|
||||||
exec_rake cache:clear
|
|
||||||
else
|
|
||||||
# create dummy git repo as workaround for
|
|
||||||
# https://github.com/bundler/bundler/issues/2039
|
|
||||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
git init
|
|
||||||
git add README.md
|
|
||||||
git commit -m 'Dummy repository'" >/dev/null
|
|
||||||
|
|
||||||
einfo "Initializing database ..."
|
|
||||||
exec_rake gitlab:setup
|
|
||||||
|
|
||||||
einfo "Compiling GetText PO files ..."
|
|
||||||
exec_rake gettext:pack
|
|
||||||
exec_rake gettext:po_to_json
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
|
||||||
exec_rake gitlab:assets:compile
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn
|
|
||||||
ewarn "This configuration script runs only common migration tasks."
|
|
||||||
ewarn "Please read guides on"
|
|
||||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
|
||||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
|
||||||
ewarn "version."
|
|
||||||
fi
|
|
||||||
elog
|
|
||||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
|
||||||
elog "Gitlab now and then run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
if ! use systemd ; then
|
|
||||||
elog "You may also run"
|
|
||||||
elog " /etc/init.d/gitlab check"
|
|
||||||
elog " for convenience."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ryaml() {
|
|
||||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec_rake() {
|
|
||||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run rake $@"
|
|
||||||
}
|
|
|
@ -1,429 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
# Maintainer notes:
|
|
||||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
|
||||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
|
||||||
# it should be done, but GitLab has too many dependencies that it will be too
|
|
||||||
# difficult to maintain them via ebuilds.
|
|
||||||
#
|
|
||||||
|
|
||||||
USE_RUBY="ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user systemd
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="76c4568daa809c85a8de6e2df8546ef46e6470a4"
|
|
||||||
|
|
||||||
GITALY_VERSION="0.35.0"
|
|
||||||
GITLAB_PAGES_VERSION="0.5.1"
|
|
||||||
GITLAB_SHELL_VERSION="5.8.0"
|
|
||||||
GITLAB_WORKHORSE_VERSION="3.0.0"
|
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
|
||||||
|
|
||||||
## Gems dependencies:
|
|
||||||
# charlock_holmes dev-libs/icu
|
|
||||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
|
||||||
# rugged dev-util/cmake, virtual/pkgconfig
|
|
||||||
# json dev-util/ragel
|
|
||||||
# pygments.rb python 2.7+
|
|
||||||
# execjs net-libs/nodejs, or any other JS runtime
|
|
||||||
# pg dev-db/postgresql
|
|
||||||
# mysql virtual/mysql
|
|
||||||
#
|
|
||||||
GEMS_DEPEND="
|
|
||||||
dev-libs/icu
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/re2
|
|
||||||
dev-util/ragel
|
|
||||||
>=net-libs/nodejs-4.3.0
|
|
||||||
>=sys-apps/yarn-0.17.0
|
|
||||||
postgres? ( >=dev-db/postgresql-9.1:* )
|
|
||||||
mysql? ( virtual/mysql )
|
|
||||||
kerberos? ( virtual/krb5 )"
|
|
||||||
CDEPEND="
|
|
||||||
dev-util/cmake
|
|
||||||
virtual/pkgconfig"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${GEMS_DEPEND}
|
|
||||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
|
||||||
>=dev-vcs/git-2.8.4
|
|
||||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
|
||||||
kerberos? ( !app-crypt/heimdal )
|
|
||||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
|
||||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
|
||||||
~www-servers/gitlab-gitaly-${GITALY_VERSION}"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-db/redis-2.8
|
|
||||||
virtual/mta
|
|
||||||
systemd? ( sys-apps/systemd:0= )"
|
|
||||||
# required bundler >= 1.15.3
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/rubygems
|
|
||||||
>=dev-ruby/bundler-1.14.6"
|
|
||||||
|
|
||||||
#
|
|
||||||
# fix-sendmail-config:
|
|
||||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
|
||||||
# fix-redis-config-path:
|
|
||||||
# Point to the absolute location of redis_config.rb
|
|
||||||
#
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
|
||||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
|
||||||
"${FILESDIR}/03-${PN}-9.4.0-database.yml.patch"
|
|
||||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
|
||||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
|
||||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
MY_NAME="gitlab"
|
|
||||||
MY_USER="git" # should be same as in gitlab-shell
|
|
||||||
|
|
||||||
DEST_DIR="/opt/${MY_NAME}"
|
|
||||||
CONF_DIR="/etc/${MY_NAME}"
|
|
||||||
LOGS_DIR="/var/log/${MY_NAME}"
|
|
||||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
# fix paths
|
|
||||||
local satellites_path="${TEMP_DIR}/repo_satellites"
|
|
||||||
local repos_path=/var/lib/git/repositories
|
|
||||||
local shell_path=/usr/share/gitlab-shell
|
|
||||||
local run_path=/run/${MY_NAME}
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
|
|
||||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \
|
|
||||||
-e "/path: \\/home\\/git\\/repositories\\/$/ s|/home/git/repositories/|/var/lib/git/repositories/|" \
|
|
||||||
-e "/gitaly_address:/ s|/home/git/gitlab/tmp/sockets/private/|${run_path}/sockets/|" \
|
|
||||||
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
|
||||||
-e "s|/home/git/gitlab/log|${LOGS_DIR}|g" \
|
|
||||||
-e "s|/home/git/gitlab|${DEST_DIR}|g" \
|
|
||||||
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
|
||||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
|
||||||
|
|
||||||
# modify default database settings for PostgreSQL
|
|
||||||
sed -i -E \
|
|
||||||
-e 's|(username:).*|\1 gitlab|' \
|
|
||||||
-e 's|(password:).*|\1 gitlab|' \
|
|
||||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
|
||||||
config/database.yml.postgresql \
|
|
||||||
|| die "failed to filter database.yml.postgresql"
|
|
||||||
|
|
||||||
# rename config files
|
|
||||||
mv config/gitlab.yml.example config/gitlab.yml
|
|
||||||
mv config/unicorn.rb.example config/unicorn.rb
|
|
||||||
|
|
||||||
local dbconf=config/database.yml
|
|
||||||
if use postgres && ! use mysql; then
|
|
||||||
mv ${dbconf}.postgresql ${dbconf}
|
|
||||||
rm ${dbconf}.mysql
|
|
||||||
elif use mysql && ! use postgres; then
|
|
||||||
mv ${dbconf}.mysql ${dbconf}
|
|
||||||
rm ${dbconf}.postgresql
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove useless files
|
|
||||||
rm -r lib/support/{deploy,init.d}
|
|
||||||
use unicorn || rm config/unicorn.rb
|
|
||||||
}
|
|
||||||
|
|
||||||
all_ruby_install() {
|
|
||||||
local dest=${DEST_DIR}
|
|
||||||
local conf=${CONF_DIR}
|
|
||||||
local logs=${LOGS_DIR}
|
|
||||||
local temp=${TEMP_DIR}
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
diropts -m750
|
|
||||||
dodir ${logs} ${temp}
|
|
||||||
|
|
||||||
diropts -m755
|
|
||||||
dodir ${conf} ${dest}/public/uploads
|
|
||||||
|
|
||||||
dosym ${temp} ${dest}/tmp
|
|
||||||
dosym ${logs} ${dest}/log
|
|
||||||
|
|
||||||
# install configs
|
|
||||||
insinto ${conf}
|
|
||||||
doins -r config/*
|
|
||||||
dosym ${conf} ${dest}/config
|
|
||||||
|
|
||||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
|
||||||
|
|
||||||
# remove needless dirs
|
|
||||||
rm -Rf config tmp log
|
|
||||||
|
|
||||||
# install the rest files
|
|
||||||
# using cp 'cause doins is slow
|
|
||||||
cp -Rl * "${D}/${dest}"/
|
|
||||||
cp -Rl .??* "${D}/${dest}"/
|
|
||||||
|
|
||||||
# install logrotate config
|
|
||||||
dodir /etc/logrotate.d
|
|
||||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
|
||||||
${logs}/*.log {
|
|
||||||
missingok
|
|
||||||
delaycompress
|
|
||||||
compress
|
|
||||||
copytruncate
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
## Install gems via bundler ##
|
|
||||||
|
|
||||||
cd "${D}/${dest}"
|
|
||||||
|
|
||||||
local without="development test aws"
|
|
||||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
|
||||||
without+="$(use $flag || echo ' '$flag)"
|
|
||||||
done
|
|
||||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
|
||||||
|
|
||||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
|
||||||
|
|
||||||
einfo "Running bundle install ${bundle_args} ..."
|
|
||||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
|
||||||
|
|
||||||
einfo "Cleaning old gems ..."
|
|
||||||
${RUBY} /usr/bin/bundle clean
|
|
||||||
|
|
||||||
# clean gems cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
|
||||||
|
|
||||||
## RC script ##
|
|
||||||
|
|
||||||
if use systemd ; then
|
|
||||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
|
||||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
|
||||||
else
|
|
||||||
local rcscript=gitlab-9.3.5-sidekiq.init
|
|
||||||
use unicorn && rcscript=gitlab-9.3.5-unicorn.init
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
|
||||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "If this is an update from a previous version, stop your GitLab"
|
|
||||||
elog "instance and issue the following command to perform all required"
|
|
||||||
elog "migrations:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
|
||||||
elog "before running the config phase. Run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
elog "If this was a fresh install, follow these steps:"
|
|
||||||
elog
|
|
||||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
|
||||||
elog
|
|
||||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
|
||||||
elog " for \"production\" environment."
|
|
||||||
elog
|
|
||||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
|
||||||
elog " haven't done so already."
|
|
||||||
elog
|
|
||||||
if use postgres; then
|
|
||||||
elog "If you have local PostgreSQL running, just copy&run:"
|
|
||||||
elog " su postgres"
|
|
||||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
|
||||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
|
||||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
|
||||||
elog " Note: You should change your password to something more random..."
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
elog "4. Finally execute the following command to initialize the environment:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog " Note: Do not forget to start Redis server first!"
|
|
||||||
elog
|
|
||||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
|
||||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
|
||||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
|
||||||
elog "http://goo.gl/5XGRGv."
|
|
||||||
if use postgres; then
|
|
||||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
|
||||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
|
||||||
elog "super user for *every* GitLab database:"
|
|
||||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
||||||
elog "For details, see the documentation at the GitLab website."
|
|
||||||
fi
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
|
||||||
ewarn " mysql -u root -p -e \\"
|
|
||||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
|
||||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
|
||||||
ewarn
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
ewarn
|
|
||||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "Checking configuration files"
|
|
||||||
|
|
||||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
|
||||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
|
||||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
|
||||||
eerror "database settings for \"production\" environment."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
|
||||||
local git_home="$(egethome ${MY_USER})"
|
|
||||||
|
|
||||||
# configure Git global settings
|
|
||||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
|
||||||
einfo "Setting git user"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
git config --global user.email '${email_from}';
|
|
||||||
git config --global user.name 'GitLab'" \
|
|
||||||
|| die "failed to setup git name and email"
|
|
||||||
fi
|
|
||||||
|
|
||||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
|
||||||
|
|
||||||
# determine whether this is an update or a fresh install. we do this by
|
|
||||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
|
||||||
#
|
|
||||||
if [ -d "${DEST_DIR}/.git" ]; then
|
|
||||||
local update=true
|
|
||||||
else
|
|
||||||
local update=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "Please only proceed if you've read and understood the following page:"
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
|
||||||
fi
|
|
||||||
ewarn
|
|
||||||
ewarn "Press any key to continue, or abort with Ctrl+C"
|
|
||||||
read
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Initialize app ##
|
|
||||||
|
|
||||||
local RAILS_ENV="production"
|
|
||||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
|
||||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
einfo "Migrating database ..."
|
|
||||||
exec_rake db:migrate
|
|
||||||
|
|
||||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
|
||||||
einfo "Migrating iids ..."
|
|
||||||
exec_rake migrate_iids
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
|
||||||
exec_rake gitlab:assets:clean
|
|
||||||
|
|
||||||
einfo "Cleaning cache ..."
|
|
||||||
exec_rake cache:clear
|
|
||||||
else
|
|
||||||
# create dummy git repo as workaround for
|
|
||||||
# https://github.com/bundler/bundler/issues/2039
|
|
||||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
git init
|
|
||||||
git add README.md
|
|
||||||
git commit -m 'Dummy repository'" >/dev/null
|
|
||||||
|
|
||||||
einfo "Initializing database ..."
|
|
||||||
exec_rake gitlab:setup
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_rake yarn:install
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
|
||||||
exec_rake gitlab:assets:compile
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
ewarn
|
|
||||||
ewarn "This configuration script runs only common migration tasks."
|
|
||||||
ewarn "Please read guides on"
|
|
||||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
|
||||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
|
||||||
ewarn "version."
|
|
||||||
fi
|
|
||||||
elog
|
|
||||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
|
||||||
elog "Gitlab now and then run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
if ! use systemd ; then
|
|
||||||
elog "You may also run"
|
|
||||||
elog " /etc/init.d/gitlab check"
|
|
||||||
elog " for convenience."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ryaml() {
|
|
||||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec_rake() {
|
|
||||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run rake $@"
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>manuel@fritteli.ch</email>
|
|
||||||
<name>Manuel Friedli</name>
|
|
||||||
</maintainer>
|
|
||||||
<use>
|
|
||||||
<flag name="unicorn">Use the Unicorn web server. Never tested the package without it, so disable at your own risk.</flag>
|
|
||||||
<flag name="pages">Use the GitLab Pages feature. See https://gitlab.com/gitlab-org/gitlab-pages/</flag>
|
|
||||||
<flag name="rugged_use_system_libraries">Use dev-libs/libgit2 from the system instead of the bundled libgit. The bundled library sometimes causes build breakages.</flag>
|
|
||||||
</use>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,144 +0,0 @@
|
||||||
*gitlab-gitaly-0.81.0 (09 Mar 2018)
|
|
||||||
|
|
||||||
09 Mar 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-gitaly-0.81.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Add ebuild for version 0.81.0, dependency of
|
|
||||||
gitlab-ce-10.5.4
|
|
||||||
|
|
||||||
08 Mar 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/0001-gitlab-gitaly-0.10.0-fix-Makefile.patch,
|
|
||||||
-files/0002-gitlab-gitaly-0.11.2-fix-config.toml.example.patch,
|
|
||||||
-gitlab-gitaly-0.10.0.ebuild, -gitlab-gitaly-0.11.2-r1.ebuild,
|
|
||||||
-gitlab-gitaly-0.21.2.ebuild, -gitlab-gitaly-0.3.0.ebuild,
|
|
||||||
-gitlab-gitaly-0.6.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Purge obsolete versions of gitlab-gitaly
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.66.0 (19 Feb 2018)
|
|
||||||
|
|
||||||
19 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0002-gitlab-gitaly-0.66.0-fix-config.toml.example.patch,
|
|
||||||
+files/gitlab-gitaly-0.66.0.conf, +files/gitlab-gitaly-0.66.0.init,
|
|
||||||
+gitlab-gitaly-0.66.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Add ebuild for version 0.66.0
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.59.2 (17 Feb 2018)
|
|
||||||
|
|
||||||
17 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0002-gitlab-gitaly-0.59.2-fix-config.toml.example.patch,
|
|
||||||
+gitlab-gitaly-0.59.2.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Add ebuild for version 0.59.2.
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.52.1 (16 Feb 2018)
|
|
||||||
|
|
||||||
16 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-gitaly-0.52.1.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Add ebuild for version 0.52.1.
|
|
||||||
|
|
||||||
15 Feb 2018; Manuel Friedli <manuel@fritteli.ch> gitlab-gitaly-0.43.1.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Fix github issue #49, hopefully.
|
|
||||||
|
|
||||||
15 Feb 2018; Manuel Friedli <manuel@fritteli.ch> gitlab-gitaly-0.43.1.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Add dev-ruby/bundler to DEPENDS.
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.43.1 (06 Nov 2017)
|
|
||||||
|
|
||||||
06 Nov 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0002-gitlab-gitaly-0.43.1-fix-config.toml.example.patch,
|
|
||||||
+gitlab-gitaly-0.43.1.ebuild, gitlab-gitaly-0.10.0.ebuild,
|
|
||||||
gitlab-gitaly-0.11.2-r1.ebuild, gitlab-gitaly-0.21.2.ebuild,
|
|
||||||
gitlab-gitaly-0.3.0.ebuild, gitlab-gitaly-0.35.0-r2.ebuild,
|
|
||||||
gitlab-gitaly-0.38.0-r1.ebuild, gitlab-gitaly-0.6.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Add version 0.43.1, fix obsolete inheritance and
|
|
||||||
header.
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.35.0-r2 (25 Sep 2017)
|
|
||||||
*gitlab-gitaly-0.38.0-r1 (25 Sep 2017)
|
|
||||||
|
|
||||||
25 Sep 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+gitlab-gitaly-0.35.0-r2.ebuild, +gitlab-gitaly-0.38.0-r1.ebuild,
|
|
||||||
-gitlab-gitaly-0.35.0-r1.ebuild, -gitlab-gitaly-0.38.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Make gitaly-ruby executable.
|
|
||||||
|
|
||||||
17 Sep 2017; Manuel Friedli <manuel@fritteli.ch> -gitlab-gitaly-0.23.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Prune unneeded version.
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.38.0 (08 Sep 2017)
|
|
||||||
|
|
||||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-gitaly-0.38.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Add version 0.38.0.
|
|
||||||
|
|
||||||
06 Sep 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/gitlab-gitaly-0.10.0.conf, -files/gitlab-gitaly-0.10.0.init,
|
|
||||||
-gitlab-gitaly-0.16.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Prune version 0.16.0 and unneeded files
|
|
||||||
|
|
||||||
06 Sep 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/0002-gitlab-gitaly-0.10.0-fix-config.toml.example.patch,
|
|
||||||
-gitlab-gitaly-0.11.0.ebuild, gitlab-gitaly-0.10.0.ebuild,
|
|
||||||
gitlab-gitaly-0.3.0.ebuild, gitlab-gitaly-0.6.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Prune version 0.11.0 and cleanup other versions
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.35.0-r1 (06 Sep 2017)
|
|
||||||
|
|
||||||
06 Sep 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+gitlab-gitaly-0.35.0-r1.ebuild, -gitlab-gitaly-0.35.0.ebuild,
|
|
||||||
files/0002-gitlab-gitaly-0.35.0-fix-config.toml.example.patch:
|
|
||||||
www-servers/gitlab-gitaly: Emergency fix: Use correct installation path of
|
|
||||||
gitlab-shell in the config file.
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.35.0 (05 Sep 2017)
|
|
||||||
|
|
||||||
05 Sep 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0002-gitlab-gitaly-0.35.0-fix-config.toml.example.patch,
|
|
||||||
+gitlab-gitaly-0.35.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Add ebuild for version 0.35.0; dependency of
|
|
||||||
gitlab-ce-9.5.3.
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.21.2 (25 Jul 2017)
|
|
||||||
*gitlab-gitaly-0.23.0 (25 Jul 2017)
|
|
||||||
|
|
||||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0001-gitlab-gitaly-0.23.0-fix-Makefile.patch,
|
|
||||||
+gitlab-gitaly-0.21.2.ebuild, +gitlab-gitaly-0.23.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Add new versions of gitaly
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.16.0 (09 Jul 2017)
|
|
||||||
|
|
||||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-gitaly-0.16.0.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Add ebuild for gitlab-gitaly-0.16.0
|
|
||||||
|
|
||||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0002-gitlab-gitaly-0.11.2-fix-config.toml.example.patch,
|
|
||||||
+files/gitlab-gitaly-0.11.2.conf, +files/gitlab-gitaly-0.11.2.init,
|
|
||||||
-files/gitlab-gitaly-0.11.2-r1.init, gitlab-gitaly-0.11.2-r1.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Update ebuild for gitlab-gitaly-0.11.2 in
|
|
||||||
preparation of the addition of gitlab-ce-9.3.5
|
|
||||||
|
|
||||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
files/gitlab-gitaly-0.11.2-r1.init:
|
|
||||||
www-servers/gitlab-gitaly: Fix silly, *silly* typo.
|
|
||||||
|
|
||||||
*gitlab-gitaly-0.11.2-r1 (08 Jul 2017)
|
|
||||||
|
|
||||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/gitlab-gitaly-0.11.2-r1.init, +gitlab-gitaly-0.11.2-r1.ebuild,
|
|
||||||
-gitlab-gitaly-0.11.2.ebuild:
|
|
||||||
www-servers/gitlab-gitaly: Fix bug in checkpath in init script
|
|
||||||
|
|
||||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch> -gitaly-0.10.0-r1.ebuild,
|
|
||||||
gitaly-0.11.2.ebuild:
|
|
||||||
www-servers/gitaly: Add ebuid for gitaly-0.11.2
|
|
||||||
|
|
||||||
*gitaly-0.11.0 (17 Jun 2017)
|
|
||||||
*gitaly-0.11.2 (17 Jun 2017)
|
|
||||||
|
|
||||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> +gitaly-0.11.0.ebuild,
|
|
||||||
+gitaly-0.11.2.ebuild:
|
|
||||||
www-servers/gitaly: Add versions 0.11.0 and 0.11.2
|
|
||||||
|
|
||||||
*gitaly-0.3.0 (29 Mar 2017)
|
|
||||||
|
|
||||||
29 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitaly-0.3.0.ebuild,
|
|
||||||
+metadata.xml:
|
|
||||||
www-servers/gitaly: Added dummy-ebuild for gitaly-0.3.0. This will not build,
|
|
||||||
but instead just show an error message upon installation. It is a mere
|
|
||||||
placeholder for the future. It is needed so that the gitaly USE-flag could be
|
|
||||||
added to the gitlab-ce-9.0.1 ebuild.
|
|
|
@ -1,18 +0,0 @@
|
||||||
AUX 0001-gitlab-gitaly-0.23.0-fix-Makefile.patch 253 SHA256 e1a3d0ea2d10145dd9d9b10848fb1731758eb16426ae203fa5a0abab65633380 SHA512 485178891a9589e29f0735bfbb8f1557355881f50498b46185ea6e658214454beed7350aab412699318ee801d8899824177d7d20568e91eb4ddf7562e9e8b9a2 WHIRLPOOL b2088784e30eaf8bb46832cb8454e5a8d2f2eeab00b41ffd021d257b6f19ffc53a420ed7123b1c9b9a83fd8a87184c178a3334d391bc4d85b78b8893245dfc03
|
|
||||||
AUX 0002-gitlab-gitaly-0.35.0-fix-config.toml.example.patch 1015 SHA256 44cd87bb35224634ef9832f2d1e79de2ab27580101665a049eaf20f5ffae590d SHA512 9110e6f42babac04c98227ecfff3a961ec35fe6c487559e5a638676f409dbf6b0b133524b092322085cb7c7c41c5fc729c7b6be80bae10931efd5785172f01b2 WHIRLPOOL 8b0f1aa8c8c9c2ea4a8a5dbfd1e5a00603d587209b0967be82a9d78d0eabe4d350ac44fce80bfc9dac77ea2c0ff5d0f954e8cb4fb50ee778fb636599b1d8456f
|
|
||||||
AUX 0002-gitlab-gitaly-0.43.1-fix-config.toml.example.patch 1095 SHA256 3e9558a127675bca052a9219265572504729380087665f2cd681c44d5545f101 SHA512 1ee6b6a127a6f7e82970c2e4270b42427a88bfbca5ba9d979d6667381d2a6cf934c77cc6e2f47af24a2810e0427285565bc42a0d26c36649a9177b917ac5a424 WHIRLPOOL f96a7dd2952d5a8d7652d5e6966c4e2d85c3a9785e824108068fab158f5871cd1a0ca0f88f563478c4f937ba2d9e3df489611d07c092ff0c4c9b6668f0abb5fb
|
|
||||||
AUX 0002-gitlab-gitaly-0.59.2-fix-config.toml.example.patch 1183 SHA256 edd4dc6f1d1b56bfc902d79c0abb2d3b85b69cfe3b90e4250b804fafe00f49c3 SHA512 4a9bf3222e442fcd76cf62921a7f184e67784532c2c4706f3f7d3d1b7a13c874520dba6ef629d93aa1514ce3483827d1a11cf7a04ae530fb4ed67844be1e9353 WHIRLPOOL a93af879b93415470e41449390388f908dba17dc1ea5f4e47e5bbe80fcac11f85c64ce18899aa2ee084438598e24e2ddc72076c0d63bd8fc61de4f2ee8ee2cc0
|
|
||||||
AUX 0002-gitlab-gitaly-0.66.0-fix-config.toml.example.patch 1309 SHA256 1fd8a1d8b15b713a53f9d5fc34be9a3c7bc081724f9e3fde582213fbdfe047cd SHA512 33ae00c2fadf085e5a1e12e48155144369fdf9db0fb7547a1d0695e903eb17859985d48af5765a544c68fa9186de23c7228348a38c431202e65deee26c3d3953 WHIRLPOOL 28c85bc36d3c42460dc2044245b71181ec6fa72737d2f2ccb565fc5b3a7e8e51f3315e166cc3067709f90ffd0ad489fe1745790036bb18be4dc8c8bc3377098c
|
|
||||||
AUX gitlab-gitaly-0.11.2.conf 289 SHA256 da2640e0ac6a3f356d68f2825c78a1965703df292cd6631b2e884e1a9c7ecc87 SHA512 86f2b4dd283de117c3a371a98a1472d248a21a2c931be6644bec2406249e000fe2e55d031b523d6e64fa2eaa3addad27704f338f65cad6b559680c5c327b9614 WHIRLPOOL 18cb38b35c9a79c6eaaa15ed9bbbeb6dc502a0291f3bff2bf1f59a950556c4c3fd3742a4097ab784c1e9a12d2209b336f2bf688b0888e13bb1b7f78219bb6d87
|
|
||||||
AUX gitlab-gitaly-0.11.2.init 631 SHA256 32257b9e72c2ee201e5104f6eafc134920237f0f5465110edda4778dd92c17a2 SHA512 a0bf57f392a75b1a2875837ec1ad47b61317c6ae530d12e60ae3f62f69b0fb8ef48499b31751fab788df1a6ab842926a73443795a5888258f62e473e2953299a WHIRLPOOL 8185d1927c021be4b3de7c4e0228c68cba558b35c0894c6b17de7f24ebc42dd771593b2d9169f27c5a1ada90e14b2fdb651521ddf39660a77dece586c7f1d348
|
|
||||||
AUX gitlab-gitaly-0.66.0.conf 319 SHA256 a5c264800874973e62abd163e5e9144ab698192fc5aaf62aa06488e4727bc54b SHA512 5c0548ba52cfac02388d45f1b88c7bd43df1fef103ba8be1000c0e48438fbe6c1c4cfd6e6c26c1afe0f9ccbfe05b10e2dd4f13c9615ecde32cd23b496a9bb8ca WHIRLPOOL 5eb849c3b24e1e4ec0b7eba8366143f36f4ba3243f02c17102bda15bde05dc8d77ba97768b9cd0dfe9bec18d5b0eaae948622e071c30b590207ce7dac2e026df
|
|
||||||
AUX gitlab-gitaly-0.66.0.init 692 SHA256 bb5e4bc7b2e1a8ac16aa0d2a548ce924d12f5eb8e0a6cc1bc7cff331d1ca8737 SHA512 5a760d58c4f96db585d2008964e3407393ce6547ded05d92d0ffa4ea62c691caf1c261543f3004bb45c14288603858768fcae9a817a4293e0454d2319e303975 WHIRLPOOL d87fef85569ba648d6713104f259276b2a377cb5657c7350c96fbb83f63d0ccc5d94c4a5a41cab4e0c01702fec9b9e52aae420d7a22abbb63c090072e603a518
|
|
||||||
EBUILD gitlab-gitaly-0.35.0-r2.ebuild 1143 SHA256 f27758444fefb15b9ea55cc9be68e8b47fdf5c6794b9ed32cadc95690b2dfd62 SHA512 5b7117c6a5c91e0168c495a18c08c815ae423dcebce644264d9161692ede29469c6585acfde682b0d60ccab6efa601a0259d2b44ceb5cc15a26096a2bfc318a8 WHIRLPOOL 8911c39960635981e0baa62cdf3425acc9f7167df940f4c43c52dbe020b208ad3192a01bf5f198ae0777cf5af27cc8e643455b30c1e0be3326a56aab1c3c8e10
|
|
||||||
EBUILD gitlab-gitaly-0.38.0-r1.ebuild 1035 SHA256 c667625968e0cb0530679184353724687bc193c0a8166fea0d9f8a516ce6db40 SHA512 e585a18c64a2e8aca2796c45066e1b1113cba9320a47f9af638fce171ac362060edac4216e7259628433e5b5facaebbf876bf807dd99f80ebd8c88e7cb726992 WHIRLPOOL 7f329f60fce603e61ebf90cc2aa0182d58574d449f096f3cf59c4751f1db9d5eb856d1fa0ee67c565d392261e45c784e25a3b4014f9a44857c31ca04af8cb70f
|
|
||||||
EBUILD gitlab-gitaly-0.43.1.ebuild 1073 SHA256 594e68b869e53fe6fbdcf8fdade3889f55883b8b4ab17a2b064b3fd12a1ef739 SHA512 e3e7f045aa0565267bb516f685685c704841b5186dcca1282274ddd9392b734ac7808cb99d587ced3c87a357dc5af02bca99056386f0db0f9ecd07bba9e6e18e WHIRLPOOL 1329e9b461fe5c7386aa127a815602c655f8411a030537de9a247ea033723cfd60eb00a38e39cb775c985607b90b0e30fe55a9ef6856b49204a2ddc8427afa1c
|
|
||||||
EBUILD gitlab-gitaly-0.52.1.ebuild 1073 SHA256 594e68b869e53fe6fbdcf8fdade3889f55883b8b4ab17a2b064b3fd12a1ef739 SHA512 e3e7f045aa0565267bb516f685685c704841b5186dcca1282274ddd9392b734ac7808cb99d587ced3c87a357dc5af02bca99056386f0db0f9ecd07bba9e6e18e WHIRLPOOL 1329e9b461fe5c7386aa127a815602c655f8411a030537de9a247ea033723cfd60eb00a38e39cb775c985607b90b0e30fe55a9ef6856b49204a2ddc8427afa1c
|
|
||||||
EBUILD gitlab-gitaly-0.59.2.ebuild 1073 SHA256 a9899ddb752550e82510d101a93286cb6b872b8faa53d008e55af3ddc2d2e685 SHA512 da7ba77fe0a9234c5e4f5994a3c7fa9c11a93cdd6f9cff3ab5a658f6a9385a0bea8f00cee878a43c9580632c9837c305b293e8609f3e284b958f7b514ef10c81 WHIRLPOOL e4b12a160c2cfc08da4fd36fcbde8dcd1f383acbd5211c50dfcea1610e4e5105ca9720f9f8c34a7ab41fe2c33a77d3129ae527fd94f3b8d0259e9c2e4ec9a027
|
|
||||||
EBUILD gitlab-gitaly-0.66.0.ebuild 1086 SHA256 bd5b1734d6354c2e7bbf6e815700b38c81f7325bf1d222b9c74576852529dcd3 SHA512 4fe2be263fbf16ab7f9f24f06f82d1a60b3b30322f3f72fc6ddd5a13763f137da3ce122b81d747bb8b4c733e0bb6fa7e53a51f5ce186f1690ae256b8712c41a6 WHIRLPOOL c3e34cda3ef250cefeb761e8b1b1c53fea6e22d7f21269000081f18a7858b8153256c770e01f5df1dfd43ba219172d4f74992f6244fef8ca166fb35fa6a21fc5
|
|
||||||
EBUILD gitlab-gitaly-0.81.0.ebuild 1086 SHA256 bd5b1734d6354c2e7bbf6e815700b38c81f7325bf1d222b9c74576852529dcd3 SHA512 4fe2be263fbf16ab7f9f24f06f82d1a60b3b30322f3f72fc6ddd5a13763f137da3ce122b81d747bb8b4c733e0bb6fa7e53a51f5ce186f1690ae256b8712c41a6 WHIRLPOOL c3e34cda3ef250cefeb761e8b1b1c53fea6e22d7f21269000081f18a7858b8153256c770e01f5df1dfd43ba219172d4f74992f6244fef8ca166fb35fa6a21fc5
|
|
||||||
MISC ChangeLog 5951 SHA256 6e37d5bd38c842a5d636cf81ab82ed5314e06d28192c7f070916d9b769525ac2 SHA512 540feebb4f1c2c2364b53616f7b34f5df5eff89c2bec3f38fab0372347894197e10df52ab17850f607c9e6e757f136363f234b46e1e02d5d15ad8913e407ec7a WHIRLPOOL 05168e62c4b892fd03b4adb9560792550ad447d4471251ca092f93843276039cc9df3bc2862b682f7488a6ce7ab5560e6aaca29f0848fe8f5a79b2cbedeef5be
|
|
||||||
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1
|
|
|
@ -1,10 +0,0 @@
|
||||||
diff --git a/Makefile b/Makefile
|
|
||||||
index 6063771..0f31b5d 100644
|
|
||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-PREFIX := /usr/local
|
|
||||||
+PREFIX := ${DESTDIR}/usr
|
|
||||||
PKG := gitlab.com/gitlab-org/gitaly
|
|
||||||
BUILD_DIR := $(CURDIR)
|
|
||||||
TARGET_DIR := $(BUILD_DIR)/_build
|
|
|
@ -1,32 +0,0 @@
|
||||||
diff --git a/config.toml.example b/config.toml.example
|
|
||||||
index 5fe3942..d7fab3a 100644
|
|
||||||
--- a/config.toml.example
|
|
||||||
+++ b/config.toml.example
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
# Example Gitaly configuration file
|
|
||||||
|
|
||||||
-socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
|
|
||||||
+socket_path = "/run/gitlab/sockets/gitaly.socket"
|
|
||||||
|
|
||||||
# # Optional: listen on a TCP socket. This is insecure (no authentication)
|
|
||||||
# listen_addr = "localhost:9999"
|
|
||||||
@@ -16,7 +16,7 @@ socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
|
|
||||||
|
|
||||||
[[storage]]
|
|
||||||
name = "default"
|
|
||||||
-path = "/home/git/repositories"
|
|
||||||
+path = "/var/lib/git/repositories"
|
|
||||||
|
|
||||||
# # You can optionally configure more storages for this Gitaly instance to serve up
|
|
||||||
#
|
|
||||||
@@ -37,8 +37,8 @@ path = "/home/git/repositories"
|
|
||||||
|
|
||||||
[gitaly-ruby]
|
|
||||||
# The directory where gitaly-ruby is installed
|
|
||||||
-dir = "/home/git/gitaly/ruby"
|
|
||||||
+dir = "/var/lib/gitlab-gitaly/ruby"
|
|
||||||
|
|
||||||
[gitlab-shell]
|
|
||||||
# The directory where gitlab-shell is installed
|
|
||||||
-dir = "/home/git/gitlab-shell"
|
|
||||||
+dir = "/usr/share/gitlab-shell"
|
|
|
@ -1,35 +0,0 @@
|
||||||
diff --git a/config.toml.example b/config.toml.example
|
|
||||||
index 69c813c..9d650c3 100644
|
|
||||||
--- a/config.toml.example
|
|
||||||
+++ b/config.toml.example
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
# Example Gitaly configuration file
|
|
||||||
|
|
||||||
-socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
|
|
||||||
+socket_path = "/run/gitlab/sockets/gitaly.socket"
|
|
||||||
|
|
||||||
# # Optional: listen on a TCP socket. This is insecure (no authentication)
|
|
||||||
# listen_addr = "localhost:9999"
|
|
||||||
@@ -16,7 +16,7 @@ socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
|
|
||||||
|
|
||||||
[[storage]]
|
|
||||||
name = "default"
|
|
||||||
-path = "/home/git/repositories"
|
|
||||||
+path = "/var/lib/git/repositories"
|
|
||||||
|
|
||||||
# # You can optionally configure more storages for this Gitaly instance to serve up
|
|
||||||
#
|
|
||||||
@@ -37,11 +37,11 @@ path = "/home/git/repositories"
|
|
||||||
|
|
||||||
[gitaly-ruby]
|
|
||||||
# The directory where gitaly-ruby is installed
|
|
||||||
-dir = "/home/git/gitaly/ruby"
|
|
||||||
+dir = "/var/lib/gitlab-gitaly/ruby"
|
|
||||||
|
|
||||||
[gitlab-shell]
|
|
||||||
# The directory where gitlab-shell is installed
|
|
||||||
-dir = "/home/git/gitlab-shell"
|
|
||||||
+dir = "/usr/share/gitlab-shell"
|
|
||||||
|
|
||||||
# # You can adjust the concurrency of each RPC endpoint
|
|
||||||
# [[concurrency]]
|
|
|
@ -1,39 +0,0 @@
|
||||||
diff --git a/config.toml.example b/config.toml.example
|
|
||||||
index 10f8cce..09add0c 100644
|
|
||||||
--- a/config.toml.example
|
|
||||||
+++ b/config.toml.example
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
# Example Gitaly configuration file
|
|
||||||
|
|
||||||
-socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
|
|
||||||
+socket_path = "/run/gitlab/sockets/gitaly.socket"
|
|
||||||
|
|
||||||
# The directory where Gitaly's executables are stored
|
|
||||||
bin_dir = "/home/git/gitaly"
|
|
||||||
@@ -19,7 +19,7 @@ bin_dir = "/home/git/gitaly"
|
|
||||||
|
|
||||||
[[storage]]
|
|
||||||
name = "default"
|
|
||||||
-path = "/home/git/repositories"
|
|
||||||
+path = "/var/lib/git/repositories"
|
|
||||||
|
|
||||||
# # You can optionally configure more storages for this Gitaly instance to serve up
|
|
||||||
#
|
|
||||||
@@ -40,7 +40,7 @@ path = "/home/git/repositories"
|
|
||||||
|
|
||||||
[gitaly-ruby]
|
|
||||||
# The directory where gitaly-ruby is installed
|
|
||||||
-dir = "/home/git/gitaly/ruby"
|
|
||||||
+dir = "/var/lib/gitlab-gitaly/ruby"
|
|
||||||
|
|
||||||
# # Gitaly-ruby resident set size (RSS) that triggers a memory restart (bytes)
|
|
||||||
# max_rss = 300000000
|
|
||||||
@@ -53,7 +53,7 @@ dir = "/home/git/gitaly/ruby"
|
|
||||||
|
|
||||||
[gitlab-shell]
|
|
||||||
# The directory where gitlab-shell is installed
|
|
||||||
-dir = "/home/git/gitlab-shell"
|
|
||||||
+dir = "/usr/share/gitlab-shell"
|
|
||||||
|
|
||||||
# # You can adjust the concurrency of each RPC endpoint
|
|
||||||
# [[concurrency]]
|
|
|
@ -1,43 +0,0 @@
|
||||||
diff --git a/config.toml.example b/config.toml.example
|
|
||||||
index 10f8cce..f65b5b9 100644
|
|
||||||
--- a/config.toml.example
|
|
||||||
+++ b/config.toml.example
|
|
||||||
@@ -1,9 +1,9 @@
|
|
||||||
# Example Gitaly configuration file
|
|
||||||
|
|
||||||
-socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
|
|
||||||
+socket_path = "/run/gitlab/gitaly.socket"
|
|
||||||
|
|
||||||
# The directory where Gitaly's executables are stored
|
|
||||||
-bin_dir = "/home/git/gitaly"
|
|
||||||
+bin_dir = "/usr/bin"
|
|
||||||
|
|
||||||
# # Optional: listen on a TCP socket. This is insecure (no authentication)
|
|
||||||
# listen_addr = "localhost:9999"
|
|
||||||
@@ -19,7 +19,7 @@ bin_dir = "/home/git/gitaly"
|
|
||||||
|
|
||||||
[[storage]]
|
|
||||||
name = "default"
|
|
||||||
-path = "/home/git/repositories"
|
|
||||||
+path = "/var/lib/git/repositories"
|
|
||||||
|
|
||||||
# # You can optionally configure more storages for this Gitaly instance to serve up
|
|
||||||
#
|
|
||||||
@@ -40,7 +40,7 @@ path = "/home/git/repositories"
|
|
||||||
|
|
||||||
[gitaly-ruby]
|
|
||||||
# The directory where gitaly-ruby is installed
|
|
||||||
-dir = "/home/git/gitaly/ruby"
|
|
||||||
+dir = "/var/lib/gitlab-gitaly/ruby"
|
|
||||||
|
|
||||||
# # Gitaly-ruby resident set size (RSS) that triggers a memory restart (bytes)
|
|
||||||
# max_rss = 300000000
|
|
||||||
@@ -53,7 +53,7 @@ dir = "/home/git/gitaly/ruby"
|
|
||||||
|
|
||||||
[gitlab-shell]
|
|
||||||
# The directory where gitlab-shell is installed
|
|
||||||
-dir = "/home/git/gitlab-shell"
|
|
||||||
+dir = "/usr/share/gitlab-shell"
|
|
||||||
|
|
||||||
# # You can adjust the concurrency of each RPC endpoint
|
|
||||||
# [[concurrency]]
|
|
|
@ -1,8 +0,0 @@
|
||||||
CONFIGFILE=/etc/gitlab/gitaly-config.toml
|
|
||||||
RUNAS_USER=git
|
|
||||||
RUNAS_GROUP=${RUNAS_USER}
|
|
||||||
LOGFILE=/var/log/gitlab/gitlab-gitaly.log
|
|
||||||
|
|
||||||
# This must match the setting in /etc/gitlab/gitaly-config.toml
|
|
||||||
# If not using a socket, simply comment out or delete the next line.
|
|
||||||
SOCKETDIR=/run/gitlab/sockets
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting gitlab-gitaly"
|
|
||||||
|
|
||||||
checkpath -f -m 640 -o ${RUNAS_USER}:${RUNAS_GROUP} ${LOGFILE}
|
|
||||||
[ -z "${SOCKETDIR}" ] || checkpath -d -m 700 -o ${RUNAS_USER}:${RUNAS_GROUP} ${SOCKETDIR}
|
|
||||||
|
|
||||||
start-stop-daemon --start --exec /usr/bin/gitlab-gitaly --pidfile /run/gitlab-gitaly.pid \
|
|
||||||
--make-pidfile --background --user ${RUNAS_USER}:${RUNAS_GROUP} --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
|
|
||||||
-- ${CONFIGFILE}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping gitlab-gitaly"
|
|
||||||
start-stop-daemon --stop --exec /usr/bin/gitlab-gitaly --pidfile /run/gitlab-gitaly.pid --user ${RUNAS_USER}:${RUNAS_GROUP}
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
CONFIGFILE=/etc/gitlab/gitaly-config.toml
|
|
||||||
RUNAS_USER=git
|
|
||||||
RUNAS_GROUP=${RUNAS_USER}
|
|
||||||
LOGFILE=/var/log/gitlab/gitlab-gitaly.log
|
|
||||||
PIDFILE=/run/gitlab/gitlab-gitaly.pid
|
|
||||||
|
|
||||||
# This must match the setting in /etc/gitlab/gitaly-config.toml
|
|
||||||
# If not using a socket, simply comment out or delete the next line.
|
|
||||||
SOCKETDIR=/run/gitlab
|
|
|
@ -1,20 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting gitlab-gitaly"
|
|
||||||
|
|
||||||
checkpath -f -m 640 -o ${RUNAS_USER}:${RUNAS_GROUP} "${LOGFILE}"
|
|
||||||
checkpath -d -m 700 -o ${RUNAS_USER}:${RUNAS_GROUP} "$(dirname ${PIDFILE})"
|
|
||||||
[ -z "${SOCKETDIR}" ] || checkpath -d -m 700 -o ${RUNAS_USER}:${RUNAS_GROUP} "${SOCKETDIR}"
|
|
||||||
|
|
||||||
start-stop-daemon --start --exec /usr/bin/gitlab-gitaly --pidfile "${PIDFILE}" \
|
|
||||||
--make-pidfile --background --user ${RUNAS_USER}:${RUNAS_GROUP} --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
|
|
||||||
-- ${CONFIGFILE}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping gitlab-gitaly"
|
|
||||||
start-stop-daemon --stop --exec /usr/bin/gitlab-gitaly --pidfile "${PIDFILE}" --user ${RUNAS_USER}:${RUNAS_GROUP}
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1,41 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitaly.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
|
|
||||||
inherit eutils git-r3 user
|
|
||||||
|
|
||||||
DESCRIPTION="Gitaly is a Git RPC service for handling all the git calls made by GitLab."
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitaly"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-${PN}-0.23.0-fix-Makefile.patch"
|
|
||||||
epatch "${FILESDIR}/0002-${PN}-0.35.0-fix-config.toml.example.patch"
|
|
||||||
|
|
||||||
# see https://gitlab.com/gitlab-org/gitaly/issues/493
|
|
||||||
sed -s 's#LDFLAGS#GO_LDFLAGS#g' -i Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# TODO fowners, fperms on config.toml.example
|
|
||||||
insinto "/etc/gitlab"
|
|
||||||
newins "config.toml.example" "gitaly-config.toml"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.11.2.conf" "gitlab-gitaly"
|
|
||||||
newinitd "${FILESDIR}/${PN}-0.11.2.init" "gitlab-gitaly"
|
|
||||||
into "/usr"
|
|
||||||
newbin "gitaly" "gitlab-gitaly"
|
|
||||||
|
|
||||||
# install gitaly-ruby
|
|
||||||
insinto "/var/lib/gitlab-gitaly"
|
|
||||||
doins -r "ruby"
|
|
||||||
fperms 0755 /var/lib/gitlab-gitaly/ruby/bin/*
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitaly.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
|
|
||||||
inherit eutils git-r3 user
|
|
||||||
|
|
||||||
DESCRIPTION="Gitaly is a Git RPC service for handling all the git calls made by GitLab."
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitaly"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-${PN}-0.23.0-fix-Makefile.patch"
|
|
||||||
epatch "${FILESDIR}/0002-${PN}-0.35.0-fix-config.toml.example.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# TODO fowners, fperms on config.toml.example
|
|
||||||
insinto "/etc/gitlab"
|
|
||||||
newins "config.toml.example" "gitaly-config.toml"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.11.2.conf" "gitlab-gitaly"
|
|
||||||
newinitd "${FILESDIR}/${PN}-0.11.2.init" "gitlab-gitaly"
|
|
||||||
into "/usr"
|
|
||||||
newbin "gitaly" "gitlab-gitaly"
|
|
||||||
|
|
||||||
# install gitaly-ruby
|
|
||||||
insinto "/var/lib/gitlab-gitaly"
|
|
||||||
doins -r "ruby"
|
|
||||||
fperms 0755 /var/lib/gitlab-gitaly/ruby/bin/*
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitaly.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
|
|
||||||
inherit eutils git-r3 user
|
|
||||||
|
|
||||||
DESCRIPTION="Gitaly is a Git RPC service for handling all the git calls made by GitLab."
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitaly"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3
|
|
||||||
dev-ruby/bundler"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-${PN}-0.23.0-fix-Makefile.patch"
|
|
||||||
epatch "${FILESDIR}/0002-${PN}-0.43.1-fix-config.toml.example.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# TODO fowners, fperms on config.toml.example
|
|
||||||
insinto "/etc/gitlab"
|
|
||||||
newins "config.toml.example" "gitaly-config.toml"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.11.2.conf" "gitlab-gitaly"
|
|
||||||
newinitd "${FILESDIR}/${PN}-0.11.2.init" "gitlab-gitaly"
|
|
||||||
into "/usr"
|
|
||||||
newbin "gitaly" "gitlab-gitaly"
|
|
||||||
|
|
||||||
# install gitaly-ruby
|
|
||||||
insinto "/var/lib/gitlab-gitaly"
|
|
||||||
doins -r "ruby"
|
|
||||||
fperms 0755 /var/lib/gitlab-gitaly/ruby/bin/{gitaly-ruby,ruby-cd}
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitaly.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
|
|
||||||
inherit eutils git-r3 user
|
|
||||||
|
|
||||||
DESCRIPTION="Gitaly is a Git RPC service for handling all the git calls made by GitLab."
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitaly"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3
|
|
||||||
dev-ruby/bundler"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-${PN}-0.23.0-fix-Makefile.patch"
|
|
||||||
epatch "${FILESDIR}/0002-${PN}-0.43.1-fix-config.toml.example.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# TODO fowners, fperms on config.toml.example
|
|
||||||
insinto "/etc/gitlab"
|
|
||||||
newins "config.toml.example" "gitaly-config.toml"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.11.2.conf" "gitlab-gitaly"
|
|
||||||
newinitd "${FILESDIR}/${PN}-0.11.2.init" "gitlab-gitaly"
|
|
||||||
into "/usr"
|
|
||||||
newbin "gitaly" "gitlab-gitaly"
|
|
||||||
|
|
||||||
# install gitaly-ruby
|
|
||||||
insinto "/var/lib/gitlab-gitaly"
|
|
||||||
doins -r "ruby"
|
|
||||||
fperms 0755 /var/lib/gitlab-gitaly/ruby/bin/{gitaly-ruby,ruby-cd}
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitaly.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
|
|
||||||
inherit eutils git-r3 user
|
|
||||||
|
|
||||||
DESCRIPTION="Gitaly is a Git RPC service for handling all the git calls made by GitLab."
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitaly"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3
|
|
||||||
dev-ruby/bundler"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-${PN}-0.23.0-fix-Makefile.patch"
|
|
||||||
epatch "${FILESDIR}/0002-${PN}-0.59.2-fix-config.toml.example.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# TODO fowners, fperms on config.toml.example
|
|
||||||
insinto "/etc/gitlab"
|
|
||||||
newins "config.toml.example" "gitaly-config.toml"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.11.2.conf" "gitlab-gitaly"
|
|
||||||
newinitd "${FILESDIR}/${PN}-0.11.2.init" "gitlab-gitaly"
|
|
||||||
into "/usr"
|
|
||||||
newbin "gitaly" "gitlab-gitaly"
|
|
||||||
|
|
||||||
# install gitaly-ruby
|
|
||||||
insinto "/var/lib/gitlab-gitaly"
|
|
||||||
doins -r "ruby"
|
|
||||||
fperms 0755 /var/lib/gitlab-gitaly/ruby/bin/{gitaly-ruby,ruby-cd}
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitaly.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
|
|
||||||
inherit eutils git-r3 user
|
|
||||||
|
|
||||||
DESCRIPTION="Gitaly is a Git RPC service for handling all the git calls made by GitLab."
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitaly"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3
|
|
||||||
dev-ruby/bundler"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-${PN}-0.23.0-fix-Makefile.patch"
|
|
||||||
epatch "${FILESDIR}/0002-${PN}-0.66.0-fix-config.toml.example.patch"
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# TODO fowners, fperms on config.toml.example
|
|
||||||
insinto "/etc/gitlab"
|
|
||||||
newins "config.toml.example" "gitaly-config.toml"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.66.0.conf" "gitlab-gitaly"
|
|
||||||
newinitd "${FILESDIR}/${PN}-0.66.0.init" "gitlab-gitaly"
|
|
||||||
into "/usr"
|
|
||||||
newbin "gitaly" "gitlab-gitaly"
|
|
||||||
|
|
||||||
# install gitaly-ruby
|
|
||||||
insinto "/var/lib/gitlab-gitaly"
|
|
||||||
doins -r "ruby"
|
|
||||||
fperms 0755 /var/lib/gitlab-gitaly/ruby/bin/{gitaly-ruby,ruby-cd}
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitaly.git"
|
|
||||||
EGIT_COMMIT="v${PV}"
|
|
||||||
|
|
||||||
inherit eutils git-r3 user
|
|
||||||
|
|
||||||
DESCRIPTION="Gitaly is a Git RPC service for handling all the git calls made by GitLab."
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitaly"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3
|
|
||||||
dev-ruby/bundler"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-${PN}-0.23.0-fix-Makefile.patch"
|
|
||||||
epatch "${FILESDIR}/0002-${PN}-0.66.0-fix-config.toml.example.patch"
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# TODO fowners, fperms on config.toml.example
|
|
||||||
insinto "/etc/gitlab"
|
|
||||||
newins "config.toml.example" "gitaly-config.toml"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.66.0.conf" "gitlab-gitaly"
|
|
||||||
newinitd "${FILESDIR}/${PN}-0.66.0.init" "gitlab-gitaly"
|
|
||||||
into "/usr"
|
|
||||||
newbin "gitaly" "gitlab-gitaly"
|
|
||||||
|
|
||||||
# install gitaly-ruby
|
|
||||||
insinto "/var/lib/gitlab-gitaly"
|
|
||||||
doins -r "ruby"
|
|
||||||
fperms 0755 /var/lib/gitlab-gitaly/ruby/bin/{gitaly-ruby,ruby-cd}
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>manuel@fritteli.ch</email>
|
|
||||||
<name>Manuel Friedli</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,74 +0,0 @@
|
||||||
*gitlab-pages-0.6.1 (09 Mar 2018)
|
|
||||||
|
|
||||||
09 Mar 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-pages-0.6.1.ebuild:
|
|
||||||
www-servers/gitlab-pages: Add ebuild for version 0.6.1, dependency of gitlab-
|
|
||||||
ce-10.4.5
|
|
||||||
|
|
||||||
08 Mar 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/0001-fix-Makefile-0.4.0.patch, -gitlab-pages-0.4.0.ebuild,
|
|
||||||
-gitlab-pages-0.4.1.ebuild, -gitlab-pages-0.4.2-r1.ebuild,
|
|
||||||
-gitlab-pages-0.4.4.ebuild:
|
|
||||||
www-servers/gitlab-pages: Purge obsolete versions of gitlab-pages
|
|
||||||
|
|
||||||
09 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-files/0001-fix-Makefile-0.6.0.patch, -gitlab-pages-0.6.0.ebuild.bak,
|
|
||||||
gitlab-pages-0.4.0.ebuild, gitlab-pages-0.4.1.ebuild,
|
|
||||||
gitlab-pages-0.4.2-r1.ebuild, gitlab-pages-0.4.4.ebuild,
|
|
||||||
gitlab-pages-0.5.1.ebuild, gitlab-pages-0.6.0.ebuild:
|
|
||||||
www-servers/gitlab-pages: Add working ebuild for version 0.6.0. Finally!
|
|
||||||
|
|
||||||
17 Sep 2017; Manuel Friedli <manuel@fritteli.ch> -gitlab-pages-0.5.0.ebuild:
|
|
||||||
www-servers/gitlab-pages: Prune unneeded ebuild.
|
|
||||||
|
|
||||||
*gitlab-pages-0.5.1 (08 Sep 2017)
|
|
||||||
|
|
||||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-pages-0.5.1.ebuild:
|
|
||||||
www-servers/gitlab-pages: Add version 0.5.1, dependency of gitlab-ce-9.4.6.
|
|
||||||
|
|
||||||
*gitlab-pages-0.4.4 (08 Sep 2017)
|
|
||||||
|
|
||||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-pages-0.4.4.ebuild,
|
|
||||||
-gitlab-pages-0.4.3.ebuild:
|
|
||||||
www-servers/gitlab-pages: Add version 0.4.4, dependency of gitlab-ce-9.3.11.
|
|
||||||
|
|
||||||
*gitlab-pages-0.5.0 (09 Jul 2017)
|
|
||||||
|
|
||||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-pages-0.5.0.ebuild:
|
|
||||||
www-servers/gitlab-pages: Add ebuild for gitlab-pages-0.5.0
|
|
||||||
|
|
||||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
-gitlab-pages-0.3.2-r1.ebuild:
|
|
||||||
www-servers/gitlab-pages: Purge obsolete versions
|
|
||||||
|
|
||||||
*gitlab-pages-0.4.3 (17 Jun 2017)
|
|
||||||
|
|
||||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-pages-0.4.3.ebuild:
|
|
||||||
www-servers/gitlab-pages: Add version 0.4.3
|
|
||||||
|
|
||||||
*gitlab-pages-0.4.0 (13 Mar 2017)
|
|
||||||
|
|
||||||
13 Mar 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0001-fix-Makefile-0.4.0.patch, +gitlab-pages-0.4.0.ebuild:
|
|
||||||
www-servers/gitlab-pages: added ebuild for gitlab-pages-0.4.0
|
|
||||||
|
|
||||||
*gitlab-pages-0.3.2-r1 (13 Mar 2017)
|
|
||||||
|
|
||||||
13 Mar 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+gitlab-pages-0.3.2-r1.ebuild:
|
|
||||||
www-servers/gitlab-pages: added arches ~x86, ~arm, ~arm64; otherwise repoman
|
|
||||||
would complain about the most recent gitlab-ce ebuilds.
|
|
||||||
|
|
||||||
07 Mar 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
files/gitlab-pages-0.3.2.conf, files/gitlab-pages-0.3.2.init:
|
|
||||||
www-servers/gitlab-pages: Fixed buggy configuration: - Logfile was not
|
|
||||||
accessible - Init script didn't start nor stop the daemon correctly
|
|
||||||
|
|
||||||
07 Mar 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-pages-0.3.2.ebuild:
|
|
||||||
www-servers/gitlab-pages: Fixed the creation ofthe new user (syntax).
|
|
||||||
|
|
||||||
*gitlab-pages-0.3.2 (07 Mar 2017)
|
|
||||||
|
|
||||||
07 Mar 2017; Manuel Friedli <manuel@fritteli.ch>
|
|
||||||
+files/0001-fix-Makefile-0.3.2.patch, +files/gitlab-pages-0.3.2.conf,
|
|
||||||
+files/gitlab-pages-0.3.2.init, +gitlab-pages-0.3.2.ebuild, +metadata.xml:
|
|
||||||
www-servers/gitlab-pages: added first ebuild for gitlab-pages
|
|
|
@ -1,11 +0,0 @@
|
||||||
AUX 0001-fix-Makefile-0.3.2.patch 744 SHA256 7efe9ee3cdf0e7e324155d05651f535b39f151adfd8f8bc2ea36eea64e40f1e1 SHA512 2c50e6bb214be622546d9c07f4f39b83d116976dbc9c040a0dd74c70dc8deadf5f6870468fda957b3a4d3df8eda982c3d86612cb8dd7865650cd3fe9202f7b11 WHIRLPOOL a1babc1249f3b48f376163a9ab63a8ca3563da544cf15d04a79fcbb38dcb61679da8304e3eb2afd8a0f1d662be8f3cc144b9cd0928504b197d11b250670d40d3
|
|
||||||
AUX gitlab-pages-0.3.2.conf 148 SHA256 2b1d40d38d729a4e705455a2fbe745618c573cdc7159683ebf42f3a28d41a473 SHA512 57ff7ef4f3c5f221e39f8cfd29ab58ccb126d672260ee983d6f1221bfe2cfe5553b4f0187ce384f05fc6694ad31c2f7ae02155d0c21247eccd1d7dbf1632ffba WHIRLPOOL 1cb70bb5a9e6876a58e7cf78a68e9a08a0ae947237a537f7cf93b727cdb69482114cd2c1ccd17e27b80590be11e9904bae81e06afab83066c0d10926d22dd301
|
|
||||||
AUX gitlab-pages-0.3.2.init 698 SHA256 6751226148f5c8b53bdf3422053115ed6bb6ac3d7795b605617a7733a2b84437 SHA512 10e299febee0a66f03e8debe3f20ad635b52b5238a2ad23f585d30f14d5c0f591825bd892119f564f427e93a539184e39424c8cdc78200b2dbb5d0f588738176 WHIRLPOOL 7142b6a056a0d0a90bb18d1fdc5995c07156e05216b9e5779548427ad6f7aed4cf8eb090acfcbd0a7cc07826c0b6dfc5276ca176a80783d40405d2011a253fe0
|
|
||||||
DIST gitlab-pages-0.5.1.tar.bz2 224270 SHA256 b61ed9c12baf197dfd466342301ccb3160fbfe8fe61270a31a72e5503504f50b SHA512 973615efb54290c0d6b41455d91bf6343d8b09687565b8ad5e72cd69faea99cc3819c3aabea9e7cb94414a61835104e052affb1072ed62b1e2f343517eb94184 WHIRLPOOL 421500d5f0cee352a95dd59e9b799a9b3fd6b7639c656bd54fa601e061ddaa5062fa0b6a567bfce2543dcf9755b824a81362171c779db2f3f238faf760a6c472
|
|
||||||
DIST gitlab-pages-0.6.0.tar.bz2 237765 SHA256 2bd99b5c4a1ad05ac02f17f5b450c308d1ef5936ff2e44be706705df8376c41b SHA512 935572062268c8a8429634377e02060f55feb2dfbd6b16e4487c1c4043dff435c304798dd2097f381f1c2e175c21d840e2dee76851dc9e03eeaa49d2b003900d WHIRLPOOL 01541d143a9511911cdd7c0c97d63cc48c682b19392c96ae429d98eeba6aba220e811d4da6826da2d417439202a33fc7a0deb16a9dda8a5a65f0e6b0fa9adf54
|
|
||||||
DIST gitlab-pages-0.6.1.tar.bz2 238746 SHA256 267a9165470dc820363c61eb20170838c1916b1a7a0b31b6fdf018532db26f64 SHA512 3c93772b7d0b2ff76eae911adf4341492b803deb768eaf82fc03626154892392bd21456c3bbfde54885948ecc290dff5d5e828efcfc0d385aa0160cffcb67013 WHIRLPOOL d841e1bd1952fa4ff852201169c636eb83282b2559a57f9d1405e022aba5cbd124b196757c8afe4ce718353657474eede757181c29ae2769e5278e1af737850e
|
|
||||||
EBUILD gitlab-pages-0.5.1.ebuild 1429 SHA256 be42145727bdc839161d6ac74bde5f59f7b69d2c204988e328d6ad2f02ee8704 SHA512 a585ab78624455480bd11ae599bc299a27e99b905b5fd686d71c0c06c157b937e63a46235fdbca758e47a938612b202d1887ef8749c5bd7c3abcf2fa5f48dfee WHIRLPOOL 57d1ace304dc994b27eb1d550885de5356cb2ce07e1d80c7a3c4f1c425115e59bce9220470e8ad9808b1f38d7bcd028ddd43dd04424f8556355417c81ec78a00
|
|
||||||
EBUILD gitlab-pages-0.6.0.ebuild 1800 SHA256 7522d58e9b03a923f2e39cd6607c978485fcf3bd5d031f22c5c1831ffa81bb4f SHA512 487381485e2a9cecd8c7dc7a553ab5d107a49db9c77cd0c3d77c97c8e65f43207e6e5fe853959fed2df085a9047ee55b0ea332b8e507338b6ab44004bc7173db WHIRLPOOL efb8a378df194d37b6e59663b488aaa1608b7650489b160d59e98eada7e9f5328287f99843db7e2ebbfeaceaf2ebffc0863ffae915cc8c8f5b7e0a6a66a7206c
|
|
||||||
EBUILD gitlab-pages-0.6.1.ebuild 1800 SHA256 924a7c16182db2151a4ed0886a913117ff0c4609a789c4c7e67775d0d89aa2ac SHA512 33092b419793513ac046bc5c154c934ce50a557fa8373b7c84b04431c8eb02545d45dd9caae6ec39304e9b5db714c646c04ec9979fc36d3e4393f20b984dd5dd WHIRLPOOL c8dee5cdb5ed42ee34c5a13be374b26dcb979bd7fed850789d99735034cc5d734fc0b67ac7c791c04d9e68c7476690b0f7a869c42914d6e0cbd59085290dbe2b
|
|
||||||
MISC ChangeLog 3086 SHA256 d75860c7b670a98ba601d44adaf414e622ced8649d3370e3d7b449d2ea93153f SHA512 cd1a1202a53f2a693ea9c7015230677de6f8125d850fed500605aad13f39c6b37d7a6491e0b9eddc8ca95e507ecd87567a4811e0018a95302c523c9979789550 WHIRLPOOL 7b9b166afb8c307c3a50d4b042eb47187d916b32db45d4858c7c8fc4534ead433de31dcdda4119d9fc292434f1fe5abbdc3ad3851c106be1450896393e142374
|
|
||||||
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1
|
|
|
@ -1,18 +0,0 @@
|
||||||
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')
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
LISTEN_HTTP=:9090
|
|
||||||
LISTEN_HTTPS=
|
|
||||||
LISTEN_PROXY=
|
|
||||||
PAGES_DOMAIN=example-pages.com
|
|
||||||
PAGES_ROOT=/opt/gitlab/shared/pages
|
|
||||||
|
|
||||||
LOGFILE=/var/log/gitlab-pages.log
|
|
|
@ -1,21 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting gitlab-pages"
|
|
||||||
|
|
||||||
checkpath -f -m 0640 -o @USER@:@USER@ /var/log/gitlab-pages.log
|
|
||||||
|
|
||||||
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_HTTP} \
|
|
||||||
${LISTEN_HTTPS:+-listen-https }${LISTEN_HTTPS} \
|
|
||||||
${LISTEN_PROXY:+-listen-proxy }${LISTEN_PROXY} \
|
|
||||||
-pages-domain "${PAGES_DOMAIN}" -pages-root "${PAGES_ROOT}"
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping gitlab-pages"
|
|
||||||
start-stop-daemon --stop --exec /usr/bin/gitlab-pages --pidfile /run/gitlab-pages.pid --user @USER@:@USER@
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1,61 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit eutils golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-pages/..."
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_HASH="243bdbc"
|
|
||||||
|
|
||||||
DESCRIPTION="Simple HTTP server written in Go made to serve GitLab Pages with CNAMEs and SNI"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-pages"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=v${PV} -> ${P}.tar.bz2"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0/${PVR}"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3"
|
|
||||||
|
|
||||||
RESTRICT="test mirror"
|
|
||||||
|
|
||||||
MY_USER="gitlab_pages"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 -1 -1 ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-fix-Makefile-0.3.2.patch"
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "s/@@REVISION@@/${MY_GIT_HASH}/" \
|
|
||||||
src/gitlab.com/gitlab-org/${PN}/Makefile
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN%/*} all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
golang-build_src_install
|
|
||||||
dobin bin/*
|
|
||||||
dodoc src/${EGO_PN%/*}/README.md src/${EGO_PN%/*}/CHANGELOG
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
local rcscript="${PN}-0.3.2.init"
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${PN}"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.3.2.conf" "${PN}"
|
|
||||||
}
|
|
|
@ -1,67 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-pages/..."
|
|
||||||
|
|
||||||
EGIT_COMMIT="15c938ca"
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=${MY_PV} -> ${P}.tar.bz2"
|
|
||||||
|
|
||||||
EGO_BUILD_FLAGS="-ldflags '-X main.VERSION=${PV} -X main.REVISION=${EGIT_COMMIT}'"
|
|
||||||
|
|
||||||
inherit eutils golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
DESCRIPTION="Simple HTTP server written in Go made to serve GitLab Pages with CNAMEs and SNI"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-pages"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0/${PVR}"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3"
|
|
||||||
|
|
||||||
RESTRICT="test mirror"
|
|
||||||
|
|
||||||
MY_USER="gitlab_pages"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 -1 -1 ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# silly golang-build_src_compile doesn't work. some crap about
|
|
||||||
# escaping ...
|
|
||||||
ego_pn_check
|
|
||||||
set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
|
|
||||||
go build -v -work -x -ldflags "-X main.VERSION=${PV} -X main.REVISION=${EGIT_COMMIT}" "${EGO_PN}"
|
|
||||||
echo "$@"
|
|
||||||
"$@" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# silly golang-build_src_install doesn't work. some crap about
|
|
||||||
# escaping ...
|
|
||||||
ego_pn_check
|
|
||||||
set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
|
|
||||||
go install -v -work -x -ldflags "-X main.VERSION=${PV} -X main.REVISION=${EGIT_COMMIT}" "${EGO_PN}"
|
|
||||||
echo "$@"
|
|
||||||
"$@" || die
|
|
||||||
golang_install_pkgs
|
|
||||||
|
|
||||||
dobin bin/*
|
|
||||||
dodoc src/${EGO_PN%/*}/README.md src/${EGO_PN%/*}/CHANGELOG
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
local rcscript="${PN}-0.3.2.init"
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${PN}"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.3.2.conf" "${PN}"
|
|
||||||
}
|
|
|
@ -1,67 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-pages/..."
|
|
||||||
|
|
||||||
EGIT_COMMIT="32dcea08"
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=${MY_PV} -> ${P}.tar.bz2"
|
|
||||||
|
|
||||||
EGO_BUILD_FLAGS="-ldflags '-X main.VERSION=${PV} -X main.REVISION=${EGIT_COMMIT}'"
|
|
||||||
|
|
||||||
inherit eutils golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
DESCRIPTION="Simple HTTP server written in Go made to serve GitLab Pages with CNAMEs and SNI"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-pages"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0/${PVR}"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3"
|
|
||||||
|
|
||||||
RESTRICT="test mirror"
|
|
||||||
|
|
||||||
MY_USER="gitlab_pages"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 -1 -1 ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# silly golang-build_src_compile doesn't work. some crap about
|
|
||||||
# escaping ...
|
|
||||||
ego_pn_check
|
|
||||||
set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
|
|
||||||
go build -v -work -x -ldflags "-X main.VERSION=${PV} -X main.REVISION=${EGIT_COMMIT}" "${EGO_PN}"
|
|
||||||
echo "$@"
|
|
||||||
"$@" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# silly golang-build_src_install doesn't work. some crap about
|
|
||||||
# escaping ...
|
|
||||||
ego_pn_check
|
|
||||||
set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
|
|
||||||
go install -v -work -x -ldflags "-X main.VERSION=${PV} -X main.REVISION=${EGIT_COMMIT}" "${EGO_PN}"
|
|
||||||
echo "$@"
|
|
||||||
"$@" || die
|
|
||||||
golang_install_pkgs
|
|
||||||
|
|
||||||
dobin bin/*
|
|
||||||
dodoc src/${EGO_PN%/*}/README.md src/${EGO_PN%/*}/CHANGELOG
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
local rcscript="${PN}-0.3.2.init"
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${PN}"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.3.2.conf" "${PN}"
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>manuel@fritteli.ch</email>
|
|
||||||
<name>Manuel Friedli</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue