diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index c6cc89259a7c5..2a8777dfdab32 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -2,5 +2,7 @@ DIST gitlab-runner-17.10.1-deps.tar.xz 115915328 BLAKE2B ed453a20e63448ec302ca32 DIST gitlab-runner-17.10.1.tar.bz2 1812706 BLAKE2B cc39c90ed6251dcd6c16ef4de8c940ada15199b7dd4266fb9cbf30ce68e050472fb736c2cd586267ff38921296ab0c0a021481ef4ddd16e9a26759d140215894 SHA512 e2e98809a09bfa25cb54961675cd02a349d6560126b59d6829c8b43d2f622322e647b9912ca40440eff64de9916d44245c4065dfbc2780c0e46de755807584b5 DIST gitlab-runner-17.11.1-deps.tar.xz 114859732 BLAKE2B 52e2bc3aee36699d0a15b208f89b5a0070e01244bcea64aa322b0ce600387b071986fff8c524f9bcb1c0bdebbb68aeb2d94155d7e809b458eda26fc118c66fa9 SHA512 b439b1ba63f7bcc82712c157f46b5991d89c61e15e98383e54edce968601cec69652c2d939dca4fbceca8b9fcf1c3b1c63cf3b78c66c965c253dfafaae2f6125 DIST gitlab-runner-17.11.1.tar.bz2 1873313 BLAKE2B 5d4bdf3a3c554476efaf15b82941cf037fbb842285b20b667da8cf23fb4f016b6466d68a6819fab66ca9842810310f90cdd22d587e5bf3132d50efb43607c6f8 SHA512 00e6e7b790332fc40a0e8a9efbf807a8751f9d7c158ab837b950dd39d521929fcdef689745d81f1d01a03ac4f1913bdc84fc68d1aaf5e98009699b6d5bc7bebf +DIST gitlab-runner-17.11.2-deps.tar.xz 115541512 BLAKE2B 144b37e4f0ebc5ed84987e2427f1c350035f6ba41b7d6867fe22800d2bc3d70e16163ed9be7d6e13a0f18fda3184172206b9cdb8a8bc2aec8f4a1af815b2a5e1 SHA512 f9e807bdcee22a4d9449dd3d9094d3dbb8488a7b30d7f399f0b81b745918d43ff632f10bd6e1f2c6bcbf30be1d749b744c90ec0b35607157264356929b8906f2 +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 diff --git a/dev-util/gitlab-runner/gitlab-runner-17.11.2.ebuild b/dev-util/gitlab-runner/gitlab-runner-17.11.2.ebuild new file mode 100644 index 0000000000000..fcdeb5ade1cea --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-17.11.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module systemd tmpfiles + +# make sure this gets updated for every bump +GIT_COMMIT=db89d497 + +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" + +DOCS=( docs CHANGELOG.md README.md config.toml.example ) + +src_compile() { + emake \ + BUILT="$(date -u '+%Y-%m-%dT%H:%M:%S%:z')" \ + GOX="${EPREFIX}/usr/bin/gox" \ + REVISION=${GIT_COMMIT} \ + VERSION=${PV} \ + runner-bin-host +} + +src_test() { + CI=0 ego test +} + +src_install() { + newbin out/binaries/gitlab-runner-linux-* gitlab-runner + einstalldocs + + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf + keepdir /{etc,var/log}/${PN} + fperms 0700 /{etc,var/log}/gitlab-runner + fowners gitlab-runner:gitlab-runner /{etc,var/log}/${PN} +} + +pkg_postinst() { + tmpfiles_process gitlab-runner.conf + [[ -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" +}