commit: 4f961450626f2c783c99d57738415f17d559a5e0 Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Tue Jan 14 16:35:02 2025 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Tue Jan 14 16:35:02 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f961450
dev-util/gitlab-runner: add 17.7.0 Signed-off-by: William Hubbs <williamh <AT> gentoo.org> dev-util/gitlab-runner/Manifest | 2 + dev-util/gitlab-runner/gitlab-runner-17.7.0.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index ab717337a242..a0e50050a386 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -8,3 +8,5 @@ DIST gitlab-runner-17.6.0-deps.tar.xz 108556780 BLAKE2B 539bdb456b6788a384fccd5f DIST gitlab-runner-17.6.0.tar.bz2 1744529 BLAKE2B 17bd3d06da237890ff8e08add9b9147292728bb51edd0517e9f99fbe14c5030cf16b0809b621f21099438d72669643a93cc0dc5455640ef00117b8bc55440515 SHA512 f43baf6b3f510316d06ee9edcfc9a87182921da6e2f91169fbe80d3e1887c728e729219f6ee07f73030c4c82ecf809857fb448d2f8829fa0e5829861bf9e1367 DIST gitlab-runner-17.6.1-deps.tar.xz 108538744 BLAKE2B 67a89a4d10d7cac07cc6c0328960b46a54360b73b69f82b09320fceec2d849bf661f8c8bb4c9e349f9827f90edee182e169c089f4677cd9ce05f743553d9c80d SHA512 8382b42ac69af665dba632495fc543cbfd97674a5e88b271bf1862e1bbb382f30a461410cc93d615b5a3114ff28cfa376f30b6186313485ec3353fce34aee96b DIST gitlab-runner-17.6.1.tar.bz2 1744419 BLAKE2B c56ce5e2f9185efe0068faa39ba305d0dc2ec036d83c86445151d90d230351c2a5b2e1124f9e7d6109bf7c04c8ff0d0fc72b920ad675975a9f840c72267d75c1 SHA512 21e73bf3d99f2d5e500bb3a1c2b95534c96f673ff51eae086a06386ae954f23fd7cb5950e347b97ee52d15824bde2b4e8999d27660602f8803383d748cc86c03 +DIST gitlab-runner-17.7.0-deps.tar.xz 108544204 BLAKE2B 0e9049a8a56e705dc2d6d1585d75fa356b3aa3b9eb0ff14cea76adf6021636dcc2a6989e75f4ba1cb64be17cf3b4417a31db73b8d3b73eb92f0d12b8659343d2 SHA512 be76825ddcb22ead48338f9023777f4a610fd468e4020ab4455881ec1b4b02cd594c7fbffd29d9f79645551e075f150090f75ac21b2250b8c73381f67ae866dd +DIST gitlab-runner-17.7.0.tar.bz2 1758329 BLAKE2B 942ce344664ee7067e98e5ce50d011180c2189cde14a7dff517af5fb64b60892404bc367031aeeb7320aece993ae4674808548436e8d077172075d183b9e69e0 SHA512 57b5b0882d1190ed88b01b729b577531a2a8c9831a7037437ff16343bd9582b3d7e436e13f3e1cee0aa5457ff95e78f2ddd81d4df8a57589ffe71c0a68642a38 diff --git a/dev-util/gitlab-runner/gitlab-runner-17.7.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-17.7.0.ebuild new file mode 100644 index 000000000000..3af23ee4cc0d --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-17.7.0.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=3153ccc6 + +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() { + dobin out/binaries/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" +}
