commit:     d4041f7c1b792a90ce7e7f7df5a13b473b3fa1f0
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 31 02:54:11 2024 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Jul 31 02:54:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4041f7c

dev-util/gitlab-runner: add 17.2.0

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

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

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index 8da40d6cec5e..f96e2814870b 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -4,3 +4,5 @@ DIST gitlab-runner-17.0.1-deps.tar.xz 85885404 BLAKE2B 
5145aa9e3bd95c5de993ab846
 DIST gitlab-runner-17.0.1.tar.bz2 1371456 BLAKE2B 
99516e587ac4801e84308062e04d587f48d735c4645dbc8f7d7a9f55e995758dad7972f708a5d14b2e8e3114f4f1794d7ed544ecb8d7477995c16235857e0366
 SHA512 
f3af26c252263f101a1e97f61c4df3a99c3d83361bea4be86c06fcff487a8f8829af2b3fd03c8c25341298300f575a35bd82b64580640f8cd8418528a9a67066
 DIST gitlab-runner-17.1.0-deps.tar.xz 86656984 BLAKE2B 
7766a3764d8ba17e3943f16a63e2af9705a23080bed23f30c813f07c4ce71057665682d6221790ff767848fefe258ffb796866d1a4e2a693faea1edd55945a30
 SHA512 
d2b8df673f8ab6a0380bbf3604d71fd963894f5bf55ba91c8755f827654b8b1fd394401c2654a78684dab022ac6f356befbfd862282a1a503422553ce8bd76fc
 DIST gitlab-runner-17.1.0.tar.bz2 1372603 BLAKE2B 
1600fbc4ec5eb2b7190424f9f2877e1938bad33b683fefd750e541f72e6d9ee4bf05c1c65de030c9022211333bbfce768bbd96ab750c46153c491d301ec63c6f
 SHA512 
1904bac24b5f9b7bdbd18c7a7c32e875bbfb1017c34441e83a9970624a48c8bbeb3a59f926303ae3a2a28586107f29a5849bee0f17acb8dfdb6e2f7ae904c3b9
+DIST gitlab-runner-17.2.0-deps.tar.xz 86664672 BLAKE2B 
95d542400ac07c77ef2be39b42c2615d2593869e6ae6fb48b89f2c06dc1da80dc95c3833b6bf9a089bb1fbdb9b4565fa788a74ddb39c27bd5e76cacb5be0d3ac
 SHA512 
c08dcf3b6d9eae16b20f1bc62964012a5923f4ef9f53f357c8af23cdbe8fb4f519a87f62e05d3b5dee8a96e9ef7c27a1178569d33cb97695ce41372bcb6d3fc7
+DIST gitlab-runner-17.2.0.tar.bz2 1377145 BLAKE2B 
dc9a06743387e45ecd9c44269b4b8703d41413e783908d21024eea2ee09ef9ee8c277cf9ae831ba0058fd9d14ced088722e34788a6338214373cb61b101075d7
 SHA512 
568dc0198f87e25103183f0279b0c12af154a9009c9986be9e481f53b34d0a408e1e323a743181e5b4133a7e5af0da448dd2e0211918089e9608eca0aeaa468f

diff --git a/dev-util/gitlab-runner/gitlab-runner-17.2.0.ebuild 
b/dev-util/gitlab-runner/gitlab-runner-17.2.0.ebuild
new file mode 100644
index 000000000000..45ec307fdba4
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-17.2.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=6428c288
+
+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