diff options
author | William Hubbs <williamh@gentoo.org> | 2024-04-08 14:30:50 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2024-04-08 14:31:13 -0500 |
commit | 6c77d5ae9ba1ccd207ff6621bcf0975af0a8e856 (patch) | |
tree | 412fa56c8ad2b2a72ec790ecbed024209595357a /dev-util/gitlab-runner | |
parent | sci-misc/h5utils: add missing remote-id (diff) | |
download | gentoo-6c77d5ae9ba1ccd207ff6621bcf0975af0a8e856.tar.gz gentoo-6c77d5ae9ba1ccd207ff6621bcf0975af0a8e856.tar.bz2 gentoo-6c77d5ae9ba1ccd207ff6621bcf0975af0a8e856.zip |
dev-util/gitlab-runner: add 16.10.0
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-util/gitlab-runner')
-rw-r--r-- | dev-util/gitlab-runner/Manifest | 2 | ||||
-rw-r--r-- | dev-util/gitlab-runner/gitlab-runner-16.10.0.ebuild | 62 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index f1cc1033329f..3a22af4f17e8 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -1,3 +1,5 @@ +DIST gitlab-runner-16.10.0-deps.tar.xz 87356404 BLAKE2B 87616f6544efcfddf854ccf8892ab955f44d11fa6f7ec3a5d0c2d32f165adf985011997e701b325e7eedfb4532547dbb94e08df3118d591550d511c09a9cc957 SHA512 6f800f4f965767898a21c9e4c7b0fc5f07ae089910f98ae96189b2501434f3de8a51ac6326e4df2234f3524bce4b15e4b05b183473988e717d2067d022e6c67f +DIST gitlab-runner-16.10.0.tar.bz2 1373754 BLAKE2B ca0d39a4c04cc37afc48d9346266d075da6f4c3f62891d871a6d21e357de62067ea34e1dbffa34a410e2fb0656742eb46bcd3e555a56a20d6429b2c590e96fda SHA512 445cc39bd4d4b5ecf092fb4850b4224c0312b5b6a5aafdfb44ead5c590cf6ff38d759f765b1a97bd3beae73b5dd733daba53a33d3cb5d1f1346af28d39509b7c DIST gitlab-runner-16.7.1-deps.tar.xz 87336740 BLAKE2B 46751e0365b20b0ae777b1e562221b292f67a06275c4728c4718cf405b582e0a84d97ef83a61e238b54d4a9b96ae0a8afc7455f9a87174fb327d6056922dea0f SHA512 d0cddf954e4cf6229a8b6d44ffe0b03234b1e63ecb464d902138912b8309e204e8add3ec6df41461df05a85b5aa263dd4fee8f82c00ef00ac16cc542fb218925 DIST gitlab-runner-16.7.1.tar.bz2 1349267 BLAKE2B e555b26bab2b0fdfd9367c27373dfb26edd57ba9eec77789c07cfc5760f5446ee045a62863549181df8ef18168f25250215d1285c27ec6c7be4291e260b00965 SHA512 e2426b6a96d4ec6c001aaec639e8134bd04e560b23cb06de277e7330feb117fe9c6888a9976211f587f6077943e42056898cb7b4996bcdd0b56ac56f329605d2 DIST gitlab-runner-16.8.1-deps.tar.xz 236213628 BLAKE2B b270aa8f285c1c568c303832b1600b50425e2e5b94f18a53ac1cd4afe35e2279fc81c3ac0ad671959f8833d0b55d2e9057e4f8222f274a5224af0440b876b75f SHA512 2c7fa171624d05617777b442d3fd4870e1180231df5f34005b388de5d0f3ead2297599f45a5d7ad05d84abf054507263d96c673cb3f3e3ff5a734891a2771727 diff --git a/dev-util/gitlab-runner/gitlab-runner-16.10.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-16.10.0.ebuild new file mode 100644 index 000000000000..cf259193f257 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-16.10.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 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=81ab07f6 + +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" + +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 ) + +S="${WORKDIR}/${PN}-v${PV}" + +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" +} |