commit:     75675222442ceb84292f6b62ec8afbc16b3ab926
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  3 02:32:22 2025 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Sep  3 02:32:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75675222

dev-util/gitlab-runner: add 18.2.2

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

 dev-util/gitlab-runner/Manifest                    |  2 +
 dev-util/gitlab-runner/gitlab-runner-18.2.2.ebuild | 68 ++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index 9fce052bfed7..2ab20825f0ab 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -8,3 +8,5 @@ DIST gitlab-runner-18.1.3-deps.tar.xz 118471456 BLAKE2B 
5c8d3be70fe9e280deb697ac
 DIST gitlab-runner-18.1.3.tar.bz2 1957762 BLAKE2B 
866aa9b13b600f9e63fcd1cc48624c59e2c4f496fc06b7333364c3c2f90c63e3cee2fd04ad3d02ba75ea5417fdef925e452600e0313a9a1d4857dfaa774410f5
 SHA512 
5dcad1528d6c9144815dff1bdd66cff49282e6e912d654710936ba5f206a5345da3fb62f60a86697fa5f166fd00f8b730ece80da991dfb871e642253d9e338ed
 DIST gitlab-runner-18.2.1-deps.tar.xz 118550600 BLAKE2B 
84a1dcbe14cde2a35456610d1c538e235fa9069c7bc6e3efc721397e78e4a1facf40e9a27597274abd55dafc31c61ace7e238e90af8a09373058d56ca6eea996
 SHA512 
24d3204a1c26972e89c7e492faf94602ee771b4be8dcf2ad53b8348ab321a6716285f77685dbe8dca4826c01509fa0dc7ac45d34fd5ddc6f2123646b90e547ef
 DIST gitlab-runner-18.2.1.tar.bz2 1961986 BLAKE2B 
f18b69b30e7cf4ee8ebac7270da0078c7966c1608572a4287995ae2b84d422a1a82e5a0864f56cf1b86c99945f0b37af3a29a7208f0afb8e48706206d4dca402
 SHA512 
26a3123427e90f98be39645a191503b4416808dee2795583f939ee5af76cea0133bdaf030eac1299726d31f4f42da7e9eceb14215d22a1bfc192e74d81eedd49
+DIST gitlab-runner-18.2.2-deps.tar.xz 118914016 BLAKE2B 
ef7e781547afa4de1db6000cd9d74406bb28a9e5826014a41d19517f491e2e2c5a85325678ae8dba0c3e16b4600760522c8404248a41b1173b9d1b5af1627fb2
 SHA512 
d2e73bdf71d8742bbaae57b5458d617f30ca361851342ec7d853f03ed731deee13d52ab0c7a27d52d323e49625332dedf6e481c3dd1aa24290f7d1ff32d2bf61
+DIST gitlab-runner-18.2.2.tar.bz2 1962570 BLAKE2B 
84fefadae62a394e20249eb37a4dcf790cb9df323154e081034e69785dbb147408b715f5ab97f80a6450e3efffa6ec693605da1adb00e35f942194294639ff06
 SHA512 
326a05c588b94c5cd6c65789b8e3c05dc71dd1972d163e7fd94f1f66b82691a39deea2387bf72284ca32231fc9c99fa94d9adb2ae45bbd4a0b093656758d7108

diff --git a/dev-util/gitlab-runner/gitlab-runner-18.2.2.ebuild 
b/dev-util/gitlab-runner/gitlab-runner-18.2.2.ebuild
new file mode 100644
index 000000000000..39f057347830
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-18.2.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit eapi9-ver go-module systemd tmpfiles
+
+# make sure this gets updated for every bump
+GIT_COMMIT=50bc0499
+
+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";
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+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"
+
+src_compile() {
+       emake \
+               BUILT="$(date -u '+%Y-%m-%dT%H:%M:%S%:z')" \
+               GOX="${EPREFIX}/usr/bin/gox" \
+               REVISION=${GIT_COMMIT} \
+               VERSION=${PV} \
+               runner-and-helper-bin-host
+}
+
+src_test() {
+       CI=0 ego test
+}
+
+src_install() {
+       newbin out/binaries/gitlab-runner-linux-* gitlab-runner
+       newbin out/binaries/gitlab-runner-helper/gitlab-runner-helper.linux-* 
gitlab-runner-helper
+       DOCS=( docs CHANGELOG.md README.md )
+       einstalldocs
+       insinto /usr/share/${PN}
+       doins config.toml.example
+
+       newconfd "${FILESDIR}/${PN}-18.confd" "${PN}"
+       newinitd "${FILESDIR}/${PN}-18.initd" "${PN}"
+       systemd_dounit "${FILESDIR}/${PN}.service"
+       newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf
+       keepdir /etc/${PN}
+       fperms 0700 /etc/${PN}
+       fowners gitlab-runner:gitlab-runner /etc/${PN}
+}
+
+pkg_postinst() {
+       tmpfiles_process gitlab-runner.conf
+       if ver_replacing -lt 18.0.0; then
+               ewarn "The logs are now redirected to syslog instead of being 
stored in /var/log/gitlab-runner"
+               ewarn
+       fi
+       [[ -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