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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1EBE115810F for ; Sun, 11 Jun 2023 02:05:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05F34E088D; Sun, 11 Jun 2023 02:05: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 C87E1E088D for ; Sun, 11 Jun 2023 02:05:00 +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 98B8F341241 for ; Sun, 11 Jun 2023 02:04:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AFCE78DC for ; Sun, 11 Jun 2023 02:04: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: <1686448946.07789cd96bb306bf1766cb175c60cb27fe990dde.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.0.2.ebuild X-VCS-Directories: dev-util/gitlab-runner/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 07789cd96bb306bf1766cb175c60cb27fe990dde X-VCS-Branch: master Date: Sun, 11 Jun 2023 02:04: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: d086318a-fb92-4c12-aaea-03954f45189b X-Archives-Hash: 45d8e6d83313bb4c40a3fa4a18cbdda1 commit: 07789cd96bb306bf1766cb175c60cb27fe990dde Author: William Hubbs gentoo org> AuthorDate: Sun Jun 11 02:02:26 2023 +0000 Commit: William Hubbs gentoo org> CommitDate: Sun Jun 11 02:02:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07789cd9 dev-util/gitlab-runner: add 16.0.2 Signed-off-by: William Hubbs gentoo.org> dev-util/gitlab-runner/Manifest | 2 + dev-util/gitlab-runner/gitlab-runner-16.0.2.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index 9276ba7af332..0022e17269b8 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -6,3 +6,5 @@ DIST gitlab-runner-15.9.1-deps.tar.xz 159144912 BLAKE2B f10167c731371dbf4d61a05d DIST gitlab-runner-15.9.1.tar.bz2 1267756 BLAKE2B 1732db4d7d8a3f530654f2897ec665bef87cefbfafc8776ba4b15d327768924d9fef5918a5d31899825e17bba20d04bfd30f6c8cbe834b266cadd0f414cfe840 SHA512 ab82cce1956105046aba8560317e00f3f333669ca7ee305879821bf433485599d2eb206afd8edc04c3b9c3d07eb38dfe335c77ff9a4f431bee5dea0a1d10b9c2 DIST gitlab-runner-16.0.1-deps.tar.xz 161414860 BLAKE2B 10aeed685269102aae8a738b87c29fc553ddf3ca14309c7634180d9909d943a94727df851f0374dd0ae6c0b221a54bbd48a0fa38047cb50d1ca08798872c0ec0 SHA512 9337002f9a3c1356db11d635d767826aae719ccf546da77a3aec4c9d6eba253398a237f517d0a48aef60021d8d9a303656ac3bda4c5a282dc219034c8e704e88 DIST gitlab-runner-16.0.1.tar.bz2 1345390 BLAKE2B 2c2bce5444721786014b0830149a7c430f5bc76b1f90df1b1b988788b4b43a79494419758f64ac56ca582ce9ffb214bfc9426bf8d9d2f1c51e09bb26a213406f SHA512 aa45659f958361d8fa138cf496faa68b278084127a225cf56930bd040db2b20307bcfe98c230ecc6d6f7576fbebebb6aa5801a4d17de2a977c92fa2ddf28ee84 +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 diff --git a/dev-util/gitlab-runner/gitlab-runner-16.0.2.ebuild b/dev-util/gitlab-runner/gitlab-runner-16.0.2.ebuild new file mode 100644 index 000000000000..dc70f1621c4b --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-16.0.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=85586bd1 + +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" +}