Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/gitlab-runner/
Date: Sat, 24 Sep 2022 19:09:38
Message-Id: 1664046526.838168881c7969b0a901180686103807f792974e.williamh@gentoo
1 commit: 838168881c7969b0a901180686103807f792974e
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 24 19:07:07 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 24 19:08:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83816888
7
8 dev-util/gitlab-runner: add 15.4.0
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 dev-util/gitlab-runner/Manifest | 2 +
13 dev-util/gitlab-runner/gitlab-runner-15.4.0.ebuild | 67 ++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
17 index c65768fa903a..364c847dfed7 100644
18 --- a/dev-util/gitlab-runner/Manifest
19 +++ b/dev-util/gitlab-runner/Manifest
20 @@ -14,3 +14,5 @@ DIST gitlab-runner-15.3.0-deps.tar.xz 141251000 BLAKE2B e72c597a10e78f234f7879ff
21 DIST gitlab-runner-15.3.0.tar.gz 1306073 BLAKE2B cc7f1902e7cfc7577e936b411ae7f582c25757ed5d59cc5d61bb8f9c027ce292c7aac46788a44be78686f1705d5722373a9f5f2b295fd1eab2666e749fc50e06 SHA512 8eabe9a4fd04e46d4bf306dc202664e29f5cb12cba5d73820888957d694711702e026f79a84e1d5f5237cb3d1e7efed8e035129814dcc6354e708ee98e98cbe9
22 DIST gitlab-runner-15.3.1-deps.tar.xz 141247556 BLAKE2B 8ea8e519efabfe54ff2a70477e713285a80889e6f001adae7263626db4086112964dcde328662a96c3c92d251e294fed6cd8023772f74be650a63f7d7fd2bd58 SHA512 047b4b3ac5e4fb6d493b5ae51219bcd60b056265a146d4001299ccaee491e5b6b0da8a3f1f84d4d44ae0e726b732c69d59851735283c78ddd6456ab9a7a87d49
23 DIST gitlab-runner-15.3.1.tar.gz 1306831 BLAKE2B 032115edb7b0ae23d4f4083e542aa645e4f76fea04a63c5d3018080314081c82b2250d292b26b507101b627314d9142b0109f33fa8289a583010a5d692a6c1cd SHA512 62e543983e184c2e57189042f8281696e0428841890aef8779fce125041dbbd0626807491e5ae589e367f6b725fb93e663d94da3a051e2a9ec681b959c4bd85f
24 +DIST gitlab-runner-15.4.0-deps.tar.xz 141260140 BLAKE2B 876b71eb424bd5d65624718a666f7ff376b7d548056932e5f190974aa54bb7df5453b6fd6cb7a683a528035a8ddc0cec4a4a0f5481c491a6daac2e47edcba061 SHA512 1e940a8ac199b37d305d046f8f93d474e58881f76ee1e569d905cdc02f219dd5730ea7a4efc7ba297d5492996777daf2ec783788da9de6c5873528e0ed0d7c91
25 +DIST gitlab-runner-15.4.0.tar.gz 1309792 BLAKE2B 54b4c94a79c86097116aa1bd4fe9e70da648ec379de606f36a3abbd15b7e9a2e3fc2174d9c8190bfc4925fd9c2ff1658440760ce9360db1a24319c50f506973f SHA512 85d4efb63a6bad62b3ca0a5fae365a7bf33d14e94e9b0ee24b71a87983bef7c92f83ecce78918024aee1bc8375e1910b731238b5f3f5b77e798d34f08283dd63
26
27 diff --git a/dev-util/gitlab-runner/gitlab-runner-15.4.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-15.4.0.ebuild
28 new file mode 100644
29 index 000000000000..07f23f03aeee
30 --- /dev/null
31 +++ b/dev-util/gitlab-runner/gitlab-runner-15.4.0.ebuild
32 @@ -0,0 +1,67 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +inherit go-module systemd tmpfiles
38 +
39 +# make sure this gets updated for every bump
40 +GIT_COMMIT=43b2dc3d
41 +
42 +DESCRIPTION="The official GitLab Runner, written in Go"
43 +HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-runner"
44 +SRC_URI="https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz"
45 +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~ppc64"
50 +
51 +COMMON_DEPEND="acct-group/gitlab-runner
52 + acct-user/gitlab-runner"
53 +DEPEND="${COMMON_DEPEND}"
54 +RDEPEND="${COMMON_DEPEND}"
55 +BDEPEND="dev-go/gox"
56 +
57 +DOCS=( docs CHANGELOG.md README.md config.toml.example )
58 +
59 +PATCHES=(
60 + # https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3498
61 + "${FILESDIR}"/build-for-arm64.patch
62 + )
63 +
64 +S="${WORKDIR}/${PN}-v${PV}"
65 +
66 +src_compile() {
67 + emake \
68 + BUILT="$(date -u '+%Y-%m-%dT%H:%M:%S%:z')" \
69 + GOX="${EPREFIX}/usr/bin/gox" \
70 + REVISION=${GIT_COMMIT} \
71 + VERSION=${PV} \
72 + runner-bin-host
73 +}
74 +
75 +src_test() {
76 + CI=0 ego test
77 +}
78 +
79 +src_install() {
80 + dobin out/binaries/gitlab-runner
81 + einstalldocs
82 +
83 + newconfd "${FILESDIR}/${PN}.confd" "${PN}"
84 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
85 + systemd_dounit "${FILESDIR}/${PN}.service"
86 + newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf
87 + keepdir /{etc,var/log}/${PN}
88 + fperms 0700 /{etc,var/log}/gitlab-runner
89 + fowners gitlab-runner:gitlab-runner /{etc,var/log}/${PN}
90 +}
91 +
92 +pkg_postinst() {
93 + tmpfiles_process gitlab-runner.conf
94 + [[ -f ${EROOT}/etc/gitlab-runner/config.toml ]] && return
95 + elog
96 + elog "To use the runner, you need to register it with this command:"
97 + elog "# gitlab-runner register"
98 + elog "This will also create the configuration file in /etc/gitlab-runner/config.toml"
99 +}