summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2024-05-20 17:03:39 -0500
committerWilliam Hubbs <williamh@gentoo.org>2024-05-20 17:29:49 -0500
commita89463454d7663b1f67249b91087e6a5efa6c161 (patch)
tree79c7461400d33ffd75760ff56454c6d96deb41bc /dev-util/gitlab-runner
parentdev-vcs/cvs: crank copyright (diff)
downloadgentoo-a89463454d7663b1f67249b91087e6a5efa6c161.tar.gz
gentoo-a89463454d7663b1f67249b91087e6a5efa6c161.tar.bz2
gentoo-a89463454d7663b1f67249b91087e6a5efa6c161.zip
dev-util/gitlab-runner: add 16.11.1, 17.0.0
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-util/gitlab-runner')
-rw-r--r--dev-util/gitlab-runner/Manifest4
-rw-r--r--dev-util/gitlab-runner/gitlab-runner-16.11.1.ebuild62
-rw-r--r--dev-util/gitlab-runner/gitlab-runner-17.0.0.ebuild62
3 files changed, 128 insertions, 0 deletions
diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index f51e3e3c967a..ccaae8145712 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -1,6 +1,10 @@
DIST gitlab-runner-16.10.0-deps.tar.xz 87356404 BLAKE2B 87616f6544efcfddf854ccf8892ab955f44d11fa6f7ec3a5d0c2d32f165adf985011997e701b325e7eedfb4532547dbb94e08df3118d591550d511c09a9cc957 SHA512 6f800f4f965767898a21c9e4c7b0fc5f07ae089910f98ae96189b2501434f3de8a51ac6326e4df2234f3524bce4b15e4b05b183473988e717d2067d022e6c67f
DIST gitlab-runner-16.10.0.tar.bz2 1373754 BLAKE2B ca0d39a4c04cc37afc48d9346266d075da6f4c3f62891d871a6d21e357de62067ea34e1dbffa34a410e2fb0656742eb46bcd3e555a56a20d6429b2c590e96fda SHA512 445cc39bd4d4b5ecf092fb4850b4224c0312b5b6a5aafdfb44ead5c590cf6ff38d759f765b1a97bd3beae73b5dd733daba53a33d3cb5d1f1346af28d39509b7c
+DIST gitlab-runner-16.11.1-deps.tar.xz 86847148 BLAKE2B 68520b6ae8a0250ffe134e1bd19360e142c51ec012df026212f80f8c4f23e8bce633451606502cf0af6762489564ff71c4fab5aafc04513695f161d929fa3ec2 SHA512 695f23266ebd82ed6bcf22da6eb41fd69404d929dbc55cc0e2d1f8e01f476d5343d88b9f07198447af2030b48db085ae382e7f627eb685e1c19f99ddaf55b483
+DIST gitlab-runner-16.11.1.tar.bz2 1377748 BLAKE2B c2dd939c30f1eccedaaa8d941abceea258a445d4b6c4518231cdc7e1ebc34d61912c5f1fd9e338d482a6ced547e8174dde6938b746334b215c50ee83ba1b8781 SHA512 80ac885a6d04f97c85222e87b4a3aabfa949caa060eae538d873c6b5172cb3de8234f36a9db3daaa5df132de1ac18d6f5c6a5a267cd4448dd87e98bdd393cf25
DIST gitlab-runner-16.8.1-deps.tar.xz 236213628 BLAKE2B b270aa8f285c1c568c303832b1600b50425e2e5b94f18a53ac1cd4afe35e2279fc81c3ac0ad671959f8833d0b55d2e9057e4f8222f274a5224af0440b876b75f SHA512 2c7fa171624d05617777b442d3fd4870e1180231df5f34005b388de5d0f3ead2297599f45a5d7ad05d84abf054507263d96c673cb3f3e3ff5a734891a2771727
DIST gitlab-runner-16.8.1.tar.bz2 1352201 BLAKE2B 931bb25d5aabae58af4c1808b5540ebe5bef49ee0fb663036e1faede8322bf3e8760419841aa7937db16d3145d2b9143f2da1b7783df5408697383763f709810 SHA512 054fcd54760e20e9ddb781876bc5bf8b491100495232ef5d54a0f4ce232b5eda603b6bec4b59143ccd17991416472746c0d5e563e7550f72c22ca28a3cc08535
DIST gitlab-runner-16.9.1-deps.tar.xz 87359096 BLAKE2B 788cac7b2c5ee4fe5d21fcdf75c3c854e97c21b418ec18d8543d275ce38e7072f5699aa8387f36239f5e27dbdea2a45754cb7a31fd707e0c69defd9b717c18d5 SHA512 1ad9d63648582dd1e0ce63470f9eec48382e2a2c528cb33394d7f825b4ca791a8e93fd124abb63fd8918f677b3b95b0eb622c694eaecadb00f372f8b028182a6
DIST gitlab-runner-16.9.1.tar.bz2 1362513 BLAKE2B d129e5a98da11adae36b77dbc767849827961c21173a833bb7122046a4f69d31706cc11e8b799fd045dbc8b876bf4442b698999f8e8e694aea13e6f69c02cc4a SHA512 4fe41595025aad9141205e2e5cf4b3d7a3a859bb1dceca9a5b2f572f2d39272de6c89f6fbd1d2ce8e90657bde8d8e6a0dd004c446844d93bf6e572a45f21043e
+DIST gitlab-runner-17.0.0-deps.tar.xz 86841028 BLAKE2B c7952e6028869264ed6d728043074ef5318230db18ea06a5ab740262693f22bd3111c5ad99ca2da2ca57079e3389b5a87a9994635f98fe6670f87df97e158956 SHA512 1c705bacc8eb896b23dee06ed4258c22cb0ba96073725761f2e138d4687efab4a1866e76203c1f7694c8d71995e18ad96d7da333fe88c24aa3454ac5caf4dc63
+DIST gitlab-runner-17.0.0.tar.bz2 1370211 BLAKE2B 756972b3d28d0a90ab517ecd014ccba42255dfaeb09b5e755f7395c064705273193d9a4efcbf2f1dfa8d54a9c1ed2192dcd5d3258c70aa514056df725f37322f SHA512 2cc67aa8ca43583bc60ca4d752423760b612f1a741203b0a7f0cd2fc77c292bd3a4c31f252c353a28d112d753ca920c1e8f9a401e79ac90c4eeeaf1d588ee09c
diff --git a/dev-util/gitlab-runner/gitlab-runner-16.11.1.ebuild b/dev-util/gitlab-runner/gitlab-runner-16.11.1.ebuild
new file mode 100644
index 000000000000..b566a45182c7
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-16.11.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2024 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=535ced5f
+
+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"
+}
diff --git a/dev-util/gitlab-runner/gitlab-runner-17.0.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-17.0.0.ebuild
new file mode 100644
index 000000000000..776d72a70594
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-17.0.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2024 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=44feccdf
+
+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"
+}