commit: 36b9621291c9be279e306b4f9fb5dab2a085be0f Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Mon Aug 4 15:08:35 2025 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Mon Aug 4 15:37:00 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36b96212
dev-util/gitlab-runner: add 18.1.3 Signed-off-by: William Hubbs <williamh <AT> gentoo.org> dev-util/gitlab-runner/Manifest | 2 + dev-util/gitlab-runner/gitlab-runner-18.1.3.ebuild | 68 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index e13853133df2..3d21a8ec23ca 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -14,3 +14,5 @@ DIST gitlab-runner-18.0.5-deps.tar.xz 116157072 BLAKE2B 6752b2cdad0d258bf1b71b45 DIST gitlab-runner-18.0.5.tar.bz2 1947353 BLAKE2B 8c5a657b1553dd9f1ed3af8fba6e09cb818d4c035b909807e6db33ada194c3179ba47cdd487bcce2d9f2878cdf5ab4501abc2ba63e490b7eabb2dbe7264d7860 SHA512 26d1f6d45602016e4f1abebfbc2f3caf60f052c955ce69aaf711371a8ed6b1d38325e2b68d868e58eef6344c7b0adf3660dd2b3cadf711d3efdf539a4bf4f67f 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 +DIST gitlab-runner-18.1.3-deps.tar.xz 118471456 BLAKE2B 5c8d3be70fe9e280deb697ac3c0ccd3ae687c412cf63994be02882cb3d092eec79c31a4d4cd9e43ab39652c2241665c753dbf12059131579cfe43f73f4a16eb9 SHA512 850a5e3f52a1e8b6ede203891092634412df4acbb9c68dfb81e3a57cbd015154eda5e2eeb41fbcf49e07c886b7a73ab65b708208f635fe6ffb87b1f769d79310 +DIST gitlab-runner-18.1.3.tar.bz2 1957762 BLAKE2B 866aa9b13b600f9e63fcd1cc48624c59e2c4f496fc06b7333364c3c2f90c63e3cee2fd04ad3d02ba75ea5417fdef925e452600e0313a9a1d4857dfaa774410f5 SHA512 5dcad1528d6c9144815dff1bdd66cff49282e6e912d654710936ba5f206a5345da3fb62f60a86697fa5f166fd00f8b730ece80da991dfb871e642253d9e338ed diff --git a/dev-util/gitlab-runner/gitlab-runner-18.1.3.ebuild b/dev-util/gitlab-runner/gitlab-runner-18.1.3.ebuild new file mode 100644 index 000000000000..02bffa0a9164 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-18.1.3.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=a2f2305f + +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" +}
