dev-util/gitlab-runner: add 18.0.2

Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
William Hubbs 2025-05-27 16:32:43 -05:00
parent 227b73ec40
commit e0cfe75357
No known key found for this signature in database
GPG Key ID: DFDDE1809F0F9344
2 changed files with 70 additions and 0 deletions

View File

@ -6,3 +6,5 @@ DIST gitlab-runner-17.11.2-deps.tar.xz 115541512 BLAKE2B 144b37e4f0ebc5ed84987e2
DIST gitlab-runner-17.11.2.tar.bz2 1873214 BLAKE2B d17e22a8f8b39eca0a52fdc7f4d3c5bacb7935220d6ae9c3b982f013155f2cb62dcc9f3f26dca95a08d3d4499d4828641927febcfe7f3b5e7930fcd6dff60e68 SHA512 e874b2d1fc24dd3bd617f723f14ea63f18b3ec1627511582625e9add1d2cc3512ab4a1f8d1fc5ca256668246c49f2a8bcd9a752438ae513b40b5055d24ee42c7
DIST gitlab-runner-18.0.1-deps.tar.xz 116241368 BLAKE2B 305c76bec626dfe8072e23378137e342f2331678337ed2d53c1bd5dadc4a15c1eefa50edc6d2c3aa26af0f82f0ae61d0b9f1027fcfa29c31683fae77788561fa SHA512 558c808a675e02963cdd5108889a6bb1fbf665d099b4b1a7973621bb34d0c76b92ef7e190232f28645d4a849149014b1047cb78335211c6b868bec217c8cd13b
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

View File

@ -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=4d7093e1
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"
}