dev-util/gitlab-runner: add 18.6.2

Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
William Hubbs 2025-11-28 12:09:58 -06:00
parent 90dcc2a12a
commit 00534e0286
No known key found for this signature in database
GPG Key ID: DFDDE1809F0F9344
2 changed files with 70 additions and 0 deletions

View File

@ -4,3 +4,5 @@ DIST gitlab-runner-18.4.0-deps.tar.xz 118808448 BLAKE2B f46f45e4fdc3cdb85f915fa5
DIST gitlab-runner-18.4.0.tar.bz2 2045075 BLAKE2B c7ca6e5af039fef0be31be55fa72eaf64fc8a28cb0df4c8096efa149641bb4dd7297feb03ca45d8575b67ee0e36864c89648ccd09010078311642623aa2209f9 SHA512 267086dfed735a1bc1ce87511fbcc7e94d387e9b69ab70b8beb7228b2e91dd726a82a5d69b46cfb2f8afed61dfdd7234cf666a66dd29a4c97602e6508d14953a
DIST gitlab-runner-18.5.0-deps.tar.xz 118576360 BLAKE2B 3df417685e1ac77073a6135c06d1a743f35a8bb1a6a939d8fed179e2d324512ef0705c3f6250c080c35db866d06e500d6815a0e3ca96d60dd6dfd959f444e78d SHA512 5edf9dbde6f39b6ae0e005fa9eef3481070714295243b5ee6c636e1d77c0763732e6ae70b5a36cf514cf8950fb87416dac1ad67ea4edec3e12aac47b0a983023
DIST gitlab-runner-18.5.0.tar.bz2 2050460 BLAKE2B f98f62cc66406e80df6b89767ab1aea125390daec340570f112bc6655d4587ae1ac74535c8c47c97382747ce8e813a8d776d0ead8535c391f0838098a7f66538 SHA512 08eff75ca70e9f7c868eef28c3b30948a29b63e6ef84644e7c2359050c404d41ae55ca85023edb68aa6d2d64960fe0c9742f50dba2440adeffbf2d422ab70e5a
DIST gitlab-runner-18.6.2-deps.tar.xz 128115060 BLAKE2B 8b59ac6a08725f8086e00bffa9fe3a0bf230f6b4718c530db78dc982894954263c5f1657a8b4a722ccfbb97409970c87d650926d0b60c95ec4ea73acb163f62a SHA512 f4a3fb6fe915a9914478cf81f9d472cca9ade7caf5134bcfc4cf60eadd48cd1b25f0d95d59a51edb355789a39a8df8edff27937ab9362eef8ca55159edf8bbba
DIST gitlab-runner-18.6.2.tar.bz2 2098175 BLAKE2B 71fdc6fbc71a924cb2956c5bd7b6a5c6058baaf8b1bb3f2d04d5cd3268fbebf3fb3ec65f6b8b13ca24a025aa15d4a1e952d715a25ea56f813dd7c28c7632e8ff SHA512 5e510934c696dd16ed8818c039c88d1c3dc4db64a726d621678ae2cfff427bce1861b92589f8c61972a47abadac953c4c055fec6f4ee4c41f3d040ef9ef16c9d

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=83dc1e70
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"
}