From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1536549-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 7593015800D
	for <garchives@archives.gentoo.org>; Mon, 10 Jul 2023 22:22:22 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6F5C5E0845;
	Mon, 10 Jul 2023 22:22:21 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(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 561F6E0845
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 Jul 2023 22:22:21 +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 583C5340C76
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 Jul 2023 22:22:20 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id B0B40A88
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 Jul 2023 22:22:18 +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: <1689027550.114bd8116e6c0de806a1515205fc58cc6d03a882.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-16.1.0.ebuild
X-VCS-Directories: dev-util/gitlab-runner/
X-VCS-Committer: williamh
X-VCS-Committer-Name: William Hubbs
X-VCS-Revision: 114bd8116e6c0de806a1515205fc58cc6d03a882
X-VCS-Branch: master
Date: Mon, 10 Jul 2023 22:22:18 +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: 6ce7b4ed-a685-4b50-8b01-66f7e3318e3b
X-Archives-Hash: 79db8581fd26c6cab0b0161922acab29

commit:     114bd8116e6c0de806a1515205fc58cc6d03a882
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 10 22:19:10 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Jul 10 22:19:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=114bd811

dev-util/gitlab-runner: add 16.1.0

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

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

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"
+}