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 2F056158099 for ; Thu, 30 Nov 2023 00:07:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6DB382BC014; Thu, 30 Nov 2023 00:07:56 +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 25F6D2BC014 for ; Thu, 30 Nov 2023 00:07:56 +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 5470E335C11 for ; Thu, 30 Nov 2023 00:07:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8B3B1C38 for ; Thu, 30 Nov 2023 00:07:53 +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: <1701302867.db29cfab013ddb9fe24c77ac159c090067e50ef2.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.6.1.ebuild X-VCS-Directories: dev-util/gitlab-runner/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: db29cfab013ddb9fe24c77ac159c090067e50ef2 X-VCS-Branch: master Date: Thu, 30 Nov 2023 00:07:53 +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: be27d404-1c96-496f-a59c-3e5588b1a012 X-Archives-Hash: f0081e04b67ff4c2c957d72c13078913 commit: db29cfab013ddb9fe24c77ac159c090067e50ef2 Author: William Hubbs gentoo org> AuthorDate: Thu Nov 30 00:07:00 2023 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Nov 30 00:07:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db29cfab dev-util/gitlab-runner: add 16.6.1 Signed-off-by: William Hubbs gentoo.org> dev-util/gitlab-runner/Manifest | 2 + dev-util/gitlab-runner/gitlab-runner-16.6.1.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index 75d1a3e445da..3ce690538a7f 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -4,3 +4,5 @@ DIST gitlab-runner-16.5.0-deps.tar.xz 218830692 BLAKE2B 91f1b48239f8da19c93f5b9e DIST gitlab-runner-16.5.0.tar.bz2 1373002 BLAKE2B 25ac77ffa71a633cad2b99211acf68595a3ee293f5af3e7cd813ec5a9b70a252413ed99d3b354ef713fb08b9dfeb140e7daa7a3cfd168d4af270034147657dac SHA512 59f03814a44d53c573b336f3eff9d1d273bc6b601e86cc58ca91778705a7897c999bd30e92361aa9294a91596505ca2950d56ad9cc64db7aa40a204ab4a4173d DIST gitlab-runner-16.6.0-deps.tar.xz 223036872 BLAKE2B 2ed2ec80bb6de33b2ba8ab002edb4f96da34ac2cdd52f289bb128b61c670335477f1cf46b384304b47b0972bb2d029fd5763385dc63b6b21fcc9148d905a7df0 SHA512 96fcd9555cb501daaaee114d0da2f2b5b83644f3c9154e31b2a6208ac4fd043a7457157da4b1ed0d287841ceaa4d9101f3a4d198804bcb7833b07db73a14ffd4 DIST gitlab-runner-16.6.0.tar.bz2 1335612 BLAKE2B 431f8b393fdeec46eb8e7b61c8892c75be5c2183f9a04e1d3a078313e62e37863d9e59b7163e9cc2b6efdba79c719c4244ec64dbee997ea9e39b81fcaeda6794 SHA512 6dfbc0eb145752a7d1891aafdaf4641dafc263a97b4c4b37c2dad3bfc9a44db2aa4059f7f76ecf11280cf06c61a01648f41af22997ba79bcda57f241ef2686b1 +DIST gitlab-runner-16.6.1-deps.tar.xz 223030236 BLAKE2B 76866243ed71a907b0eb8d9991243683be45c7e426c2ba53f556ebb868ef42a6523d5eb421fdffe2ce0ec290f5d8a19db9e5690eec52b4bdb8a7e819ded11939 SHA512 907464fd819d1f331f8f19be5c6fcf64838f3d7ad2d27586d2799642ef3ea94c2860caca8d4dc1b11404b664e3e7201e8becf99fd1895c8a7ab548ce4d4ea65b +DIST gitlab-runner-16.6.1.tar.bz2 1335597 BLAKE2B 5432b008c38e0ce4f6d9026f82f964a2b929b81165d5694b05d740e5db3d561e7856842dec1d0bd17595832a6321f5d060da6e1be0f12da6a66608226089af97 SHA512 14a30a276c46b43b7b5b6a766eb287beecb434a2c6cadaababdd6de0b265f23de2dc3b8387f8110889cf3cca70ad95bffcbfed7cf0d5543604ee3aebc4cad579 diff --git a/dev-util/gitlab-runner/gitlab-runner-16.6.1.ebuild b/dev-util/gitlab-runner/gitlab-runner-16.6.1.ebuild new file mode 100644 index 000000000000..7febea7444d1 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-16.6.1.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=f5da3c5a + +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" +}