diff options
author | 2025-02-06 11:31:00 -0600 | |
---|---|---|
committer | 2025-02-06 11:32:59 -0600 | |
commit | 756efcefb334546283808313ee36199dc9d2e8e2 (patch) | |
tree | 15999eb0acdec8e3439fd96956fd65c1788c58f5 /dev-util | |
parent | sys-devel/binutils: Switch to previous patches for 2.44 (diff) | |
download | gentoo-756efcefb334546283808313ee36199dc9d2e8e2.tar.gz gentoo-756efcefb334546283808313ee36199dc9d2e8e2.tar.bz2 gentoo-756efcefb334546283808313ee36199dc9d2e8e2.zip |
dev-util/gitlab-runner: add 17.8.3
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/gitlab-runner/Manifest | 2 | ||||
-rw-r--r-- | dev-util/gitlab-runner/gitlab-runner-17.8.3.ebuild | 62 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index b4049d7953c3..7e72bb88c5ac 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -6,3 +6,5 @@ DIST gitlab-runner-17.7.1-deps.tar.xz 108516732 BLAKE2B cba771fb005fccaa19816fb5 DIST gitlab-runner-17.7.1.tar.bz2 1757310 BLAKE2B 44fa445f30ae65be18a63788bcdda1086af0226f0a44c792f898a7c8fae584e48d4a84e132b3257121cafc2f7df1760bc24f6d9154c2c359167530e57e4afe89 SHA512 f1d21ee94873652ee7aa62a165707088f957334ee90f3fab7b66df8b63589c2e6e41e1bb9f7cfa13835ca992b8ba773bdc88ad2a72e1b46accfd558eaf1d2a22 DIST gitlab-runner-17.8.2-deps.tar.xz 111056812 BLAKE2B cd128a90a363d67bf27d6497166ebd1fb75290771b648a1fd1c3b462546ad2da070b01b9a9d84dc820de10a89d907892692df07081579d3c7be3e9a9569652f1 SHA512 6dc858e6fe038b8d01c05272e11b63537aa49e01349499713224e8bd25d46db9f0450651a6b778ec0481ec90bbd4d6a940cfc0764877d1b195f8b73584b2d4c1 DIST gitlab-runner-17.8.2.tar.bz2 1751213 BLAKE2B e43cac58039c48a902ff0819084e39909561d0dca982bc3825720b114a5dc16f6e84e3d5c0e3d311b99ce27618085e6f2de0e33df28b1b5e4050cbd19412bc32 SHA512 9e4df1cd735d9e6245dda4273cae908a563666679a08e1d03c9bb26e4b49453cec4310040f846e03823d78fbc25955440ab2ee314affdd0c8a80162313985ee8 +DIST gitlab-runner-17.8.3-deps.tar.xz 109232796 BLAKE2B cd307c8fba9bcc3b3d955c4443813f44f419f57382c910a66c67da3d955d5ff7772815d8ab3fc35e51fe8b795fe72167cc6e6c5ae3011ee90a36d6106287bed3 SHA512 b5db3a95aaaf6e6b8c532e52a56aaed3c6ea3bcaa5185b88778208c44f98b42c8b6a2b2269676e67dd9adb6f4a7f7ff4755e513347417d56b1c326574b91e2ba +DIST gitlab-runner-17.8.3.tar.bz2 1751505 BLAKE2B 104a37aa7f659baba08d3623e76821df286e24093ba192665c27a3ca33df9721c4cf89851ebc59f37519b80e74fa9aebe6ad1d99f17ba6bf03dd9c96d6357286 SHA512 c4ae576ea5e158c78fb10021bbf0240dee5f16342bebf3e5ebc25c6803d78c3b2e84f3ffd73a6622743bb3720ff21525c1be762912cd3c5f4fc8fc483b38db79 diff --git a/dev-util/gitlab-runner/gitlab-runner-17.8.3.ebuild b/dev-util/gitlab-runner/gitlab-runner-17.8.3.ebuild new file mode 100644 index 000000000000..f40d8d2af0ab --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-17.8.3.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=690ce25c + +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" +} |