summaryrefslogtreecommitdiff
path: root/dev-util
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/gitlab-runner/Manifest4
-rw-r--r--dev-util/gitlab-runner/gitlab-runner-14.3.0.ebuild68
2 files changed, 69 insertions, 3 deletions
diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index faec1c7e3b5d..c41c3ec7b7ce 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -1,4 +1,2 @@
-DIST gitlab-runner-14.1.0.tar.bz2 6510712 BLAKE2B 3179d124ac631f66d30578395ad0b4fb2e1293f6920196775ac2fa2a17d785d6f4ac3ec6fc5ba3f1a5933015e897915bcea60a98b05cb508653947c442c3de26 SHA512 b62c17f898305da7706991273006bd0c96446f137e17b00cc1680ede10c8e4faebb8cd211c579bc04db90876d21189113b44cf3b3e6180f4a6a68a985bb24d44
DIST gitlab-runner-14.2.0.tar.bz2 6525315 BLAKE2B 330799ef07443a723b6f81f6c4c79a711adcd986bb561249305b6e37fb0c939f0cf0e31df2fa0ae2b3d810c923445ccda1f52cdd2e31838a283473e6ae43c808 SHA512 ce797fb98038f909a5ef309dee5977a9cf2f2532473807f34edb4e7c48d3e873b70505b062dfb1ff333e2a74f0983c35d105e4c2a627fba8d99d124f84fd1c34
-DIST prebuilt-x86_64-14.1.0.tar.xz 40209940 BLAKE2B 6ba2d2e4fd0f32fbdd7394ffaa24a95295cc3db26c35ae85f5c77de9946b45b5505444a386c88069569bcc62dd20ddc87ab7828675bfc2a8be69ab991b3295ac SHA512 fc51b6f68313ccd5e86f1e57c5d9b3e79b092345e41d2e67da7d574265a7899d6b72527503163a136fd92c81c41acd07aa370603f9d4eac7e7c87cb0714eb323
-DIST prebuilt-x86_64-14.2.0.tar.xz 40210340 BLAKE2B d56cdbb2450d94d13980b8448a062e5d5f639d1dc9d9504433785c40f664a0054fd03433bead8285eb4dea3b8568ef3a71a6d587ec67fbd3883cbcf0935943dc SHA512 51487f0ad21c9b6256730364aa34d77030bf1221b7e489ac41928039215ee46abd03e5ce860affb7e838ebfd1d07ec39ede8fe8a6beebc8f3531109bfb24627b
+DIST gitlab-runner-14.3.0.tar.bz2 6585977 BLAKE2B 3f48c89c660d9bdc7b16733ad8f7008c09a20c5fbd011fe092579af771c691e9d7fefe1bfb61e1500b82431a887dd894e8daef358a8bd57d7c75b103ea25d75a SHA512 f2a2297f4aed6090ec29af17e96dc5e66fbf99a8b10785a3d0c661f11b564af7b11528e3d0f5db70137d61708b9a76e18c3e761ee14593ea1e765c066b0e5311
diff --git a/dev-util/gitlab-runner/gitlab-runner-14.3.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-14.3.0.ebuild
new file mode 100644
index 000000000000..e322c551e0ee
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-14.3.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 2020-2021 Liguros Authors
+# Distributed under the terms of the GNU General Public License v2
+EAPI=7
+
+inherit golang-build golang-vcs-snapshot user readme.gentoo-r1 systemd tmpfiles user
+
+DESCRIPTION="GitLab Runner"
+HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-runner"
+EGO_PN="gitlab.com/gitlab-org/gitlab-runner"
+SRC_URI="${HOMEPAGE}/-/archive/v${PV}/${P}.tar.bz2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~arm ~arm64"
+IUSE=""
+
+RDEPEND="
+ acct-group/gitlab
+ acct-user/gitlab-runner
+"
+DEPEND="${RDEPEND}"
+
+RESTRICT="mirror strip"
+
+DOC_CONTENTS="Register the runner as root using\\n
+\\t# gitlab-runner register\\n
+Configure the runner in /etc/gitlab-runner/config.toml"
+
+S="${WORKDIR}/${P}/src/gitlab.com/gitlab-org/${PN}"
+
+src_unpack() {
+ golang-vcs-snapshot_src_unpack
+}
+
+src_compile() {
+ echo `pwd`
+ LDFLAGS="-X ${NS}.NAME=${PN} -X ${NS}.VERSION=${PV}
+ -X ${NS}.REVISION=${REVISION} -X ${NS}.BUILT=$(date -u +%Y-%m-%dT%H:%M:%S%z)
+ -X ${NS}.BRANCH=${BRANCH}"
+
+ GOFLAGS="-v -x -mod=vendor" \
+ GO111MODULE=on go build -ldflags "${LDFLAGS}" || die "go build failed"
+}
+
+src_install() {
+ einstalldocs
+
+ exeinto /usr/libexec/gitlab-runner
+ doexe gitlab-runner
+ dosym ../libexec/gitlab-runner/gitlab-runner /usr/bin/gitlab-runner
+
+ newconfd "${FILESDIR}"/gitlab-runner.confd gitlab-runner
+ newinitd "${FILESDIR}"/gitlab-runner.initd gitlab-runner
+ systemd_dounit "${FILESDIR}"/gitlab-runner.service
+
+ readme.gentoo_create_doc
+
+ insopts -oroot -ggitlab -m0640
+ diropts -oroot -ggitlab -m0750
+ insinto /etc/gitlab-runner
+ keepdir /etc/gitlab-runner /var/lib/gitlab-runner
+ doins "${S}"/config.toml.example
+}
+
+pkg_postinst() {
+ tmpfiles_process gitlab-runner.conf
+ readme.gentoo_print_elog
+}