commit:     df8bfb3de085915a52c87ee55022f0150e786762
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  8 18:52:26 2025 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Sep  8 18:53:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df8bfb3d

dev-util/gitlab-runner: add 18.3.1

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

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

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index 310736906f59..73809f1960e5 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -4,3 +4,5 @@ DIST gitlab-runner-18.2.2-deps.tar.xz 118914016 BLAKE2B 
ef7e781547afa4de1db6000c
 DIST gitlab-runner-18.2.2.tar.bz2 1962570 BLAKE2B 
84fefadae62a394e20249eb37a4dcf790cb9df323154e081034e69785dbb147408b715f5ab97f80a6450e3efffa6ec693605da1adb00e35f942194294639ff06
 SHA512 
326a05c588b94c5cd6c65789b8e3c05dc71dd1972d163e7fd94f1f66b82691a39deea2387bf72284ca32231fc9c99fa94d9adb2ae45bbd4a0b093656758d7108
 DIST gitlab-runner-18.3.0-deps.tar.xz 118639172 BLAKE2B 
9ee9ab29b37ac62365ff3cfdfc6a27d26b98e891e5265e03ce8d1ccf01f3b0bab44de7285771a9efa4c47835741eb28f5fbf33daa4559b87f6035eb76d1c39e9
 SHA512 
7ff93e3436031bbb7d4e1c30161914aead6e55ec86430ccb9763b5544499f4b0179a41ae0ba11705427883758e71b190db50dbfbb25c4e0f87211bb02bad7b8e
 DIST gitlab-runner-18.3.0.tar.bz2 2018932 BLAKE2B 
ec36023d3ac033cba7000f3df98ab403b2cf5281c4b9002d36fdfd84ac3bc0ec33e9a42078ed326bca9000b5a6716e2ce9fc9ad4cfccce4659ad9567167f8efd
 SHA512 
2272e650a6ed2f9bd782b3c8d1d024d1be4a020cd2e8860d76fc55747aceb1c33c505d0984ea0cac68ff2a4251f48d57e80960fe4ab218e4a14e4a2fa444da04
+DIST gitlab-runner-18.3.1-deps.tar.xz 118959964 BLAKE2B 
c3b1243dbf26179e802fae563981d72a08a3efecf8e45cd1a3803220a9c5804b47dff746a89d948bf3c5f9c9272b762e70040aba87b2d01593b3bfd7388ae77e
 SHA512 
77d50a96c21a02b7e0d59b0debf5b8f6ff914470ca06088c96ec738961379d8992587dd23c28ebad288c20a907434bc680fae0d6e7d5400276e6d586c7184cd9
+DIST gitlab-runner-18.3.1.tar.bz2 2018838 BLAKE2B 
f357afe8186d1fd56f25efd2334c873d224a75a79b552f37bfc2920541369d64f22bdb31a51c226abe24d5a4a2ee92289aaa5ebfff8d27a6137c75c5bff30d5d
 SHA512 
e8dde34479d1c7320dae1990d37b08ce9f3757166fa104024693803085e18781f63b204923db6608277489c4f69fdc1dd38faddf43c336de084687d85f05f989

diff --git a/dev-util/gitlab-runner/gitlab-runner-18.3.1.ebuild 
b/dev-util/gitlab-runner/gitlab-runner-18.3.1.ebuild
new file mode 100644
index 000000000000..8e6add6a67f5
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-18.3.1.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=5a021a1c
+
+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