commit:     2faa1b7278b4d9f0ea9a0357af04c199f68d3813
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 28 04:50:27 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Mar 28 04:51:36 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2faa1b72

dev-util/gitlab-runner: add 15.10.0

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-util/gitlab-runner/Manifest                    |  2 +
 .../gitlab-runner/gitlab-runner-15.10.0.ebuild     | 62 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index b6c3f3f425d1..0f6215726253 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -1,3 +1,5 @@
+DIST gitlab-runner-15.10.0-deps.tar.xz 161347172 BLAKE2B 
bd714ccb11bfb7731658d2aa03da92d3ffd92871c00df6b77d0d13ab86c7fa175ccab2f489562a1859c83728838d07b37d95cc2fc60e825dd2e0b86e795e8605
 SHA512 
17d5d5db1b3507df3ad9979cd99d5c4325a35e17fe470163fc061c99c22b99cc98ac5130d417f12fa476a1131877496490ed9cad8cfb0a9c6a4fe6ddcc6d0288
+DIST gitlab-runner-15.10.0.tar.bz2 1277793 BLAKE2B 
db238970f26cbc1c5af415d151d575c62589036c98c18db73b70b97475873e5ef0b9fd3cd3353e60988bfaac51e6cda326400b502f5c72c2f113a727510f1811
 SHA512 
3a79ae09a8e52a759ef0794207da495f70c296281c8956092ebb1def3af37a488897e16d3a7d0d50bc73e72f9b0c5c0c9394eaf295810ab0f498047c5a13f65a
 DIST gitlab-runner-15.7.4-deps.tar.xz 160601896 BLAKE2B 
a208b751544fec8033276b541bb445c2b28100c16c9438113d83d719cae8d2b8a8c61a9a86c98e1b0c221c5be7365ad68ee9b29432df5ea03d1122e62763d022
 SHA512 
4a0f56348ef13ffe80395fe2887fbc5aca54f1ae620793c96388f69ae6b8c8e09c9e49d6b7524f14f7d93c560bce76678a4c8f74f6f00e0f146d54af7788344f
 DIST gitlab-runner-15.7.4.tar.bz2 1250425 BLAKE2B 
933aa20c9c4ae0008caf0a63e3cc0b8fb22e34830d2536a54980b484913f8e6dc545539697fb36185d0cb1360660a9162fd5231ef4ef351177062b9b2cd56dc5
 SHA512 
9db90d39e1c52676165f39e9002da777c2e8c4c38c7f9538579628d858e9e541ee1b2e66156c0b6387d503088ea75084dee82a761733366dbd3db895da80a9e5
 DIST gitlab-runner-15.8.3-deps.tar.xz 160672020 BLAKE2B 
bb0cb16ad7c19afb048c0c1e5d48fc157f25d9a79abc564265152b16e3b436693cc0a0faa02dade584e0b95d9806b491582f8741b2b091798aa6b77a3bf9fadc
 SHA512 
f379f5a514314d6f86fc6ac2dc00b1407e1637709c09555e3828adb7544141224c012cf104e1d47ac67f04c19371536ff338c446c7f69c985e1f67278dbee3c7

diff --git a/dev-util/gitlab-runner/gitlab-runner-15.10.0.ebuild 
b/dev-util/gitlab-runner/gitlab-runner-15.10.0.ebuild
new file mode 100644
index 000000000000..59484ae0a893
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-15.10.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=456e34824406b57e26b4dec29e9038edc2ac0396
+
+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}-${GIT_COMMIT}"
+
+src_compile() {
+       emake \
+               BUILT="$(date -u '+%Y-%m-%dT%H:%M:%S%:z')" \
+               GOX="${EPREFIX}/usr/bin/gox" \
+               REVISION=${GIT_COMMIT:0:8} \
+               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"
+}

Reply via email to