diff options
author | William Hubbs <williamh@gentoo.org> | 2023-07-10 17:19:10 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2023-07-10 17:19:10 -0500 |
commit | 114bd8116e6c0de806a1515205fc58cc6d03a882 (patch) | |
tree | 6b46ec23dbc64700cf2a69bc08713e1bd98d8410 /dev-util/gitlab-runner | |
parent | dev-cpp/gflags: Use append-lfs-flags (diff) | |
download | gentoo-114bd8116e6c0de806a1515205fc58cc6d03a882.tar.gz gentoo-114bd8116e6c0de806a1515205fc58cc6d03a882.tar.bz2 gentoo-114bd8116e6c0de806a1515205fc58cc6d03a882.zip |
dev-util/gitlab-runner: add 16.1.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.1.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 2854d8ba009d..4ccc3a086eba 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -4,3 +4,5 @@ DIST gitlab-runner-15.11.1-deps.tar.xz 161358304 BLAKE2B a318aa741a29c3e1623a389 DIST gitlab-runner-15.11.1.tar.bz2 1343959 BLAKE2B 3c1a12aedb6ec4ba88b20f1aca30e2cae3acbfab7aa22ab91cc87c355e1f1926f27c70a0357be6f969634bca200a7b9e69fb2bd09403be21d7fc4383c48d951f SHA512 5756952adf79a72ba62eef7e28d4dd134fd1aa00a020c615a11fcd6d8fadeb2ba40cf8e20d8bc253082885ea8fe77f18124da35fb7fa5f7bc7360b8143a85cd3 DIST gitlab-runner-16.0.2-deps.tar.xz 161413208 BLAKE2B 8e8ee06371bd8482a39c129bf155a829cd3c782a4a5a968128e75d263ab4e8b07f88ce02697ef47d14cde81133936578d2c12a747953a77b6acec0b635131c5d SHA512 4c37eb14f81d092a12dae9ce7f50aac7b2555d1366d1d5ab2b0faa835e352caaed6683a63ae44a8447ee8ca09f38fa4a4465d22a21391841f0d4169494be9dd5 DIST gitlab-runner-16.0.2.tar.bz2 1346109 BLAKE2B ed8bf9a893fc4d38aeb9ef2e1823eb0940b23e12fd2236f5ffbb90832634b244201d8518e1e5231ee7d4445ac3742ca47b1f3d8a66d06a93811e040d9229d19e SHA512 54b1e7c0b5838254aa30199e62760a845a9bba0a04cc9963b0bdaa776c7219bf0acee71a62f3c958b3d22d9aaf3380bf236228f18ac3e0f3d615578a1d3f9b87 +DIST gitlab-runner-16.1.0-deps.tar.xz 199599928 BLAKE2B 585dd1038106e5f0f397fc801309449e19da4af3419874d4dba178ecdf3109950fb39c4e20578ad388db455aeb20607aeb3d505f8304124fdc07747f43108062 SHA512 c7b714fe60f4dd8cda6ae3ee9700d6d8c748b42c3499e0d3a5377008e6eac55fc99fbea693a72ecf38fb10be7f56e0d72c4a12ffe7bac8ea1de29448fa934707 +DIST gitlab-runner-16.1.0.tar.bz2 1353795 BLAKE2B e0f8fc23c9e50dc2bbe50187c7256381678504aef1d23e82a2fdbaef10f0c502ba8dfd31bbae450d22362b9b82b81184895dac1353f5dcbd32cefe9a263a7a81 SHA512 2fe31471e80943e24b7667ee8d544d6b031435c88ab2fb58911752b248d2e0293fdede0996e2715f54ec71b4c6d58aa422b87fb112e005c1022af0d4c1a80caa diff --git a/dev-util/gitlab-runner/gitlab-runner-16.1.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-16.1.0.ebuild new file mode 100644 index 000000000000..22ed526d5259 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-16.1.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=b72e108d + +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" +} |