From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1651758-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 370CE1581C1
	for <garchives@archives.gentoo.org>; Thu, 11 Jul 2024 14:47:52 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0DC9F2BC03A;
	Thu, 11 Jul 2024 14:47:51 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id E13D92BC03A
	for <gentoo-commits@lists.gentoo.org>; Thu, 11 Jul 2024 14:47:50 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id D47EE33C1C1
	for <gentoo-commits@lists.gentoo.org>; Thu, 11 Jul 2024 14:47:49 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 3B2381E19
	for <gentoo-commits@lists.gentoo.org>; Thu, 11 Jul 2024 14:47:48 +0000 (UTC)
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" <williamh@gentoo.org>
Message-ID: <1720709241.9d1fb0f2696ab3554636ac1131d63a13edd3f73c.williamh@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/gitlab-runner/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-util/gitlab-runner/Manifest dev-util/gitlab-runner/gitlab-runner-17.0.1.ebuild
X-VCS-Directories: dev-util/gitlab-runner/
X-VCS-Committer: williamh
X-VCS-Committer-Name: William Hubbs
X-VCS-Revision: 9d1fb0f2696ab3554636ac1131d63a13edd3f73c
X-VCS-Branch: master
Date: Thu, 11 Jul 2024 14:47:48 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 6574d12a-f0a2-4b5f-87e8-a24d778b8a56
X-Archives-Hash: caa237d035ff791e37b47613f328bfc9

commit:     9d1fb0f2696ab3554636ac1131d63a13edd3f73c
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 11 14:47:09 2024 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Jul 11 14:47:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d1fb0f2

dev-util/gitlab-runner: add 17.0.1

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

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

diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index 12f5ce5cea3c..0a9b8debe79e 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -4,5 +4,7 @@ DIST gitlab-runner-16.11.2-deps.tar.xz 85890592 BLAKE2B f7316c038e5036799e02d1cd
 DIST gitlab-runner-16.11.2.tar.bz2 1378922 BLAKE2B 43e896f0680e834d63ce92a1103796fe651067fec62662a186da307e5279f3d9449a6b04867c09a8bf72a3e4c431727c3145dfba5d405c24b881598cdeaebe3f SHA512 c05e5f398fdd5f80fa13dffc21e820d9ce4d34e3e1186c71c818c9e9da7ffec8c79559d5e875b691e824ca0ee0d7598b0166cf7a68e27136b10bf86195fb701e
 DIST gitlab-runner-17.0.0-deps.tar.xz 86841028 BLAKE2B c7952e6028869264ed6d728043074ef5318230db18ea06a5ab740262693f22bd3111c5ad99ca2da2ca57079e3389b5a87a9994635f98fe6670f87df97e158956 SHA512 1c705bacc8eb896b23dee06ed4258c22cb0ba96073725761f2e138d4687efab4a1866e76203c1f7694c8d71995e18ad96d7da333fe88c24aa3454ac5caf4dc63
 DIST gitlab-runner-17.0.0.tar.bz2 1370211 BLAKE2B 756972b3d28d0a90ab517ecd014ccba42255dfaeb09b5e755f7395c064705273193d9a4efcbf2f1dfa8d54a9c1ed2192dcd5d3258c70aa514056df725f37322f SHA512 2cc67aa8ca43583bc60ca4d752423760b612f1a741203b0a7f0cd2fc77c292bd3a4c31f252c353a28d112d753ca920c1e8f9a401e79ac90c4eeeaf1d588ee09c
+DIST gitlab-runner-17.0.1-deps.tar.xz 85885404 BLAKE2B 5145aa9e3bd95c5de993ab846a7d2db3e8e24188c088ffd2788d7e4e055eabe86915cb330590ace6ad5238c90590ac4567faf176947a21c506ef2fa1a8adce35 SHA512 45beaeacd4b734cbabd1991d68827b8f3bb7aaa5e002fb7bb35689b231cc0a2348beca3472ebabb00593fcafc8ae42b7b370e268b7d4c1c2e7d757e7bffa3504
+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

diff --git a/dev-util/gitlab-runner/gitlab-runner-17.0.1.ebuild b/dev-util/gitlab-runner/gitlab-runner-17.0.1.ebuild
new file mode 100644
index 000000000000..420b6397e785
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-17.0.1.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=5313d0d2
+
+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"
+}