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 3AD5D158003 for ; Tue, 28 Mar 2023 04:51:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5249CE07B3; Tue, 28 Mar 2023 04:51:51 +0000 (UTC) Received: from smtp.gentoo.org (dev.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0952CE07B3 for ; Tue, 28 Mar 2023 04:51:51 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 43A24340E9F for ; Tue, 28 Mar 2023 04:51:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 94F1C8E5 for ; Tue, 28 Mar 2023 04:51:48 +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: <1679979096.2faa1b7278b4d9f0ea9a0357af04c199f68d3813.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.10.0.ebuild X-VCS-Directories: dev-util/gitlab-runner/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 2faa1b7278b4d9f0ea9a0357af04c199f68d3813 X-VCS-Branch: master Date: Tue, 28 Mar 2023 04:51:48 +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: aa5ab9a1-9573-45ca-a8ac-ee398ed87ee8 X-Archives-Hash: fb0a73761eb32a64b4aba4f2bafcf101 commit: 2faa1b7278b4d9f0ea9a0357af04c199f68d3813 Author: William Hubbs gentoo org> AuthorDate: Tue Mar 28 04:50:27 2023 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Mar 28 04:51:36 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2faa1b72 dev-util/gitlab-runner: add 15.10.0 Signed-off-by: William Hubbs gentoo.org> dev-util/gitlab-runner/Manifest | 2 + .../gitlab-runner/gitlab-runner-15.10.0.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index b6c3f3f425d1..0f6215726253 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -1,3 +1,5 @@ +DIST gitlab-runner-15.10.0-deps.tar.xz 161347172 BLAKE2B bd714ccb11bfb7731658d2aa03da92d3ffd92871c00df6b77d0d13ab86c7fa175ccab2f489562a1859c83728838d07b37d95cc2fc60e825dd2e0b86e795e8605 SHA512 17d5d5db1b3507df3ad9979cd99d5c4325a35e17fe470163fc061c99c22b99cc98ac5130d417f12fa476a1131877496490ed9cad8cfb0a9c6a4fe6ddcc6d0288 +DIST gitlab-runner-15.10.0.tar.bz2 1277793 BLAKE2B db238970f26cbc1c5af415d151d575c62589036c98c18db73b70b97475873e5ef0b9fd3cd3353e60988bfaac51e6cda326400b502f5c72c2f113a727510f1811 SHA512 3a79ae09a8e52a759ef0794207da495f70c296281c8956092ebb1def3af37a488897e16d3a7d0d50bc73e72f9b0c5c0c9394eaf295810ab0f498047c5a13f65a DIST gitlab-runner-15.7.4-deps.tar.xz 160601896 BLAKE2B a208b751544fec8033276b541bb445c2b28100c16c9438113d83d719cae8d2b8a8c61a9a86c98e1b0c221c5be7365ad68ee9b29432df5ea03d1122e62763d022 SHA512 4a0f56348ef13ffe80395fe2887fbc5aca54f1ae620793c96388f69ae6b8c8e09c9e49d6b7524f14f7d93c560bce76678a4c8f74f6f00e0f146d54af7788344f DIST gitlab-runner-15.7.4.tar.bz2 1250425 BLAKE2B 933aa20c9c4ae0008caf0a63e3cc0b8fb22e34830d2536a54980b484913f8e6dc545539697fb36185d0cb1360660a9162fd5231ef4ef351177062b9b2cd56dc5 SHA512 9db90d39e1c52676165f39e9002da777c2e8c4c38c7f9538579628d858e9e541ee1b2e66156c0b6387d503088ea75084dee82a761733366dbd3db895da80a9e5 DIST gitlab-runner-15.8.3-deps.tar.xz 160672020 BLAKE2B bb0cb16ad7c19afb048c0c1e5d48fc157f25d9a79abc564265152b16e3b436693cc0a0faa02dade584e0b95d9806b491582f8741b2b091798aa6b77a3bf9fadc SHA512 f379f5a514314d6f86fc6ac2dc00b1407e1637709c09555e3828adb7544141224c012cf104e1d47ac67f04c19371536ff338c446c7f69c985e1f67278dbee3c7 diff --git a/dev-util/gitlab-runner/gitlab-runner-15.10.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-15.10.0.ebuild new file mode 100644 index 000000000000..59484ae0a893 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-15.10.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=456e34824406b57e26b4dec29e9038edc2ac0396 + +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}-${GIT_COMMIT}" + +src_compile() { + emake \ + BUILT="$(date -u '+%Y-%m-%dT%H:%M:%S%:z')" \ + GOX="${EPREFIX}/usr/bin/gox" \ + REVISION=${GIT_COMMIT:0:8} \ + 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" +}