commit:     1ce22cc01a8e096fc59c49d287eef15cdfb491e6
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 11 23:13:20 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Feb 11 23:13:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ce22cc0

dev-util/gitlab-runner: add 15.8.2

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-util/gitlab-runner/Manifest                    |  2 +
 dev-util/gitlab-runner/gitlab-runner-15.8.2.ebuild | 62 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index 838964863f11..14b8a69fd0b8 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -6,3 +6,5 @@ DIST gitlab-runner-15.7.4-deps.tar.xz 160601896 BLAKE2B 
a208b751544fec8033276b54
 DIST gitlab-runner-15.7.4.tar.bz2 1250425 BLAKE2B 
933aa20c9c4ae0008caf0a63e3cc0b8fb22e34830d2536a54980b484913f8e6dc545539697fb36185d0cb1360660a9162fd5231ef4ef351177062b9b2cd56dc5
 SHA512 
9db90d39e1c52676165f39e9002da777c2e8c4c38c7f9538579628d858e9e541ee1b2e66156c0b6387d503088ea75084dee82a761733366dbd3db895da80a9e5
 DIST gitlab-runner-15.8.0-deps.tar.xz 160683188 BLAKE2B 
38a3fe7e527553cc53382338ecb52d2a3c8c94b72b04d0d3dfa01e4b4953c9a73fb71982daa60f6ea735c77c6d18d78f40381fce9d9f261ad3d8d5cab527bdf8
 SHA512 
3e412e20cbdd76d896e2e3b40fe8558de1eea69fae1649a91c04ec7f16afcdc0611aa033fab49334ccb5fc0a6c4062c3de858f0419b93a8b10896176f2ff58db
 DIST gitlab-runner-15.8.0.tar.bz2 1256911 BLAKE2B 
309f98898a122b82f107e286ef3212e7b3e1345e8ba4486b9e02e10da717ba71b08f2075a2f6ddedf5d64506954f65754410e30bc729f0cf005ad8845912e72b
 SHA512 
4239218aaf53db3020f5eb6edc17014b7d7550093bc9a4b545216eb1f2e155c77418eb2d5cf2ec1c1554664b6763354cd8d5fcb3d3ffbaeb6839b4282be76cdf
+DIST gitlab-runner-15.8.2-deps.tar.xz 160677404 BLAKE2B 
7b1d07dbcbf7ce9255969036f6c29cd2b01d59ff5763f2bb6993def34fc714038c6ace11f2cfbec728396acf93c158d0b350b62340d5795f98e84999c3bf2fed
 SHA512 
9dc6b6e19dc5f203142049e75359ccd31d750803bdee95434436bcc6d9ac2148a92da00598454d5642aafa883e145174bdd3989a525a76db0b1646d0e96c919f
+DIST gitlab-runner-15.8.2.tar.bz2 1258847 BLAKE2B 
be5e704bf12c7c64cab38c8b5a42b03f7023f1e6d390807fbb5b89a650ad07ec1cae2d4f1e7af946e87d33fc6eb14c944912443880ce51b62a944ac8c87e1598
 SHA512 
3faf5ccd6948511a7f5b31996e860806fe4b15a2b6ee2bf5eb53bc56f52cf4393d20b2a2a93a8741c29a517e8e6b5cb6af3f26d9438aac518a454b300a846557

diff --git a/dev-util/gitlab-runner/gitlab-runner-15.8.2.ebuild 
b/dev-util/gitlab-runner/gitlab-runner-15.8.2.ebuild
new file mode 100644
index 000000000000..99558db152a5
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-15.8.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd tmpfiles
+
+# make sure this gets updated for every bump
+GIT_COMMIT=4d1ca121
+
+DESCRIPTION="The official GitLab Runner, written in Go"
+HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-runner";
+SRC_URI="https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v${PV}/${PN}-v${PV}.tar.bz2
 -> ${P}.tar.bz2"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 ~riscv"
+
+COMMON_DEPEND="acct-group/gitlab-runner
+       acct-user/gitlab-runner"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+BDEPEND="dev-go/gox"
+
+DOCS=( docs CHANGELOG.md README.md config.toml.example )
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_compile() {
+       emake \
+               BUILT="$(date -u '+%Y-%m-%dT%H:%M:%S%:z')" \
+               GOX="${EPREFIX}/usr/bin/gox" \
+               REVISION=${GIT_COMMIT} \
+               VERSION=${PV} \
+               runner-bin-host
+}
+
+src_test() {
+       CI=0 ego test
+}
+
+src_install() {
+       dobin out/binaries/gitlab-runner
+       einstalldocs
+
+       newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+       newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+       systemd_dounit "${FILESDIR}/${PN}.service"
+       newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf
+       keepdir /{etc,var/log}/${PN}
+       fperms 0700 /{etc,var/log}/gitlab-runner
+       fowners gitlab-runner:gitlab-runner /{etc,var/log}/${PN}
+}
+
+pkg_postinst() {
+       tmpfiles_process gitlab-runner.conf
+       [[ -f ${EROOT}/etc/gitlab-runner/config.toml ]] && return
+       elog
+       elog "To use the runner, you need to register it with this command:"
+       elog "# gitlab-runner register"
+       elog "This will also create the configuration file in 
/etc/gitlab-runner/config.toml"
+}

Reply via email to