commit:     a38acd9026fb282e026c0801902ac27b74d7c14e
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 15 19:49:06 2022 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Nov 15 19:51:59 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a38acd90

dev-util/gitlab-runner: add 15.5.1

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

 dev-util/gitlab-runner/Manifest                    |  2 +
 dev-util/gitlab-runner/gitlab-runner-15.5.1.ebuild | 67 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index 06b000f2cca2..56f1f8987580 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -4,3 +4,5 @@ DIST gitlab-runner-15.4.1-deps.tar.xz 138998168 BLAKE2B 
cee390b7955ee98eccffca6e
 DIST gitlab-runner-15.4.1.tar.gz 1310885 BLAKE2B 
9ba470444f7ba2db8be6044548dc9d7ee1ef8f50e63b0bc1ec2ba65ab9b5d035c5bc3a3bb50c4bf0d5acfa1329fe06fe9769f847aaa73c61ff116123f637e3f9
 SHA512 
1334c1d3fc830f49a0977cd43045105d013658361d55c807a99a2b36bd2b9dc4f3410185f13264a50a7cc13ab97d2191ec4a4daf45c10b24b42375dd6a2f6d13
 DIST gitlab-runner-15.5.0-deps.tar.xz 151900052 BLAKE2B 
cebea3c3a78030063e6fe551734bb22b80bd3200779195a5790ed3dfbe9519d81ce95dab912f62d84838026a8c7f2c7e9b89e16d7add598d1484bb5f5f182334
 SHA512 
a65c123dd6e53d663ed411ad0a95be0b0d9f7fafd36d73f893d3b55bf845df8b6048fca6ebda7210d87a43ab8868d7c41ba36d5f663d91050239d448b2719357
 DIST gitlab-runner-15.5.0.tar.gz 1327027 BLAKE2B 
edbf9db814ee3790decec9e14342fa6bff12433c3d20a45905dca294c655e09600af8adcf6da96635c8b65e7c7656aac61deec135dd153463e34b1bc198a5c10
 SHA512 
5452dce98144d9994221937c8ef8428fe6f23a8421fbf42479b9bf02244263cf42c1007349313076f3a003c2528c3d3b2e170a36523180889f2da61b2a52bd36
+DIST gitlab-runner-15.5.1-deps.tar.xz 151906516 BLAKE2B 
50dced95fd72259d31d0dd6513ddc6aa1001c5ca83a1a7b33028a9bc163c553e2bcd80dff32443813bb85f8d215b8ae73c8f75f0cfedeb6062cd6824f0415f04
 SHA512 
a74673d48de86e337b936b60a35820621f35e6a70087ebf59a8641c6f3f1d5e1ba7d0e3156815d8204c3dbcd349f5e903be4501f566e419f5ca46382cebbf15f
+DIST gitlab-runner-15.5.1.tar.gz 1327734 BLAKE2B 
236d967a5ed18461d64429e078d3e40843e74aca96c23d572d070c13abf7ba3a3c7b4ba6046285d2aed261bdd2d9f5207f23a6b2c7c5cdc95c8cda5e0165f4c3
 SHA512 
c1ad7144bcea76b9ba20068bccc2b7a96240536cb0bdedcb0566674d05869c38f9052868314c3a58bddb1c6af304030fe0a2d055431d73eaff80ecb2226ea3e4

diff --git a/dev-util/gitlab-runner/gitlab-runner-15.5.1.ebuild 
b/dev-util/gitlab-runner/gitlab-runner-15.5.1.ebuild
new file mode 100644
index 000000000000..ee38e0d1c049
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-15.5.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2022 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=7178588d
+
+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.gz
 -> ${P}.tar.gz"
+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 )
+
+PATCHES=(
+       # https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3498
+       "${FILESDIR}"/build-for-arm64.patch
+       )
+
+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