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 00A2A158089 for ; Mon, 25 Sep 2023 21:33:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 378982BC01E; Mon, 25 Sep 2023 21:33:53 +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 1B7542BC01E for ; Mon, 25 Sep 2023 21:33:53 +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 34A3A335CAF for ; Mon, 25 Sep 2023 21:33:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8664811C8 for ; Mon, 25 Sep 2023 21:33:50 +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: <1695677625.b6b01a756fd1915a5c1be9ce7e1890fd790ae954.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.4.0.ebuild X-VCS-Directories: dev-util/gitlab-runner/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: b6b01a756fd1915a5c1be9ce7e1890fd790ae954 X-VCS-Branch: master Date: Mon, 25 Sep 2023 21:33:50 +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: 017c6429-291b-47be-bc65-d16e0bbb1dd7 X-Archives-Hash: 9b441096e6cfe26c12f71a741f8a939a commit: b6b01a756fd1915a5c1be9ce7e1890fd790ae954 Author: William Hubbs gentoo org> AuthorDate: Mon Sep 25 21:32:28 2023 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Sep 25 21:33:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6b01a75 dev-util/gitlab-runner: add 16.4.0 Signed-off-by: William Hubbs gentoo.org> dev-util/gitlab-runner/Manifest | 2 + dev-util/gitlab-runner/gitlab-runner-16.4.0.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index 4504a224809e..c58797cf3157 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -4,3 +4,5 @@ DIST gitlab-runner-16.2.0-deps.tar.xz 200381264 BLAKE2B 61a9d094c251f299e9871888 DIST gitlab-runner-16.2.0.tar.bz2 1361100 BLAKE2B 19df94ba47188ad696f79df56595f34a2fa7c82971549172a8acc65dd04228aed077d675f85e35e8731ae4b1e72003333ebe667772dce66e6bb17a0ad84a522b SHA512 75097c09b065c8486a5d23219dcb8e36c2baac254e0b09811dd725cf493d959d9b2d3a2c9c130d208a50c1355e19faa749a6d5bb58e1681f782279eca277605e DIST gitlab-runner-16.3.1-deps.tar.xz 200544092 BLAKE2B 7bebd181ce6a47bee99098d124009da41e61273823be09af4c7d76851f5b1c2b67338b6a836f6d7a776c0191f6463db950d6081eb1248f12418aebd80b557929 SHA512 5eee370015b3ba82b0856300754a8ef8906d649bf3e08fe5ded9209cb6d35e591d2d9a9ddceb1172b23cadc7efc2cd7f53c22736db3cba84d2c1d73a03c538de DIST gitlab-runner-16.3.1.tar.bz2 1366408 BLAKE2B 99d8ce6d99f2916a8477f97c5529ffa9e847859987c89ddb7e7ab3d2249b48e5836549ce992c9f20a65cab2261ee63f5b6b1dd25198dffd84379ab8ecf6e2df3 SHA512 9f59fd9966b7619aee93f3ad16d6c9a7c81203b015798674f44f111c59ef4d3a320344dacbd020ff9385e1e9ee5aae1a931102c3d0297dd4df9bf2615eb4a357 +DIST gitlab-runner-16.4.0-deps.tar.xz 218817844 BLAKE2B 2e23b00ec77138699575bf1b5674b7d29867b901932301677e6cebe2a050b06b23d096d96e841f8baca902deaddea6053064de8eee5b477ba967ac8abbc5a51d SHA512 96cf86020773bedf543e20dd7ca009b4769cbd074a08c4a092a7d4decbb9d6c5e72a944056dc2034ffeb9f58d00af11c25cd5c2ab5a91020092fae948e14e5d5 +DIST gitlab-runner-16.4.0.tar.bz2 1371838 BLAKE2B f86aa2abc9ab92fa0dc3ef9814f2fa37624e33aaf9eb4b14269e4141e59c751fbf7e446366fa4cdbd55afdc5adc672247d45188bfbf6cdb8b089fac780066b96 SHA512 48b9bfa9daf29e72dfaad363e580f3b80b5fe1031b64dcc962fa4d8d6603e1f8b93298f3fb420160c772173b6cd89daf32a31c5a0b1d93651e3ba60f8628c530 diff --git a/dev-util/gitlab-runner/gitlab-runner-16.4.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-16.4.0.ebuild new file mode 100644 index 000000000000..ccdd96f69713 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-16.4.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=6e766faf + +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" +}