commit:     ffecce783a49fe779165f82bfadedc39315a7ce1
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  8 03:13:53 2025 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Jul  8 03:13:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffecce78

dev-util/gitlab-runner: add 18.1.1

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

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

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index fe3e6a151c40..5fdda6c0f51b 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -8,3 +8,5 @@ DIST gitlab-runner-18.0.1-deps.tar.xz 116241368 BLAKE2B 
305c76bec626dfe8072e2337
 DIST gitlab-runner-18.0.1.tar.bz2 1943624 BLAKE2B 
ce2fc7dbbbdf6001a77e91a496f3bf4dba037361d341e733394d255121b196a9923e10b736fb8e621cdcf3b8cc52bae38882a209238ed07a7f508d2c67073480
 SHA512 
929fff692b7c9f4b59fc8f9741e001d96abec86dc91a95412171527833304772283d5f4116c9a8ea24b83ab5ecc8734f61ea6c56fb92cb388cdd8c36484b0f92
 DIST gitlab-runner-18.0.2-deps.tar.xz 115598224 BLAKE2B 
30c3bb311563ce13febc178ee933e7e3610635d72330eefcefe51e5c859274329375985a469e7db0b20dbc6cc66059088466b37ac469b2634b330d06d76fb29f
 SHA512 
8365b2396cae507b1cd517b8f17cd04f34b6826aeef178b22be716fe3d5eab36ccff7e306e2bd08a38d2f29ec3c15cd05315f83e6c67c12e373d720176190069
 DIST gitlab-runner-18.0.2.tar.bz2 1944104 BLAKE2B 
48087f98a0f313139305a69379189555717c1006afc16dc948bd0e527f547290f9346a01aefcaf6be924b859702a9935760ec661aedcd5a6911cbdc65e13e722
 SHA512 
0a7b5326a90b4fb8ee1a2ea7d0b10b696e3b02358ca5652bb7675584188de3b9cf94501741fa558538dc1bd66356df9e1fdcfc247201fc349646cce9504442c2
+DIST gitlab-runner-18.1.1-deps.tar.xz 119199284 BLAKE2B 
3914e47a18b290fffcddbb6cdeb27f15f910ef5ec2d515479d93593a9dbbf0c0686bf643a6e47aae8b0e46aa2b42550a9ea70ce057d4482e6ca854d9e766181b
 SHA512 
4e5bf9f17dc4d738878430fcca80bec8b9f22cf72cde40fdd6d5e363062bfb4eb96ff1cc443fef2aa72659ab99f67ff3b441f6146076ad6d18aceb323b98cf15
+DIST gitlab-runner-18.1.1.tar.bz2 1955185 BLAKE2B 
210a82fd71bb2993428470566ad10938d5c584cef40f8c2843f4e2a4e0df6f02f73d9fba220c4d79d4f413d238e859aa6f9c64cd883bff30c399ee5508c10313
 SHA512 
3dc4c97eee93bff48facd4ff0f008baf4aa7763331d47f18666e009745621c3b01f88ce0f1fc77ae3538bc09b09a961500ad06299dc18919b36ceb866e2ce014

diff --git a/dev-util/gitlab-runner/gitlab-runner-18.1.1.ebuild 
b/dev-util/gitlab-runner/gitlab-runner-18.1.1.ebuild
new file mode 100644
index 000000000000..83dca8f7a244
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-18.1.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=2b813ade3
+
+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