commit:     32dad4aee2620339f3661e199c6367f47e284fc6
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  6 17:11:29 2026 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Jan  6 17:11:48 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32dad4ae

dev-util/gitlab-runner: add 18.7.1

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

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

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index 5118234469c7..0f807545ef4f 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -6,3 +6,5 @@ DIST gitlab-runner-18.6.2-deps.tar.xz 128115060 BLAKE2B 
8b59ac6a08725f8086e00bff
 DIST gitlab-runner-18.6.2.tar.bz2 2098175 BLAKE2B 
71fdc6fbc71a924cb2956c5bd7b6a5c6058baaf8b1bb3f2d04d5cd3268fbebf3fb3ec65f6b8b13ca24a025aa15d4a1e952d715a25ea56f813dd7c28c7632e8ff
 SHA512 
5e510934c696dd16ed8818c039c88d1c3dc4db64a726d621678ae2cfff427bce1861b92589f8c61972a47abadac953c4c055fec6f4ee4c41f3d040ef9ef16c9d
 DIST gitlab-runner-18.6.6-deps.tar.xz 127696496 BLAKE2B 
82816ce50920884eb18f0cf23055096bd87855fcca28881e35a21793921ac87768dca69a0dd4ec152393d8bc79cbcd2cf4be94a27d5befa06de5d04c80102bc3
 SHA512 
4b96f1a9578e6c90e52a1a1b32a7a791a284c355dd35377d6e1488d575bdade86bf96b82486d7236e5712374ab8003b39addf7cf4d545dbd226059e3d1fe4fcd
 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

diff --git a/dev-util/gitlab-runner/gitlab-runner-18.7.1.ebuild 
b/dev-util/gitlab-runner/gitlab-runner-18.7.1.ebuild
new file mode 100644
index 000000000000..c34e67ca9c2c
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-18.7.1.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=cc7f9277
+
+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