From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8351215800F for ; Sat, 11 Feb 2023 23:14:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6EE4E0893; Sat, 11 Feb 2023 23:14:01 +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 83CDBE0893 for ; Sat, 11 Feb 2023 23:14:01 +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 373BB340CEA for ; Sat, 11 Feb 2023 23:14:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 69C868A6 for ; Sat, 11 Feb 2023 23:13:58 +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: <1676157211.1ce22cc01a8e096fc59c49d287eef15cdfb491e6.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-15.8.2.ebuild X-VCS-Directories: dev-util/gitlab-runner/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 1ce22cc01a8e096fc59c49d287eef15cdfb491e6 X-VCS-Branch: master Date: Sat, 11 Feb 2023 23:13:58 +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: 42e76441-c536-4b23-b7ae-6ac59c35e4ef X-Archives-Hash: 20800d2e9131aa18c0fe09a73d4e00a8 commit: 1ce22cc01a8e096fc59c49d287eef15cdfb491e6 Author: William Hubbs gentoo org> AuthorDate: Sat Feb 11 23:13:20 2023 +0000 Commit: William Hubbs gentoo org> CommitDate: Sat Feb 11 23:13:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ce22cc0 dev-util/gitlab-runner: add 15.8.2 Signed-off-by: William Hubbs gentoo.org> dev-util/gitlab-runner/Manifest | 2 + dev-util/gitlab-runner/gitlab-runner-15.8.2.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index 838964863f11..14b8a69fd0b8 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -6,3 +6,5 @@ DIST gitlab-runner-15.7.4-deps.tar.xz 160601896 BLAKE2B a208b751544fec8033276b54 DIST gitlab-runner-15.7.4.tar.bz2 1250425 BLAKE2B 933aa20c9c4ae0008caf0a63e3cc0b8fb22e34830d2536a54980b484913f8e6dc545539697fb36185d0cb1360660a9162fd5231ef4ef351177062b9b2cd56dc5 SHA512 9db90d39e1c52676165f39e9002da777c2e8c4c38c7f9538579628d858e9e541ee1b2e66156c0b6387d503088ea75084dee82a761733366dbd3db895da80a9e5 DIST gitlab-runner-15.8.0-deps.tar.xz 160683188 BLAKE2B 38a3fe7e527553cc53382338ecb52d2a3c8c94b72b04d0d3dfa01e4b4953c9a73fb71982daa60f6ea735c77c6d18d78f40381fce9d9f261ad3d8d5cab527bdf8 SHA512 3e412e20cbdd76d896e2e3b40fe8558de1eea69fae1649a91c04ec7f16afcdc0611aa033fab49334ccb5fc0a6c4062c3de858f0419b93a8b10896176f2ff58db DIST gitlab-runner-15.8.0.tar.bz2 1256911 BLAKE2B 309f98898a122b82f107e286ef3212e7b3e1345e8ba4486b9e02e10da717ba71b08f2075a2f6ddedf5d64506954f65754410e30bc729f0cf005ad8845912e72b SHA512 4239218aaf53db3020f5eb6edc17014b7d7550093bc9a4b545216eb1f2e155c77418eb2d5cf2ec1c1554664b6763354cd8d5fcb3d3ffbaeb6839b4282be76cdf +DIST gitlab-runner-15.8.2-deps.tar.xz 160677404 BLAKE2B 7b1d07dbcbf7ce9255969036f6c29cd2b01d59ff5763f2bb6993def34fc714038c6ace11f2cfbec728396acf93c158d0b350b62340d5795f98e84999c3bf2fed SHA512 9dc6b6e19dc5f203142049e75359ccd31d750803bdee95434436bcc6d9ac2148a92da00598454d5642aafa883e145174bdd3989a525a76db0b1646d0e96c919f +DIST gitlab-runner-15.8.2.tar.bz2 1258847 BLAKE2B be5e704bf12c7c64cab38c8b5a42b03f7023f1e6d390807fbb5b89a650ad07ec1cae2d4f1e7af946e87d33fc6eb14c944912443880ce51b62a944ac8c87e1598 SHA512 3faf5ccd6948511a7f5b31996e860806fe4b15a2b6ee2bf5eb53bc56f52cf4393d20b2a2a93a8741c29a517e8e6b5cb6af3f26d9438aac518a454b300a846557 diff --git a/dev-util/gitlab-runner/gitlab-runner-15.8.2.ebuild b/dev-util/gitlab-runner/gitlab-runner-15.8.2.ebuild new file mode 100644 index 000000000000..99558db152a5 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-15.8.2.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=4d1ca121 + +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" +}