commit:     1ab77e7d17087148e0f749b22899e30a362f6966
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  2 15:51:21 2026 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Feb  2 15:59:56 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ab77e7d

dev-util/gitlab-runner: add 18.7.2

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

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

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index eb551c5d9b6b..f3ab1348c2f3 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -4,3 +4,5 @@ DIST gitlab-runner-18.6.6-deps.tar.xz 127696496 BLAKE2B 
82816ce50920884eb18f0cf2
 DIST gitlab-runner-18.6.6.tar.bz2 2099586 BLAKE2B 
1f98e35fed630e99c6752ccc9f8875f040510f81794e18d558bfe8302fe2ed41f81fe899d711f4001a2b36407e3f7d9c2aa57dc0b1168744e3d6280c31be1e7b
 SHA512 
8b5a736562a52a6838f2008e956e92ad1be58635dd6551e64957f97e5b0f419b53b66dcecb647a79d67094b59c733cfd0e90939fcc4b0cab2d5a09ecb13bc029
 DIST gitlab-runner-18.7.1-deps.tar.xz 127632540 BLAKE2B 
472deed01a41806d6c6da74538d6ab3f63a489d127a1e645478349502a326105e4fef3bd67e6ef1c7487e6b8412c31c45d0a16bf3ab9fffbacc39b2abca21645
 SHA512 
d72fabbe01ea145d9ad88dbe0344ac3249690f26e96d53925ed68a0dafa0af36183d42f844340940ead77d0751a26117d576104bf46589724c5ea8a4202da4ed
 DIST gitlab-runner-18.7.1.tar.bz2 2178217 BLAKE2B 
f7e755859fd6211a372e73116c0d20a42c105246120ae49d9c82ba8ea1107a9015dbe359b5ebf0caceb0c82a02695c66c1363c67887c94faecbc3d66121d6be0
 SHA512 
b00008928d2fea82417b1c2be641f92d3b22dcbce9a0cc8eb02564d6f0e1fc4228dd727771c2f3474836c048b9a657f84ce724820a7dbd7263a9eb0a8ea8d9bd
+DIST gitlab-runner-18.7.2-deps.tar.xz 127225096 BLAKE2B 
411e2c7f9f1ca8c98d7d5f279e1c3fb245a2ad2755a3b4bbe39327e4b76c43ced5ab8635c942fec69c3879c84a8da5ba4b2f076bbcc40ab7eb0a7229243d1f73
 SHA512 
4e873d26f1326832a386af4f7c331650f237cab591fe638922e51a24c5a757b9b7fc6dae68cfbbadd3a5714d36003a1ece818f31dcb2c553ab3e355638e4593f
+DIST gitlab-runner-18.7.2.tar.bz2 2177714 BLAKE2B 
e072a5c24479167142aa8748ed175553db63bc8a914a73a5af923ebd0ae4b416707735e3b0efe84ec597ba4360801575143a6eb3851bdd3e9bc3434744c0f67f
 SHA512 
822eceeed5fa670635dd527e8da1b7ca0dd04b428b7cf5be955713368bdbb3ff4db4bacf3da0745efeaa9e559e2d4c2de3b6687f3a20de765140996e69c10128

diff --git a/dev-util/gitlab-runner/gitlab-runner-18.7.2.ebuild 
b/dev-util/gitlab-runner/gitlab-runner-18.7.2.ebuild
new file mode 100644
index 000000000000..3376cc702ada
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-18.7.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2026 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=1c855082
+
+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