commit:     3dc28d66807b03850a52d8e6da938b5d9b8cd720
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 21 21:29:58 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Sep 21 21:30:30 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dc28d66

dev-util/gitlab-runner: add 16.3.1

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

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

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index 2ce720a4fd6c..fb24b76261aa 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -4,3 +4,5 @@ DIST gitlab-runner-16.2.0-deps.tar.xz 200381264 BLAKE2B 
61a9d094c251f299e9871888
 DIST gitlab-runner-16.2.0.tar.bz2 1361100 BLAKE2B 
19df94ba47188ad696f79df56595f34a2fa7c82971549172a8acc65dd04228aed077d675f85e35e8731ae4b1e72003333ebe667772dce66e6bb17a0ad84a522b
 SHA512 
75097c09b065c8486a5d23219dcb8e36c2baac254e0b09811dd725cf493d959d9b2d3a2c9c130d208a50c1355e19faa749a6d5bb58e1681f782279eca277605e
 DIST gitlab-runner-16.3.0-deps.tar.xz 200558852 BLAKE2B 
0410dfdd94aa23872db78c405d9d2184abf8a769f2d59a5dd83f79b2a1b684f9edd38f5249010081c87c1e5da5c91d5f816591c01810ee27634fd6e8d4a22d2d
 SHA512 
66447d7aaf2478216b93695add4ef574093493b3081b2906877fb07150cf1bc95eebebc21558848223179f680d6e855553edb9f4bfae6f3079e9f9cd6f85abd9
 DIST gitlab-runner-16.3.0.tar.bz2 1367414 BLAKE2B 
52ff7743f2b55bc2810da29c90f10dbe8e377a3eab1cd5feb90d9ee4e9e2fda75a7ba0c5538c1b545ac9396a6f708e7338413c2fc606cbc54c10b65a9c482171
 SHA512 
189afc002699c6f131f46f7cea098a447e4e5984a92e86ffea8f4005d232a9b1ad55e4aed023a693dc5296ec391e4f50cb878376ef36906039319e5fc7a3d846
+DIST gitlab-runner-16.3.1-deps.tar.xz 200544092 BLAKE2B 
7bebd181ce6a47bee99098d124009da41e61273823be09af4c7d76851f5b1c2b67338b6a836f6d7a776c0191f6463db950d6081eb1248f12418aebd80b557929
 SHA512 
5eee370015b3ba82b0856300754a8ef8906d649bf3e08fe5ded9209cb6d35e591d2d9a9ddceb1172b23cadc7efc2cd7f53c22736db3cba84d2c1d73a03c538de
+DIST gitlab-runner-16.3.1.tar.bz2 1366408 BLAKE2B 
99d8ce6d99f2916a8477f97c5529ffa9e847859987c89ddb7e7ab3d2249b48e5836549ce992c9f20a65cab2261ee63f5b6b1dd25198dffd84379ab8ecf6e2df3
 SHA512 
9f59fd9966b7619aee93f3ad16d6c9a7c81203b015798674f44f111c59ef4d3a320344dacbd020ff9385e1e9ee5aae1a931102c3d0297dd4df9bf2615eb4a357

diff --git a/dev-util/gitlab-runner/gitlab-runner-16.3.1.ebuild 
b/dev-util/gitlab-runner/gitlab-runner-16.3.1.ebuild
new file mode 100644
index 000000000000..191035180185
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-16.3.1.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=d240d5bb
+
+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"
+}

Reply via email to