From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 31F471581F0 for ; Thu, 23 Jan 2025 04:13:00 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 1AC5133BEE9 for ; Thu, 23 Jan 2025 04:13:00 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 222F011042E; Thu, 23 Jan 2025 04:12:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 bobolink.gentoo.org (Postfix) with ESMTPS id 15A6411042D for ; Thu, 23 Jan 2025 04:12:59 +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 BD17F33BEE9 for ; Thu, 23 Jan 2025 04:12:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 17EC4DCF for ; Thu, 23 Jan 2025 04:12:57 +0000 (UTC) From: "William Hubbs" 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" Message-ID: <1737604397.129efa4e141a08e7921d4ce7f4c42e00d3aefaf0.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.7.1.ebuild X-VCS-Directories: dev-util/gitlab-runner/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 129efa4e141a08e7921d4ce7f4c42e00d3aefaf0 X-VCS-Branch: master Date: Thu, 23 Jan 2025 04:12:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5d57edcf-91ce-4e1b-86f0-7e7f76d090aa X-Archives-Hash: 625a4e2a0d62cfdc891f277c70bd1194 commit: 129efa4e141a08e7921d4ce7f4c42e00d3aefaf0 Author: William Hubbs gentoo org> AuthorDate: Thu Jan 23 03:53:17 2025 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Jan 23 03:53:17 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=129efa4e dev-util/gitlab-runner: add 17.7.1 Signed-off-by: William Hubbs gentoo.org> dev-util/gitlab-runner/Manifest | 2 + dev-util/gitlab-runner/gitlab-runner-17.7.1.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index 0a6c213a7e53..a7aa89864cbe 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -4,3 +4,5 @@ DIST gitlab-runner-17.6.1-deps.tar.xz 108538744 BLAKE2B 67a89a4d10d7cac07cc6c032 DIST gitlab-runner-17.6.1.tar.bz2 1744419 BLAKE2B c56ce5e2f9185efe0068faa39ba305d0dc2ec036d83c86445151d90d230351c2a5b2e1124f9e7d6109bf7c04c8ff0d0fc72b920ad675975a9f840c72267d75c1 SHA512 21e73bf3d99f2d5e500bb3a1c2b95534c96f673ff51eae086a06386ae954f23fd7cb5950e347b97ee52d15824bde2b4e8999d27660602f8803383d748cc86c03 DIST gitlab-runner-17.7.0-deps.tar.xz 108544204 BLAKE2B 0e9049a8a56e705dc2d6d1585d75fa356b3aa3b9eb0ff14cea76adf6021636dcc2a6989e75f4ba1cb64be17cf3b4417a31db73b8d3b73eb92f0d12b8659343d2 SHA512 be76825ddcb22ead48338f9023777f4a610fd468e4020ab4455881ec1b4b02cd594c7fbffd29d9f79645551e075f150090f75ac21b2250b8c73381f67ae866dd DIST gitlab-runner-17.7.0.tar.bz2 1758329 BLAKE2B 942ce344664ee7067e98e5ce50d011180c2189cde14a7dff517af5fb64b60892404bc367031aeeb7320aece993ae4674808548436e8d077172075d183b9e69e0 SHA512 57b5b0882d1190ed88b01b729b577531a2a8c9831a7037437ff16343bd9582b3d7e436e13f3e1cee0aa5457ff95e78f2ddd81d4df8a57589ffe71c0a68642a38 +DIST gitlab-runner-17.7.1-deps.tar.xz 108516732 BLAKE2B cba771fb005fccaa19816fb5f4bf45e63f2de3d69f2477e4d1f68388a98a46a9332767d5bb455f4076cd7fdf1c1a63ea728bb8142dcea957e2f60e0577cc4733 SHA512 c2332bdee6b7bfbe0d3ec93b7f0825b6f5df1440bd04eae44ea63375b57690ba5e7d1aa08907d5ba45a771b49e286c1b82c0f0a75de4da51192a2038d9aa6e17 +DIST gitlab-runner-17.7.1.tar.bz2 1757310 BLAKE2B 44fa445f30ae65be18a63788bcdda1086af0226f0a44c792f898a7c8fae584e48d4a84e132b3257121cafc2f7df1760bc24f6d9154c2c359167530e57e4afe89 SHA512 f1d21ee94873652ee7aa62a165707088f957334ee90f3fab7b66df8b63589c2e6e41e1bb9f7cfa13835ca992b8ba773bdc88ad2a72e1b46accfd558eaf1d2a22 diff --git a/dev-util/gitlab-runner/gitlab-runner-17.7.1.ebuild b/dev-util/gitlab-runner/gitlab-runner-17.7.1.ebuild new file mode 100644 index 000000000000..af733ea3b9ca --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-17.7.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2025 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=6669abcf + +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" + +S="${WORKDIR}/${PN}-v${PV}" + +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 ) + +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" +}