From 3b34ca9eec2676e6fe530f34e463f52308a11441 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 18 Jan 2023 05:56:19 +0000 Subject: gentoo auto-resync : 18:01:2023 - 05:56:19 --- dev-util/gitlab-runner/Manifest | 15 ++--- dev-util/gitlab-runner/gitlab-runner-15.4.1.ebuild | 67 ---------------------- dev-util/gitlab-runner/gitlab-runner-15.6.1.ebuild | 67 ---------------------- dev-util/gitlab-runner/gitlab-runner-15.6.2.ebuild | 67 ++++++++++++++++++++++ dev-util/gitlab-runner/gitlab-runner-15.7.1.ebuild | 62 -------------------- dev-util/gitlab-runner/gitlab-runner-15.7.2.ebuild | 62 ++++++++++++++++++++ 6 files changed, 135 insertions(+), 205 deletions(-) delete mode 100644 dev-util/gitlab-runner/gitlab-runner-15.4.1.ebuild delete mode 100644 dev-util/gitlab-runner/gitlab-runner-15.6.1.ebuild create mode 100644 dev-util/gitlab-runner/gitlab-runner-15.6.2.ebuild delete mode 100644 dev-util/gitlab-runner/gitlab-runner-15.7.1.ebuild create mode 100644 dev-util/gitlab-runner/gitlab-runner-15.7.2.ebuild (limited to 'dev-util/gitlab-runner') diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index 612926c9def2..aaf6c14409cf 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -3,16 +3,13 @@ AUX gitlab-runner.confd 688 BLAKE2B 1e99cdca8949a1a085e126c9aa2f23cf15d081087d02 AUX gitlab-runner.initd 1174 BLAKE2B 53b897abb3bc358839843faf56b52d99412c2a08e2e69e1b8258bab907a0da10dedeafd95e6c4e505fd7e8e4d2344dc07b1e693a130fe0d6a3730bf619ee2e75 SHA512 eae2668c5a98a9e111573a2ea193266252e46e073fafd2c101d3a93e65cb9705f78ceab173ca4d3e1c806443345e7f66b7b97c8b644188cf9f86dc4c087d401f AUX gitlab-runner.service 419 BLAKE2B f1a9217eb97d03036eac67569ec6ce6ed91dc2182b20357cf8d17ee0eee01b8d094854b1c76942e0515c2a5923f4d3a1ed044c60b89d8a29c354955f9f666160 SHA512 10cbe1cc0a0b7bb9decde5780bc20caf73892759532df5fc42a7c3b55e141b26957a2986656ac1eb79ce15fd95ee01a184893c22d0dd1ce9117932d0e55ae1b4 AUX gitlab-runner.tmpfile 54 BLAKE2B 4b2849b9c72998409efce207a336dce42d6e9104e72e0071266e03509841bbb5f39ad8e560beb696eee780bfe82efdec5b877120b5606c524d5cd002095e52c4 SHA512 2b5cccd83c8113a8c58011ced9ff5720a5aeaedb8f819c2a71c8fff3b1683ad87b54fa3da67b7e5f91ab35659d2adf5cf792d93ff293eee39924fbb5b9db2d4b -DIST gitlab-runner-15.4.1-deps.tar.xz 138998168 BLAKE2B cee390b7955ee98eccffca6e878492f8c2de39d0ed4f4366ee9f0cc3fd016c625153dbe3b79d2cc6cf1e3a301f6ba8c2ad6a40b29d71408494a36788f07ba601 SHA512 c143883330b7a03ed4b77d49bded4423a44ef53ef8597294c99f067401c1ebe92ae69f8c8820181634b76e070d76304212ae1bcd957a7cbbee2167cca4dcfd64 -DIST gitlab-runner-15.4.1.tar.gz 1310885 BLAKE2B 9ba470444f7ba2db8be6044548dc9d7ee1ef8f50e63b0bc1ec2ba65ab9b5d035c5bc3a3bb50c4bf0d5acfa1329fe06fe9769f847aaa73c61ff116123f637e3f9 SHA512 1334c1d3fc830f49a0977cd43045105d013658361d55c807a99a2b36bd2b9dc4f3410185f13264a50a7cc13ab97d2191ec4a4daf45c10b24b42375dd6a2f6d13 DIST gitlab-runner-15.5.1-deps.tar.xz 151906516 BLAKE2B 50dced95fd72259d31d0dd6513ddc6aa1001c5ca83a1a7b33028a9bc163c553e2bcd80dff32443813bb85f8d215b8ae73c8f75f0cfedeb6062cd6824f0415f04 SHA512 a74673d48de86e337b936b60a35820621f35e6a70087ebf59a8641c6f3f1d5e1ba7d0e3156815d8204c3dbcd349f5e903be4501f566e419f5ca46382cebbf15f DIST gitlab-runner-15.5.1.tar.gz 1327734 BLAKE2B 236d967a5ed18461d64429e078d3e40843e74aca96c23d572d070c13abf7ba3a3c7b4ba6046285d2aed261bdd2d9f5207f23a6b2c7c5cdc95c8cda5e0165f4c3 SHA512 c1ad7144bcea76b9ba20068bccc2b7a96240536cb0bdedcb0566674d05869c38f9052868314c3a58bddb1c6af304030fe0a2d055431d73eaff80ecb2226ea3e4 -DIST gitlab-runner-15.6.1-deps.tar.xz 160099188 BLAKE2B 3e8ab94a0af82e3354fd2ff59e313ffd1bbf761bdf9e800c588e54ad5c61b2ac4195d6e33f21d25c6b5c3f82e7385a8f30754b3c38899186a09868aca145b5f6 SHA512 69adf479c70fec6afea252cdaf6c393a7de3069360fcfdbf5c0da57f3ac31f51daf9af2c5d69bd615642c7d9684714aeb720f2e18559d112d30829abaf739a6d -DIST gitlab-runner-15.6.1.tar.bz2 1235815 BLAKE2B 0b689878f49c4373ec9f895f6446d1f896c9f19f67ed306ab2b0ea08de34a9f70ff8547ec730061d9a997073c0b58a85e95e006481c9dab477cf4e5f4aa5f0d2 SHA512 f9580f5a0109ed7406bc33fd9c9936a4023761e790d9b1526a3a1d7037011ebdd8568837451708f0970d75d838f9a9462185542a57091637d1f61874310e8179 -DIST gitlab-runner-15.7.1-deps.tar.xz 160145296 BLAKE2B 523fc6acb99b02f5707a598f16797b40fd833aea3b23d3c1ceecd8187c6cf2401101ccc131d3f2d84ebeb85a8bd74ee5bd2cc930f10ec5f0b2f2ccfde0832287 SHA512 ed1188c8781a958bf718becae240eeb7c24d03c0c83b0cab893a64dc9cc66594b626243f1ac38aade88371b6681f7c04d8e868db48d1d80eb6e8088b62e43816 -DIST gitlab-runner-15.7.1.tar.bz2 1248035 BLAKE2B 361e33ade3b108fd4b5ec042866c167df49acab35c93eb5339b87c1425677a93d0aebbc2fee85ebcb307c0e4096c3a47c3b56bd07537554eacdb4b70f8305d5d SHA512 bcc3b506b08e8c691bcd8a0cf14fa1a2db415b3f7a36e9612cad50994add00d3717456ab74ff024fdd548926b08c832ee7ed289b8972755df58b309c0f1342f9 -EBUILD gitlab-runner-15.4.1.ebuild 1797 BLAKE2B 654f6bae503d8226e56e011ee0df82044bf016a2d4db39f99d41d4a9f62e9db6639ee9c01009bb6ff117380231c3abd1a3daaca918fc66cbdc200200b33f45ea SHA512 74d1f45430c68a34cf7f0439b553705fb4002b6920d702cfee7ccd7f64dc3c1001ed6b49d4114d52ad1d64c5b3ecd55cb8c6994229a4bc9ae6eefde9fcc25155 +DIST gitlab-runner-15.6.2-deps.tar.xz 160098068 BLAKE2B b312f78c79a2ed47a6d5244307fee02fb9842b69873cb3babc14fd43b4f93a4e75cdbc9a3c13caa3e30f382ff5886b1c5a4957e0a07500c1a64e42e4b4ac3b33 SHA512 29f454cd15c24b74432e5759fbdd2d9ff7c42b0c516684c742752320701ffbfb87fb9381323d1bb0dca34f76150f48b9ac22362d2b0d287458898b381ff8d18f +DIST gitlab-runner-15.6.2.tar.bz2 1237158 BLAKE2B 2466e2688626e70cbb46386d9f963c95b1ac3fa6d5dbeeca02917524530588ad69e73cfe54adb1c70de1aa4eaa0599d8f9558fdc72432c87de2d6382ad56f060 SHA512 b9fce864b52ecc49441c4714beb9b6584cd30c1d55d3fea3e188b3154bd33931601111c4c869f354a75f97aeb803c68f8f1a3faa6c0b4d62ba85853f28ccdd25 +DIST gitlab-runner-15.7.2-deps.tar.xz 160595944 BLAKE2B e0e942a2bf41b0f9092ff3c8670a0cc2a9dbcd961e89efb802f46c05f4d69c68db3c611ce16cafba4240419077b6021747d2b5f0c625c0a6975282a27c54482d SHA512 97bd14b384f49ec4b9c0e2a38597b86da45897d6a1bb61c0f2abf9e80f0f22aa07d17668599b7be340f3ffca8d340df51d50793d1b971ec1c6a0b798b97c1fec +DIST gitlab-runner-15.7.2.tar.bz2 1249827 BLAKE2B 9f83fe67453a086f10d0451637c3195ae6c0440f0606af4fb6b81fa4a019e67d5b916155e1674af9e28ccc52fb2ff6ad4b4783961731fb314c2ba35652648714 SHA512 f5ffd9dfee82cd6d41ab886af995a2479e08c2f5a182a135d84247a7644b2f32cfd77f803266eeebb8c244c4cb0b9cb8a1a7dc5aaef2b181e2b6085dce62d046 EBUILD gitlab-runner-15.5.1.ebuild 1797 BLAKE2B 73c3c683fbc0e1a02e9b87289338caa4d12a8c655962179c7f990ce21b30754aadc199be09753a8e7c4ba5a2bd3d9c96c8cc0fbd56f309b1f9621fabf9e4ffd8 SHA512 e27c7bc0eae6dd0ef3b098b25ee8fdc5a78d7da3b18f982434a99b5c6d0d65613a28c5aed18b7f707470e342b6a77429074096d2f3b797ccea082d3d1b6fdb9a -EBUILD gitlab-runner-15.6.1.ebuild 1799 BLAKE2B ed09748e3be6b5548864f243093a48cae6cc110c320d9ef918334287dd85aca8350cf6321332794e4300bc7768ed4c68808c5334237e6793736bef7b774e4e52 SHA512 fd67192abf7d8cadfed51e828e2027f9542e55d210f1e052804796ab0566741e0466dfb60a544867df7bacd45be575be93feca55dc94dff03e0ce766dcb87bf2 -EBUILD gitlab-runner-15.7.1.ebuild 1679 BLAKE2B 10cfcdcf057c6aa0961b8799d176ce41d28a1fb1df3e8172cd6aac8884a5329e4268205f078763058e3ea3b2d88a191b7cca78a925c4f4730df3c12304383c9b SHA512 0d0b58c791861d077650fabaf7e1d802eb1d1461d5074be236e29eb57091ca6490c91c6ee0f7c3929b437b0f802f376da593195f658ab7399bef560ebda3d7bf +EBUILD gitlab-runner-15.6.2.ebuild 1799 BLAKE2B 2a0664109a24c3aa52478a33d28b55b5cfecf6da7764b2f7f7e7aa4e833847952bb6a74f84a167376ba6ceff5f8cd1c27cb348f1118b9091f01cda0f39d8df9b SHA512 be918316631744c39f8b5cf3ce06222c37e86b0455d2f369d136061e5b1f532e8f3b96c6fdebcf4ce898283df94793b8d5cada8b686713f430d2f94464b15a02 +EBUILD gitlab-runner-15.7.2.ebuild 1679 BLAKE2B 0d734d270f4ed3aaa87b5ef4b4e7f0c17c78ebba156b7d746f5df042db108692f313c077ea0aeb228164cba992cb9f1b52ab8ad018758a232490bf954e2f1962 SHA512 de8ea19c01203141b802a36131e2d528ac83ca79533b14e653b3b958415d5eaea7c93e49cce9d380d51a2c5612d07eca14f38a47d67be7a9c14e5d26714e0f4f MISC metadata.xml 338 BLAKE2B dfdcaaee18d3e5492674d3b4055002201342fa4d5b713f88240753002de2bde6244469fe42fe514cb82544d15deacd235cd031dcf71d661a24b26f422c67c392 SHA512 b12a8270df4f07c6b4359150a3b7341d3913a93598153824ec758384758e69667a89de20066735ccc24aea7af07b5c1bdd444fca3193be5402bce5154f90ec79 diff --git a/dev-util/gitlab-runner/gitlab-runner-15.4.1.ebuild b/dev-util/gitlab-runner/gitlab-runner-15.4.1.ebuild deleted file mode 100644 index 2b673902cdd5..000000000000 --- a/dev-util/gitlab-runner/gitlab-runner-15.4.1.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2022 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=526d939d - -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 ~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 ) - -PATCHES=( - # https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3498 - "${FILESDIR}"/build-for-arm64.patch - ) - -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-15.6.1.ebuild b/dev-util/gitlab-runner/gitlab-runner-15.6.1.ebuild deleted file mode 100644 index 665cb1269501..000000000000 --- a/dev-util/gitlab-runner/gitlab-runner-15.6.1.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2022 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=133d7e76 - -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 ) - -PATCHES=( - # https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3498 - "${FILESDIR}"/build-for-arm64.patch - ) - -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-15.6.2.ebuild b/dev-util/gitlab-runner/gitlab-runner-15.6.2.ebuild new file mode 100644 index 000000000000..42f99ade7103 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-15.6.2.ebuild @@ -0,0 +1,67 @@ +# 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=c081f284 + +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 ) + +PATCHES=( + # https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3498 + "${FILESDIR}"/build-for-arm64.patch + ) + +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-15.7.1.ebuild b/dev-util/gitlab-runner/gitlab-runner-15.7.1.ebuild deleted file mode 100644 index 75970207bdec..000000000000 --- a/dev-util/gitlab-runner/gitlab-runner-15.7.1.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2022 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=6d480948 - -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-15.7.2.ebuild b/dev-util/gitlab-runner/gitlab-runner-15.7.2.ebuild new file mode 100644 index 000000000000..61ff729a399f --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-15.7.2.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=0e7679e6 + +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" +} -- cgit v1.2.3