diff --git a/dev-util/gitlab-runner-bin/Manifest b/dev-util/gitlab-runner-bin/Manifest index 592372e83..6ff996d23 100644 --- a/dev-util/gitlab-runner-bin/Manifest +++ b/dev-util/gitlab-runner-bin/Manifest @@ -1,3 +1,4 @@ DIST gitlab-runner-bin-18.11.3 119034261 BLAKE2B bda4fe574ea67da462614891c9ad68518ad5f2dad5dc05e2ef11a8461d3825f198d4024f954d4b6f8d8aca4756b09aea4397590bfd1e0a5e7d9fb3423c64fad5 SHA512 4950c6be7cd92bbf7d28efd713a055e1f4c5d4764bcd6aae37626daf9f600ad3db1f52b4262cb7e64ad7eee1087cadc108413db398840fe49eda7f27aae30a9b DIST gitlab-runner-bin-19.0.0 121793809 BLAKE2B 92b7a4e9f0805836d547738308847da6c87a00d33f2b53b7241ea36a34745fe04d452128c7d615d7e955533b49316ee88f3e984c3497399df8f4e2dcb5768a49 SHA512 eccadd17d593916da4e30e7327f82ed7a55200d436f36132d3629b7cd78d028fde8e117f9b9b5044967357818c5638d4a36d08e0e8caca36703e520db837692f DIST gitlab-runner-bin-19.0.1 121793809 BLAKE2B f18193b60b730494e80b6e6515ff2623e03a1fff32f919962bf033b948d9d73e26d24b36b6b6b0b55e11519079a8d78937111c47a3240d9f5c6457202960f13b SHA512 58588a4b5d5523ba6d32fd18bd12e593d720a6d98c7da57a005dd2e29c3237a270a8a19bec49c95fd251f590d496f853261c14d71c3288a3977d69da5e37eacc +DIST gitlab-runner-bin-19.1.0 121943755 BLAKE2B 2871173092e7cc0f6ef058419628c393b70ca8905cca5d437ef620a498a20005d87fd92bf79248656c61a129019819a9a339412f441b5ba4328fd135158b86c0 SHA512 08a264a60d81d6204694b27276cf924d9475ef7ce4cf41ec7336a64a10f3baa283d40eb7dba2612fbdcb67935b93ff29738fe0447ba2c652a9cc055d355e7ee6 diff --git a/dev-util/gitlab-runner-bin/gitlab-runner-bin-19.1.0.ebuild b/dev-util/gitlab-runner-bin/gitlab-runner-bin-19.1.0.ebuild new file mode 100644 index 000000000..0ad681e69 --- /dev/null +++ b/dev-util/gitlab-runner-bin/gitlab-runner-bin-19.1.0.ebuild @@ -0,0 +1,64 @@ +# Distributed under the terms of the GNU General Public License v2 +# Autogen by MARK Devkit + +EAPI=7 +inherit systemd tmpfiles user + +DESCRIPTION="GitLab Runner for executing CI jobs locally (pre-compiled)" +HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-runner" +SRC_URI="https://s3.dualstack.us-east-1.amazonaws.com/gitlab-runner-downloads/v19.1.0/binaries/gitlab-runner-linux-amd64 -> gitlab-runner-bin-19.1.0" +LICENSE="MIT" +SLOT="0" +KEYWORDS="*" +IUSE="systemd" +RESTRICT="strip" +RDEPEND="systemd? ( sys-apps/systemd ) + !dev-util/gitlab-runner + +" +src_unpack() { + mkdir "${S}" +} + +src_prepare() { + default + cp ${DISTDIR}/${A} ${S}/gitlab-runner || die +} + +pkg_setup() { + enewgroup gitlab 548 + enewuser gitlab-runner 548 -1 -1 gitlab +} + +src_install() { + einstalldocs + exeinto /usr/sbin + doexe gitlab-runner + if use systemd; then + systemd_dounit "${FILESDIR}"/gitlab-runner.service + newtmpfiles "${FILESDIR}"/gitlab-runner.tmpfile gitlab-runner.conf + else + newconfd "${FILESDIR}"/gitlab-runner.confd gitlab-runner + newinitd "${FILESDIR}"/gitlab-runner.initd gitlab-runner + fi + insopts -o gitlab-runner -g gitlab -m0600 + diropts -o gitlab-runner -g gitlab -m0750 + insinto /etc/gitlab-runner + keepdir /etc/gitlab-runner /var/lib/gitlab-runner +} + +pkg_postinst() { + if use systemd; then + tmpfiles_process gitlab-runner.conf + fi + einfo "Create a runner at Gitlab via Build -> Runners in the menu." + einfo "Copy the token that appears on the final page." + einfo + einfo "Register the runner as root using" + einfo "\t$ gitlab-runner register --token \n" + einfo + einfo "The config will be saved in /etc/gitlab-runner/config.toml" +} + + +# vim: filetype=ebuild