diff options
author | William Hubbs <williamh@gentoo.org> | 2023-05-02 09:42:27 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2023-05-02 09:42:55 -0500 |
commit | 0f9ed0fe0e2862a51207a28e301d4603740b49c5 (patch) | |
tree | bf4da99e869e33bbc90d551bb177a586382644cb /dev-util/gitlab-runner | |
parent | sci-libs/gklib: respect user flags (diff) | |
download | gentoo-0f9ed0fe0e2862a51207a28e301d4603740b49c5.tar.gz gentoo-0f9ed0fe0e2862a51207a28e301d4603740b49c5.tar.bz2 gentoo-0f9ed0fe0e2862a51207a28e301d4603740b49c5.zip |
dev-util/gitlab-runner: add 15.11.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-15.11.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 e24fd88834aa..04a3c9b14187 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -1,5 +1,7 @@ DIST gitlab-runner-15.10.1-deps.tar.xz 161343688 BLAKE2B 9bc650e4d4bfe8971962c9b32e3a4e466194d5f8ea9fad8f425c77e2e59b36dddf6b45acd877ba698391a99e51fcc8f9458d7f9f96a136eb3c1131e1336e41dd SHA512 1eb2d8e584b3b758c6c75262aa864199a5eee63e4c8163d47b3067df02dcb01f96b35a2411e3263c9138fb1f9d0b83ca48ea32dfe127188e0247d7b216ee8dbb DIST gitlab-runner-15.10.1.tar.bz2 1278748 BLAKE2B 8c6c9a61af952a2fe97810d0d926035cdaa00d79bd32e48aefdd55b1fc9a225060b25c46341a2ef952e73fd2c1e1af441d37d6576beb80eaed99a6a33d92dddc SHA512 df5a613f4011049b556f2becb8902a1bcb64e060c98c2bbbd1528e7bdaedf75b0ff6cbaf31a56d53bfaf3b56691ffba0dbe08a851cee7bfed00d7e5e449ef91b +DIST gitlab-runner-15.11.0-deps.tar.xz 161352068 BLAKE2B 5caf62a1759ebde2cfedbc8bce7832b5b65bfd2379f727858dcde1c5cab2640336b7f0971c0e733d441d20849e5442ae8a12dad5f78e43c5601834a96595e26c SHA512 750538a630abb6aa03866b252a6a2e9d283d9635e6eac22e1992f846d34ec06e75fab73f189798a4093d79b8d96afd54b2b3a621c84cfa1b445511dd499e6694 +DIST gitlab-runner-15.11.0.tar.bz2 1344233 BLAKE2B 36fc348d9391b81db13631493f2c7795a1397c77aa399fc47913d1e66239cf0ea4bbfbdc23746aa4efbf840002d6da5488552c9bee2ad92effa198d7a0fab3f5 SHA512 aa422ebedbfb04826ab621ecd2cdbfa673be3c1f8ecca54b46bea2ac52820a97d9d18e584dcf869b9d5f966affc3610fcb7816c23337d7006fc9e9066f6b6dc9 DIST gitlab-runner-15.8.3-deps.tar.xz 160672020 BLAKE2B bb0cb16ad7c19afb048c0c1e5d48fc157f25d9a79abc564265152b16e3b436693cc0a0faa02dade584e0b95d9806b491582f8741b2b091798aa6b77a3bf9fadc SHA512 f379f5a514314d6f86fc6ac2dc00b1407e1637709c09555e3828adb7544141224c012cf104e1d47ac67f04c19371536ff338c446c7f69c985e1f67278dbee3c7 DIST gitlab-runner-15.8.3.tar.bz2 1258834 BLAKE2B 84473b3d704f271e286c7cba696132f2d26ec4d5f4944f99b8ad4dd4accd4f9680b36ca5d13432eaff3ce020b57420b40edccb2620b8e246c2020a2c75fca692 SHA512 4b5d659e257d78d84471fe6799367bc50929e1f0356a8a919d248b490aa73b1fb777086a49f777b5d09b10b649e7829439a1ebd517a83ea7c7ccea8c988676d3 DIST gitlab-runner-15.9.1-deps.tar.xz 159144912 BLAKE2B f10167c731371dbf4d61a05d9154a3127e286846fd60e2eb7291a587d707389fdb989526942263e7a7fac2af02fc343e316528ee2f64aaf97a048e83e58521f9 SHA512 ae74bbfa62ac4a7506ec6099fab11bcf66f7b270ccc0a17dde0b226cccdbaf51949bea44f437e97c20e4b60c605060b42e77a36a11fb5eb080d55dcf30ee58d5 diff --git a/dev-util/gitlab-runner/gitlab-runner-15.11.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-15.11.0.ebuild new file mode 100644 index 000000000000..aa05b57a1d6d --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-15.11.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 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=436955cb + +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" +} |