diff options
author | William Hubbs <williamh@gentoo.org> | 2022-04-21 13:51:11 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2022-04-21 13:52:38 -0500 |
commit | 51d302a80c09a4f9b8e5a5f956d8a8ecd85d2843 (patch) | |
tree | cce2320b2897adb278885b1a996ec55a7ee9f969 /dev-util/gitlab-runner | |
parent | dev-lang/python: Stabilize 2.7.18_p15 ppc, #839942 (diff) | |
download | gentoo-51d302a80c09a4f9b8e5a5f956d8a8ecd85d2843.tar.gz gentoo-51d302a80c09a4f9b8e5a5f956d8a8ecd85d2843.tar.bz2 gentoo-51d302a80c09a4f9b8e5a5f956d8a8ecd85d2843.zip |
dev-util/gitlab-runner: add 14.10.0
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-util/gitlab-runner')
-rw-r--r-- | dev-util/gitlab-runner/Manifest | 2 | ||||
-rw-r--r-- | dev-util/gitlab-runner/gitlab-runner-14.10.0.ebuild | 60 |
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index a6b0f0003131..51aa1590d5ba 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -1,2 +1,4 @@ +DIST gitlab-runner-14.10.0-deps.tar.xz 142897024 BLAKE2B 353b209e62b87edd7f684c2b936446468e49d5124f93fffe32e7b30fb78e6d9f28ed19c25458fde5f4d45148ef18c4fad785120c50c4c847632371854310ba9f SHA512 49ff9f0c09fb7eb4ea4657babc2e1fdff08f0818f941d5cf926807a3f4912f573c8d54f45fd3d1c180a9e669c5ab5bca5d607fbd520c974c936711bd448527ec +DIST gitlab-runner-14.10.0.tar.gz 1265438 BLAKE2B fbbb1378c8263ac476f6a33eeb0be37676a3d29eb6330b49659edcf87456a5893203e4f371ba6647fe6ee1bad42d78ebff6b4ad93c2266b38da99d27783eaaee SHA512 01836f3a45196596cffb5c160493881995649169649c8d2b4096a44b7286384098040124f62092c8b50d7a2b69c9cd436f2e83d5ab86a1c205fcc9494977e114 DIST gitlab-runner-14.9.1-deps.tar.xz 142907928 BLAKE2B fb61c7b03d3dd63196bb4de0042a3c65035a3fc132435d7844635bb968a6bfe43e05fca053bfa96ba22cc9fd601d533857bffdf8bd734e90e86fefce8091da34 SHA512 d077cc1220ad33196655e578937c910c7b368eef57bb96d385eac0957e5f8902bb3720b1614f3179753929f25589a8d1d543bcb61d4cf5972bf4ada96a4056d8 DIST gitlab-runner-14.9.1.tar.gz 1259997 BLAKE2B a4694198630fb2cc47ad4e9fe36b366ae695d8a4618e755b9ff12b608d5d8266614cc649b0e63bca125919ebe8dd40859fc7804cd8bb40ed391a54d6ae65a325 SHA512 ec804f3a4982414d52a4f3b5ff1560c5342a3650f1bb3edefa211a3810b17e202263abc67bfcd4423fe88b5acd501da1d23f3980a078800ab25932625ff75bc5 diff --git a/dev-util/gitlab-runner/gitlab-runner-14.10.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-14.10.0.ebuild new file mode 100644 index 000000000000..d91c8bf83913 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-14.10.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module systemd tmpfiles +GIT_COMMIT=c6bb62f6a + +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.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +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} + fowners gitlab-runner:gitlab-runner /{etc,var/log}/${PN} + fperms 0700 /{etc,var/log}/gitlab-runner +} + +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" +} |