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 3F50215801B for ; Tue, 22 Aug 2023 16:58:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4806B2BC014; Tue, 22 Aug 2023 16:58:29 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 287882BC014 for ; Tue, 22 Aug 2023 16:58:29 +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 2D053335C51 for ; Tue, 22 Aug 2023 16:58:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9077EFC9 for ; Tue, 22 Aug 2023 16:58:26 +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: <1692723498.22935bed385d83d282ecfce15c05c86081ae5420.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.3.0.ebuild X-VCS-Directories: dev-util/gitlab-runner/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 22935bed385d83d282ecfce15c05c86081ae5420 X-VCS-Branch: master Date: Tue, 22 Aug 2023 16:58:26 +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: 016e25b9-361a-4f70-96ed-44289b15fc8f X-Archives-Hash: 15463f67c5285980c6a906d866a22f3d commit: 22935bed385d83d282ecfce15c05c86081ae5420 Author: William Hubbs gentoo org> AuthorDate: Tue Aug 22 16:56:11 2023 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Aug 22 16:58:18 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22935bed dev-util/gitlab-runner: add 16.3.0 Signed-off-by: William Hubbs gentoo.org> dev-util/gitlab-runner/Manifest | 2 + dev-util/gitlab-runner/gitlab-runner-16.3.0.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index df0f08b3081b..4bf10d8b2da2 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -4,3 +4,5 @@ DIST gitlab-runner-16.1.0-deps.tar.xz 199599928 BLAKE2B 585dd1038106e5f0f397fc80 DIST gitlab-runner-16.1.0.tar.bz2 1353795 BLAKE2B e0f8fc23c9e50dc2bbe50187c7256381678504aef1d23e82a2fdbaef10f0c502ba8dfd31bbae450d22362b9b82b81184895dac1353f5dcbd32cefe9a263a7a81 SHA512 2fe31471e80943e24b7667ee8d544d6b031435c88ab2fb58911752b248d2e0293fdede0996e2715f54ec71b4c6d58aa422b87fb112e005c1022af0d4c1a80caa DIST gitlab-runner-16.2.0-deps.tar.xz 200381264 BLAKE2B 61a9d094c251f299e98718883359433545294c8d862872bcf1b4558d721455bd83d867b198af4ec9a217b7e67be3084539955613640ff1829ae6c39a4bc82926 SHA512 9ffbee5f3b179d5a85f3d322b109b538c6c78874b80c5f593fbfe8ccb993fa0b2028665354f10a0774c7a130c12170bc53cc3315f34ec3b6941febc726e113df DIST gitlab-runner-16.2.0.tar.bz2 1361100 BLAKE2B 19df94ba47188ad696f79df56595f34a2fa7c82971549172a8acc65dd04228aed077d675f85e35e8731ae4b1e72003333ebe667772dce66e6bb17a0ad84a522b SHA512 75097c09b065c8486a5d23219dcb8e36c2baac254e0b09811dd725cf493d959d9b2d3a2c9c130d208a50c1355e19faa749a6d5bb58e1681f782279eca277605e +DIST gitlab-runner-16.3.0-deps.tar.xz 200558852 BLAKE2B 0410dfdd94aa23872db78c405d9d2184abf8a769f2d59a5dd83f79b2a1b684f9edd38f5249010081c87c1e5da5c91d5f816591c01810ee27634fd6e8d4a22d2d SHA512 66447d7aaf2478216b93695add4ef574093493b3081b2906877fb07150cf1bc95eebebc21558848223179f680d6e855553edb9f4bfae6f3079e9f9cd6f85abd9 +DIST gitlab-runner-16.3.0.tar.bz2 1367414 BLAKE2B 52ff7743f2b55bc2810da29c90f10dbe8e377a3eab1cd5feb90d9ee4e9e2fda75a7ba0c5538c1b545ac9396a6f708e7338413c2fc606cbc54c10b65a9c482171 SHA512 189afc002699c6f131f46f7cea098a447e4e5984a92e86ffea8f4005d232a9b1ad55e4aed023a693dc5296ec391e4f50cb878376ef36906039319e5fc7a3d846 diff --git a/dev-util/gitlab-runner/gitlab-runner-16.3.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-16.3.0.ebuild new file mode 100644 index 000000000000..2c229e87a1f9 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-16.3.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=8ec04662 + +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" +}