updated ebuild for gitlab-ci-multi-runner-0.4.2 and added the one for version 0.5.5
This commit is contained in:
parent
4ee18ebe01
commit
3783f21de4
3 changed files with 107 additions and 8 deletions
|
@ -1,5 +1,9 @@
|
||||||
AUX gitlab-ci-multi-runner.init 640 SHA256 2ec761220c920221b1978b34fc4023f9c1a98cabc18dc30fa6f08d5a1efbc9c3 SHA512 d18d9da295f7fa61bbc978490f67d89eb7e0ee597305b2dacff544c8b22a0b5ef2c02570ac00af3ebf593d5b3f983e464075203b4ef3a8a8ab615a7344be7f37 WHIRLPOOL 943d13f7057498d9584764785be41f0ff1c5ddaf91485aa7c94e1b8373221712bc0544768faae475dd5379d15cb622e8ac89a918b779634cb1af8b3a83db0b0b
|
AUX gitlab-ci-multi-runner.init 640 SHA256 2ec761220c920221b1978b34fc4023f9c1a98cabc18dc30fa6f08d5a1efbc9c3 SHA512 d18d9da295f7fa61bbc978490f67d89eb7e0ee597305b2dacff544c8b22a0b5ef2c02570ac00af3ebf593d5b3f983e464075203b4ef3a8a8ab615a7344be7f37 WHIRLPOOL 943d13f7057498d9584764785be41f0ff1c5ddaf91485aa7c94e1b8373221712bc0544768faae475dd5379d15cb622e8ac89a918b779634cb1af8b3a83db0b0b
|
||||||
DIST gitlab-ci-multi-runner-amd64 11164760 SHA256 f4eebcab008314cdca686c81ce54077a5ffebc47638ce7359d1982b0f27a6796 SHA512 b150515f7da2863974dd9213e5bf4144aee5b039cabaef8790cc8963ded4afecaf23375e8e78d1941b3d4a4cf024cc99846f4a1dcf2922fe9528feeab6a0c187 WHIRLPOOL 2190567da88614b8497046e9578981b1bbfc80fd67f60e5d50497a561f19f4281e66dda20a9863e479e02dec1f8458a01e5c71a7a58f89ebcc8c071f2917e107
|
DIST gitlab-ci-multi-runner-0.4.2-amd64 11164760 SHA256 f4eebcab008314cdca686c81ce54077a5ffebc47638ce7359d1982b0f27a6796 SHA512 b150515f7da2863974dd9213e5bf4144aee5b039cabaef8790cc8963ded4afecaf23375e8e78d1941b3d4a4cf024cc99846f4a1dcf2922fe9528feeab6a0c187 WHIRLPOOL 2190567da88614b8497046e9578981b1bbfc80fd67f60e5d50497a561f19f4281e66dda20a9863e479e02dec1f8458a01e5c71a7a58f89ebcc8c071f2917e107
|
||||||
DIST gitlab-ci-multi-runner-arm 8940328 SHA256 4e13b2a2c3ea47d8f3bf9a946717b1a1655bd17955c88ea112d88aaa4f3bcbb9 SHA512 8108c3240f29a951fcfb1502cbb4db2bb82053481ca8212f26402078cf98637ed663f7adeeaca696b6fb67bac875673bd40c57074f6e94ffb6dfa99d13d26964 WHIRLPOOL 0e9948de75ad5d4aa81d417456dc8d6275a0355f0e976476e551c4c7acd611f5aea8fba765d2df51a282ba55a67a25dbe76328c52ad79814d9b29fa004629e46
|
DIST gitlab-ci-multi-runner-0.4.2-arm 8940328 SHA256 4e13b2a2c3ea47d8f3bf9a946717b1a1655bd17955c88ea112d88aaa4f3bcbb9 SHA512 8108c3240f29a951fcfb1502cbb4db2bb82053481ca8212f26402078cf98637ed663f7adeeaca696b6fb67bac875673bd40c57074f6e94ffb6dfa99d13d26964 WHIRLPOOL 0e9948de75ad5d4aa81d417456dc8d6275a0355f0e976476e551c4c7acd611f5aea8fba765d2df51a282ba55a67a25dbe76328c52ad79814d9b29fa004629e46
|
||||||
DIST gitlab-ci-multi-runner-x86 8981664 SHA256 be900402515f2c7739566ae39817b9a9f1a5a3418329353edd4d2f2bfbf77d7f SHA512 21884ce24efab2c5954d0b2d8fb5dbeb4d55cfe12143bf338ea58cddc6ef5b23eea6bb3b12290454f42854636155d985a213d4a487f0fbaa7f1e21e1f5a5ac2d WHIRLPOOL 838d7fc935031925e9ce62cf034d4b73450252c253f2e7db2944fe2dcd187babacd46c70f9657fa7995a911b77ffa0cc250acb295d9b5a074171072472e06386
|
DIST gitlab-ci-multi-runner-0.4.2-x86 8981664 SHA256 be900402515f2c7739566ae39817b9a9f1a5a3418329353edd4d2f2bfbf77d7f SHA512 21884ce24efab2c5954d0b2d8fb5dbeb4d55cfe12143bf338ea58cddc6ef5b23eea6bb3b12290454f42854636155d985a213d4a487f0fbaa7f1e21e1f5a5ac2d WHIRLPOOL 838d7fc935031925e9ce62cf034d4b73450252c253f2e7db2944fe2dcd187babacd46c70f9657fa7995a911b77ffa0cc250acb295d9b5a074171072472e06386
|
||||||
EBUILD gitlab-ci-multi-runner-0.4.2.ebuild 2259 SHA256 394cacff5bee1cd321151c5b3fc1c04da928ee1dd09713680e7385abbffe0319 SHA512 a9b7bf551a9a29417f0a1724e515e47973e6d964d6b5afb7a63337c6760048e1c52efc08df5a08858bba05ee6a734b34d45945f82b4785d9bb0e5c91c9bb058b WHIRLPOOL 98e63b26a69e9741ac443896f7bccb96c52fadad4c424f89007469d45e6386c567090ba877b9989ec1d4f9d77d5ea18bc5d73016000af49b0b27e924e1e4c8d0
|
DIST gitlab-ci-multi-runner-0.5.5-amd64 11633640 SHA256 00982b6f9cfea548a3e41fad9f50f2c8b221251ea2e7e8ac64563f62663537a3 SHA512 89a9474b5dc0dfd5bf53e4c60f40c43f8db1288e49960dc58d5283a61c22474c682041b3b04a4b4533536deef63cc06a65f0b5440891c5f7951d45508236563a WHIRLPOOL 1375f34887bc09d29ff2009a8344e6ec7c2a7d16f31ca1d063cce30607c003df99f80dd4d01244e991745d0ccdccce76077e6597e5ccb38a89a6cce59324b2b9
|
||||||
|
DIST gitlab-ci-multi-runner-0.5.5-arm 9292840 SHA256 0c1641fe1bff208e9166ad1ea3898652989017711e51b38838c48365de2870f5 SHA512 1d9a6c7200614acfa5c3461187ab9df0fe46bead5284d586ea24e2c7c243422ae096dd6faf40ca2b05d3fe567d589a33a87212449fcc7ff56ec1e759955d44c9 WHIRLPOOL 8ea40c13de87cffd1c77dedba64315133106bdfe0cfb8d87da8932d6abde0e88d6577fb9c8ada090b98a0f65d82e105b57a2236fe24385ed72c62a760f36256a
|
||||||
|
DIST gitlab-ci-multi-runner-0.5.5-x86 9377072 SHA256 d9cfc1fb809a4954b18b9d15cae078c552715ab8d596c5e07db2104131c286fb SHA512 952f60dca6cc5a46bc2906ad38e3f02b97181c48480fd0ea91c00e96a266cf37d105da4af1934b294c72a507cfd8e114c2907df80e4269cb082bc0775e451258 WHIRLPOOL 1d512571520a2901e00f758cdfb33441f885a801c717b06b72b626731b9c7e4637b6796fd21944032a1ab5215228e5f288577c4498a52256321446e8ef7fb8aa
|
||||||
|
EBUILD gitlab-ci-multi-runner-0.4.2.ebuild 2255 SHA256 ffaa678becd9818a50f331189f4b5803470a50340d3b6ca3136170c3db129157 SHA512 d798be43b50da3484dcae69245659cb2a6356603d7d9c9cddab7a2c031b41f6519c66d5416b124963ddc79364ad28d82c9682e9bc84301b7b8f0ac145e806b2b WHIRLPOOL f78e09faebb49a8c7fe60f26738a225767e32be58a23a9aff005ced2b03ccf2311d5ae6ccd00f52bcea188e1662781c939e96874e008a03c61d90cbf9bef2bb0
|
||||||
|
EBUILD gitlab-ci-multi-runner-0.5.5.ebuild 2258 SHA256 3943d26f4e9ead919fe65268eab8df103f49bc87ec25c41e93f4e27030be0541 SHA512 39fa74627da465fa08bef8bf7182c5fbae25dd9684a5528089506443cba8169d631efc3cac4ac2e439fa6e10efabcbbd175b27d446ff066785f53b76e7643126 WHIRLPOOL 0999e031616eef5ab47757eed7bd8b050055a75a8e79b718fcd4a9d6d62ea8c992bcee702460a5f9ea932f755c99b05b651bf25f2ad655b2437259b92d786132
|
||||||
|
|
|
@ -8,9 +8,9 @@ inherit eutils user
|
||||||
|
|
||||||
DESCRIPTION="GitLab CI Multi Runner is the new build processor needed for GitLab CI >= 7.12"
|
DESCRIPTION="GitLab CI Multi Runner is the new build processor needed for GitLab CI >= 7.12"
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-ci-multi-runner"
|
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-ci-multi-runner"
|
||||||
SRC_URI="x86? ( https://${PN}-downloads.s3.amazonaws.com/${PV}/binaries/${PN}-linux-386 -> ${PN}-x86 )
|
SRC_URI="x86? ( https://${PN}-downloads.s3.amazonaws.com/${PV}/binaries/${PN}-linux-386 -> ${P}-x86 )
|
||||||
amd64? ( https://${PN}-downloads.s3.amazonaws.com/${PV}/binaries/${PN}-linux-amd64 -> ${PN}-amd64 )
|
amd64? ( https://${PN}-downloads.s3.amazonaws.com/${PV}/binaries/${PN}-linux-amd64 -> ${P}-amd64 )
|
||||||
arm? ( https://${PN}-downloads.s3.amazonaws.com/${PV}/binaries/${PN}-linux-arm -> ${PN}-arm )"
|
arm? ( https://${PN}-downloads.s3.amazonaws.com/${PV}/binaries/${PN}-linux-arm -> ${P}-arm )"
|
||||||
|
|
||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ pkg_setup() {
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
local a="$(usev amd64)$(usev arm)$(usev x86)"
|
local a="$(usev amd64)$(usev arm)$(usev x86)"
|
||||||
mkdir -p "${S}"
|
mkdir -p "${S}"
|
||||||
cp "${DISTDIR}/${PN}-${a}" "${S}/${PN}"
|
cp "${DISTDIR}/${P}-${a}" "${S}/${PN}"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
|
|
|
@ -0,0 +1,95 @@
|
||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
inherit eutils user
|
||||||
|
|
||||||
|
DESCRIPTION="GitLab CI Multi Runner is the new build processor needed for GitLab CI >= 7.12"
|
||||||
|
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-ci-multi-runner"
|
||||||
|
SRC_URI="x86? ( https://${PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${PN}-linux-386 -> ${P}-x86 )
|
||||||
|
amd64? ( https://${PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${PN}-linux-amd64 -> ${P}-amd64 )
|
||||||
|
arm? ( https://${PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${PN}-linux-arm -> ${P}-arm )"
|
||||||
|
|
||||||
|
RESTRICT="mirror"
|
||||||
|
|
||||||
|
REQUIRED_USE="^^ ( x86 amd64 arm )"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="amd64 arm x86"
|
||||||
|
|
||||||
|
DEPEND="dev-vcs/git"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
virtual/mta"
|
||||||
|
|
||||||
|
MY_NAME="${PN}"
|
||||||
|
MY_USER="gitlab_ci_multi_runner"
|
||||||
|
|
||||||
|
DEST_DIR="/opt/${MY_NAME}"
|
||||||
|
LOGS_DIR="/var/log/${MY_NAME}"
|
||||||
|
TEMP_DIR="/var/tmp/${MY_NAME}"
|
||||||
|
RUN_DIR="/run/${MY_NAME}"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup ${MY_USER}
|
||||||
|
enewuser ${MY_USER} -1 /bin/bash ${DEST_DIR} ${MY_USER}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
local a="$(usev amd64)$(usev arm)$(usev x86)"
|
||||||
|
mkdir -p "${S}"
|
||||||
|
cp "${DISTDIR}/${P}-${a}" "${S}/${PN}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
chmod +x "${S}/${PN}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# nothing to compile, binary all-in-one goodness! (?)
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local dest=${DEST_DIR}
|
||||||
|
|
||||||
|
diropts -m755
|
||||||
|
dodir ${dest}
|
||||||
|
|
||||||
|
exeinto ${dest}
|
||||||
|
doexe "${S}/${PN}"
|
||||||
|
|
||||||
|
# fix permissions
|
||||||
|
fowners -R ${MY_USER}:${MY_USER} ${dest}
|
||||||
|
|
||||||
|
## RC script ##
|
||||||
|
|
||||||
|
local rcscript=gitlab-ci-multi-runner.init
|
||||||
|
|
||||||
|
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
||||||
|
sed -i \
|
||||||
|
-e "s|@USER@|${MY_USER}|" \
|
||||||
|
"${T}/${rcscript}" \
|
||||||
|
|| die "failed to filter ${rcscript}"
|
||||||
|
|
||||||
|
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "If this is a fresh install of GitLab CI Multi Runner, please configure it"
|
||||||
|
elog "with the following command:"
|
||||||
|
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
einfo "You need to register the runner with your GitLab CI instance. Please"
|
||||||
|
einfo "Follow the instructions on"
|
||||||
|
einfo
|
||||||
|
einfo "https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-manually.md"
|
||||||
|
einfo
|
||||||
|
einfo "Perhaps I'll improve the ebuild later ... kthxbye."
|
||||||
|
}
|
Loading…
Reference in a new issue