dev-vcs/gitlab-ci-multi-runner-bin:

renamed gitlab-ci-multi-runner -> gitlab-ci-multi-runner-bin

Package-Manager: portage-2.3.0
This commit is contained in:
Manuel Friedli 2016-10-24 14:28:30 +02:00
parent 503971b156
commit becf75bd2b
9 changed files with 521 additions and 0 deletions

View File

@ -0,0 +1,61 @@
*gitlab-ci-multi-runner-1.7.0 (23 Oct 2016)
23 Oct 2016; Manuel Friedli <manuel@fritteli.ch>
+gitlab-ci-multi-runner-1.7.0.ebuild:
dev-vcs/gitlab-ci-multi-runner: added ebuild for version 1.7.0
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch>
gitlab-ci-multi-runner-1.6.0.ebuild:
dev-vcs/gitlab-ci-multi-runner: corrected description
*gitlab-ci-multi-runner-1.6.0 (23 Sep 2016)
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch>
+gitlab-ci-multi-runner-1.6.0.ebuild:
dev-vcs/gitlab-ci-multi-runner: added ebuild for gitlab-ci-multi-runner-1.6.0
05 Sep 2016; Manuel Friedli <manuel@fritteli.ch>
gitlab-ci-multi-runner-1.4.1.ebuild, gitlab-ci-multi-runner-1.5.0.ebuild:
dev-vcs/gitlab-ci-multi-runner: fixed gitlab-ci-multi-runner ebuilds for
EAPI="6"
01 Sep 2016; Manuel Friedli <manuel@fritteli.ch>
gitlab-ci-multi-runner-1.4.1.ebuild, gitlab-ci-multi-runner-1.5.0.ebuild:
dev-vcs/gitlab-ci-multi-runner: updated to EAPI="6"
22 Aug 2016; Manuel Friedli <manuel@fritteli.ch>
-gitlab-ci-multi-runner-1.3.2.ebuild:
dev-vcs/gitlab-ci-multi-runner: purged all ebuild versions <gitlab-ci-multi-
runner-1.4.1
*gitlab-ci-multi-runner-1.5.0 (22 Aug 2016)
22 Aug 2016; Manuel Friedli <manuel@fritteli.ch>
+gitlab-ci-multi-runner-1.5.0.ebuild:
dev-vcs/gitlab-ci-multi-runner: added gitlab-ci-multi-runner-1.5.0. to be
used along with gitlab-ce-8.11.0
*gitlab-ci-multi-runner-1.4.1 (26 Jul 2016)
26 Jul 2016; Manuel Friedli <manuel@fritteli.ch>
+gitlab-ci-multi-runner-1.4.1.ebuild, -gitlab-ci-multi-runner-1.1.4.ebuild,
-gitlab-ci-multi-runner-1.3.1.ebuild:
dev-vcs/gitlab-ci-multi-runner: - added ebuild for version 1.4.1 - deleted
ebuilds for versions <1.3.2
*gitlab-ci-multi-runner-1.3.2 (09 Jul 2016)
09 Jul 2016; Manuel Friedli <manuel@fritteli.ch>
+gitlab-ci-multi-runner-1.3.2.ebuild:
dev-vcs/gitlab-ci-multi-runner: added ebuild for version 1.3.2 which contains
a bugfix for ARM
*gitlab-ci-multi-runner-1.3.1 (26 Jun 2016)
26 Jun 2016; Manuel Friedli <manuel@fritteli.ch>
+gitlab-ci-multi-runner-1.3.1.ebuild, -gitlab-ci-multi-runner-1.1.3.ebuild:
dev-vcs/gitlab-ci-multi-runner:
Added version 1.3.1 and purged old one
07 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +ChangeLog:
Added ChangeLog

View File

@ -0,0 +1,20 @@
AUX gitlab-ci-multi-runner.conf 44 SHA256 0b93ba53d557fbf603b50f6d78eb2c4415b9a79f056142b6edf4a63fc6612d6e SHA512 1f5ff480740b18fc985ae9337b8dc4ddd1bde5253e09042b5542cb9a3db54b9cef1f7b24445c829eb83fcfd8751b693018154f6b97ce0a6e723d5d71d9a27429 WHIRLPOOL fc5218c55917b3303baf649fbafaf1dc50cf52d0ee04852716defe4f21b806f4f313071b1c55920d89da66180405d35da0f7cca73c2617b70bcaa67f725cab2a
AUX gitlab-ci-multi-runner.init 697 SHA256 4190607f9d9958b103f3a2ede2bbaa836b7498f89bdb6cd3fb5a5099db4e2521 SHA512 f683e6fe35a5b91142779fe78ef0cd06421d2c9b2e07cb48eb42fa8a373cf837ea56101804866ff73e28f1a4a4d683054e30265f82aec54b525e6dfb0936a025 WHIRLPOOL e819926ce3f81b26322d61c6bb1bba9c23afe9b8e01c3eb5ebc03ba32aedbf9ad25ac21704ae4e3690571b3bf1d5ffe87ed04cf7dd22fe63e2080cc84f36edaf
DIST gitlab-ci-multi-runner-bin-1.4.1-amd64 59770288 SHA256 b6c732e737fab160199cc91ba443c496720b3274e48600adf2a8f3814af9d8ac SHA512 0533bd8382d31d048cee4c37bff1277f30641be021f9c8a0d2d7c40a53839ee08589b77cb40d21a26facd016dbd1816b8a8ff1524f196bebff7851c378384615 WHIRLPOOL 32dae2b897c8656151c82d37141be5cca2f6080ae0de21a10914652d9919900b4fad274d3cdb1c0b075f3634cc24aa51b466420a497c5405c978fa4062c8f0e8
DIST gitlab-ci-multi-runner-bin-1.4.1-arm 56437360 SHA256 301f4a166b76b44361e566c7806c1b9cf63e4e62e3b621e5c31b0bcc707f674a SHA512 efc062285f862e8b1c4a39454f9f15ca722ed58d82aabbc5f72d8d8c5328adef8eddc98ff8cb2dbb616561b825b619dfc52cc69dfc358fbc6d2f4934f9c9fcfe WHIRLPOOL 682fad03439d1a6570b0bccf694adc577a653917ba0fa0315fbb717d27127995bbb2950eace663cd96ca64234c5ac51ec652f59ebe657ad0183d7b4a74c30f85
DIST gitlab-ci-multi-runner-bin-1.4.1-x86 56606472 SHA256 6606bf3177a2355916833bd2656fc9d0e46dd0e5b7b149105bd283e2a4a67baf SHA512 8266b110088c2559632ab6f26cf54e19a0458de1f858fe3e986bc9c78fbe592fb1492aa4d5187c934a8b2c1bcac15cf10cd7de1207c76a8d6a5302cb4e2cda92 WHIRLPOOL 1c1dd94a8b2efbf39284a51bc60efc1eb58a17bdc927658153ee505cfb6a9ed0dc2160791cacc72e10beb2155b813e71ebbb82abe54c1dd5566200ef02082e2f
DIST gitlab-ci-multi-runner-bin-1.5.0-amd64 40162568 SHA256 8068a7c0a149cda3782ea58b29ac1f1dfb7018d2021359b2be6094493a86fbf0 SHA512 e06c2aa44d7c369bfa6315221bac19670c97268f64660a320fa9872f86991c1f3c3ef25a9cd233b5769bbf30e1a4958d347f7bbb991dbf10696666332d763314 WHIRLPOOL 4b9e5e06671955245116693d73e5158c0e6a9455127cf6703222a353467c3c57128df0ad682dc47db37b20f98e2a870b5e32344c69c64f301a4611c451305569
DIST gitlab-ci-multi-runner-bin-1.5.0-arm 36718736 SHA256 38849b5948d892b505f2d8b01b777ed4b22eea2a6ce91aeaf276c3ad6fcb56cd SHA512 14439be83d1f5cb3a2e2b67421138ef4b6ea2ed6636214f082f4db32786a6707c4299c23410ba6c54e06079358acdf84e3a0ee9c5280c17f06576463607187c4 WHIRLPOOL ca677e0d62323021ec477fa031cc1a8cab76757101abe7033c0c1da632f99d225c622792d07df93b935467a7ed987e2cbe6c4dd00e16f06ad3988d4bd21623d2
DIST gitlab-ci-multi-runner-bin-1.5.0-x86 36892864 SHA256 029e1a570ff5f5f570d107cb451b2a759829ba64fde6965a1d4abc6135ef63be SHA512 06d55f40e3d43ef3524266fec1c009372bb18850394ec5688979fe6bf33e3bf864aa0582ff0de5eb1e088ce2a24b09bdb6a2772643a15f4d8e994c7f194197a9 WHIRLPOOL 8ede1609492f33599078129a44c28eb58f850da715d091b847a753589a68cfac9f206f9c5e7b78eddad67a834279fbd4cd72a7fb5ea09075aa16729f70edeff2
DIST gitlab-ci-multi-runner-bin-1.6.0-amd64 81450584 SHA256 09dbfd1770253e4216de45e3de359707b9e48d1cd406fe7a7108f0d46880f9c8 SHA512 03c0f1a364509fceaea7c3250885f1d65349cc7b3b9febcb2b67f300b371fcf307f2e44f8c7da57776c05c57c350685459b0167f9dfe1d239d3c472d674dc35e WHIRLPOOL 80dd59f5343efd4a3f0278e66bb1ec7f9b64ed6c16580a9ea9c0554469bf668a7a1553c70e79ffe25e18fe6bea61d219112509ef30c38dc8cb56c4fccc4e37a4
DIST gitlab-ci-multi-runner-bin-1.6.0-arm 71394024 SHA256 ce42d293752d2781f1d657da6489ebf6f8df610df72742f144004fd12bf88cac SHA512 d23a95d367a9b68fc456fe67a7f243a824f0d1ddb5015740ede83297d328d31e34203ba4d49bac87a81bdefde1ae9aca401016777aaae33c9a4965441ae05381 WHIRLPOOL 8c0a70aab601d785400d1f0993581f41243ac4c01618cd8ff5dc60229cf2184a76adf7e9a1cc1b6ed99392a1aeb17177909dc78d877f71a4126a0990e57b6b8f
DIST gitlab-ci-multi-runner-bin-1.6.0-x86 72066176 SHA256 ab59163f79e327a1bf6a6d1469762d1f113484b561c6c4dcc07fda127068d9f4 SHA512 ce9eb72e86bd9a2ccd40be585b8f4645d7eb471a4b35a79b4c91dedb95611162c60f2a5e098774ac0879d1dd97f98431372e47e9c5152971d11591a502b0e96f WHIRLPOOL b05f559e04756f2f7cd05a833dbdabf008a98cf1314a81021c76d1c9c2afd4df7d1d5f4c2a585ef97f72dfeef84f2c01e8a6cabba8b018e1ab99ae7ff106b3f4
DIST gitlab-ci-multi-runner-bin-1.7.0-amd64 68204551 SHA256 367ed93a9b37026bf1679d43e1d150c7edda151e5c5807e43a0b85706a368de6 SHA512 f516046b29b16ba51e9124aa6e2d97bf549628567cafe3e72c49160945f39ac954a31e7460460b06119b8baa59e3724c515aa6635f8cc7e845cfc4e647ca66bf WHIRLPOOL 25f41cbeff6d441bfd11d6cc2b335d594f67c2f995268fd2a65f2da021792abcb9877adcf8f27d33194ad8dcbcc26d96b3b86d193e448143d717ac6b9dd973c6
DIST gitlab-ci-multi-runner-bin-1.7.0-arm 64871891 SHA256 b30873ec3fbc1510fdd92e64afb1cd5bc11db295eb5da7d4d4931211a40d4d8d SHA512 0988ef4bbae45e114eed98a6bc47284df26b4d283aeda5ae6be17a79d7bc416e060234e30592c8d44804ee56cbdd45be33777edd4cde4f8a4cc101516aff613c WHIRLPOOL 77fd1538e7e7a1513e2b31ccc9998fb5aea95c974808ca4f56a3e60bcb37f216a37b1ca0ead5d826ccb8712a0554baee300d5fe845bf9fcdd6094be6a0e177ee
DIST gitlab-ci-multi-runner-bin-1.7.0-x86 64635954 SHA256 4028364f26e9169f04e37beb404aebfaa5f0ad2560e6dccda302f9acd73e47a5 SHA512 56fea1b4b5de617b998c998edeb914eb0500de597fead2c37bd81526b48822c84a49c8263567c2f3ece3d2bab50287162b66fbeec5c0f9e1e2159c115a6c14ed WHIRLPOOL 3238e95cbd742b7057c224fb8d0a7511f7dcb0d1c0b07e446d2f0a4f6c7f4e6646e9b1c54cb14cd29c479efbaf113e5e501da54538983307ab8c3f350a36dac3
EBUILD gitlab-ci-multi-runner-bin-1.4.1.ebuild 2378 SHA256 3385e40d561f38e2d357f1eba43a412391e536cc34785d311f7481887ca7ade6 SHA512 1e6c8edbacccc78b20fb090abf32421b0bbfbeed32c4892cf02553854e074c9c8770205ff60b4fde836b0e29720de21e69064966229b54ea3f9bf116838016ba WHIRLPOOL 89a1835414d39667a39f26ad4c569e0d5c1d5b857dde819ce384ba4909ebb2bd3164283f2f9f0a8408c8892f31eeb4b7bf187b2c7b8af429289a34840f518ad2
EBUILD gitlab-ci-multi-runner-bin-1.5.0.ebuild 2378 SHA256 cd6561fb982bb7d341120d9a40ffd85b8efa44e3aaa6d9bf1951f68a594eaec9 SHA512 776dc187a27ba0219455685e6702539bd2b2ee1d377d478d300e07d9f81059459245521d95704fac1a90bc4f4cf26b0a0ce2918673dc05f907e791a102e2f100 WHIRLPOOL 673df447a28d55645f6517a44f9c28373d28ff8fe7dcdf2e80154339f0496290e03bafa404aa7c677e91f3e57980bbf19d53e54038c5c53ec6b0a0880c91cd4d
EBUILD gitlab-ci-multi-runner-bin-1.6.0.ebuild 2378 SHA256 f05ff8aa43c264c790d281e41e02a586a14da6134dd2eea42dd8e7e48856aa5b SHA512 62da6f4b0becb54e47e65f7d3c4b98c8e28ed0377c6b1b28cd493a47a43b7ef1f84344fb772d0c1c45afd2ef591f5ec8b8ccdf855a3ab713b83660b6488d59dc WHIRLPOOL 4dc18f3d2cb56b4136cf2a4f1b3528d538a0eb071c6b48d8967e382ee238212ec505039fe94670fa81a70907da5262307fea6025b868161fa49deea3358dec94
EBUILD gitlab-ci-multi-runner-bin-1.7.0.ebuild 2378 SHA256 91a01e16c9499fd5288096f21c8b8e9535c42960e0e953c385935f3baaec72e4 SHA512 6f14d2639dca86513538b6aa4566dfa461f4ea58a09eb1b0034efdf29cc89fb389fde2c52996e08e29d1ba6bd307f8eb4fe2cd07a88be4ba25f10e2e64663b9c WHIRLPOOL 4a59789f19fd846382205fdb92e9bdd7141fa61b5d2ce422aab846ccb61b7d18c5d01418d81233e8067748d2f9d5a4fd4dd42ba35466d9294cce49f9e12dcc96
MISC ChangeLog 2294 SHA256 d449d54ce814dc2fcfb5efab396ebd907f591036e2033db4e27ba5fb5aa555e4 SHA512 0c6e692dc0495aaefcfdbe1c5d4a99679af5b389a51985732f4285d698584f07398db7b6847526ecd2c01feabae6d4c88820c49105f8d77d72cd3aade5e40b61 WHIRLPOOL 53d6c347f27b7a6c634bf34e07fc1fbc9b637ab2b117fbdd6069b42b0f7955a1157011954bbfba368a6c830fd231dcc1ace542499e56cc5c2b98c224d94d41e5
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1

View File

@ -0,0 +1 @@
LOGFILE=/var/log/gitlab-ci-multi-runner.log

View File

@ -0,0 +1,23 @@
#!/sbin/openrc-run
# Copyright 2015-2016 Nicolas Heine
depend() {
after sshd
need net
need localmount
}
start() {
ebegin "Starting gitlab-ci-multi-runner"
checkpath -d /var/run
checkpath -f -o @USER@ -m640 "${LOGFILE}"
start-stop-daemon --start -b -u @USER@ --chdir /opt/gitlab-ci-multi-runner --pidfile /var/run/gitlab-ci-multi-runner.pid -1 "${LOGFILE}" -2 "${LOGFILE}" --make-pidfile \
--exec /opt/gitlab-ci-multi-runner/gitlab-ci-multi-runner -- run
eend $?
}
stop() {
ebegin "Stopping gitlab-ci-multi-runner"
start-stop-daemon --stop --pidfile /var/run/gitlab-ci-multi-runner.pid
eend $?
}

View File

@ -0,0 +1,102 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="6"
inherit eutils user
MY_PN="gitlab-ci-multi-runner"
DESCRIPTION="Binary version of GitLab CI Multi Runner, the build processor for GitLab 8.10"
HOMEPAGE="https://gitlab.com/gitlab-org/${MY_PN}"
SRC_URI="x86? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-386 -> ${P}-x86 )
amd64? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-amd64 -> ${P}-amd64 )
arm? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-arm -> ${P}-arm )"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm"
DEPEND="dev-vcs/git"
RDEPEND="${DEPEND}
net-libs/nodejs
virtual/mta"
MY_USER="gitlab_ci_multi_runner"
DEST_DIR="/opt/${MY_PN}"
LOGS_DIR="/var/log/${MY_PN}"
TEMP_DIR="/var/tmp/${MY_PN}"
RUN_DIR="/run/${MY_PN}"
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}/${MY_PN}"
}
src_prepare() {
chmod +x "${S}/${MY_PN}"
eapply_user
}
src_compile() {
# nothing to compile, binary all-in-one goodness! (?)
:
}
src_install() {
local dest=${DEST_DIR}
local conf="/etc/gitlab-runner"
diropts -m755
dodir ${dest}
exeinto ${dest}
doexe "${S}/${MY_PN}"
diropts -m750
dodir ${conf}
dosym ${conf} ${dest}/.gitlab-runner
# fix permissions
fowners -R ${MY_USER}:${MY_USER} ${dest} ${conf}
## RC script ##
local rcscript="${MY_PN}.init"
cp "${FILESDIR}/${rcscript}" "${T}" || die
sed -i \
-e "s|@USER@|${MY_USER}|" \
"${T}/${rcscript}" \
|| die "failed to filter ${rcscript}"
newinitd "${T}/${rcscript}" "${MY_PN}"
newconfd "${FILESDIR}/${MY_PN}.conf" "${MY_PN}"
}
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 at"
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."
}

View File

@ -0,0 +1,102 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="6"
inherit eutils user
MY_PN="gitlab-ci-multi-runner"
DESCRIPTION="Binary version of GitLab CI Multi Runner, the build processor for GitLab 8.11"
HOMEPAGE="https://gitlab.com/gitlab-org/${MY_PN}"
SRC_URI="x86? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-386 -> ${P}-x86 )
amd64? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-amd64 -> ${P}-amd64 )
arm? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-arm -> ${P}-arm )"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm"
DEPEND="dev-vcs/git"
RDEPEND="${DEPEND}
net-libs/nodejs
virtual/mta"
MY_USER="gitlab_ci_multi_runner"
DEST_DIR="/opt/${MY_PN}"
LOGS_DIR="/var/log/${MY_PN}"
TEMP_DIR="/var/tmp/${MY_PN}"
RUN_DIR="/run/${MY_PN}"
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}/${MY_PN}"
}
src_prepare() {
chmod +x "${S}/${MY_PN}"
eapply_user
}
src_compile() {
# nothing to compile, binary all-in-one goodness! (?)
:
}
src_install() {
local dest=${DEST_DIR}
local conf="/etc/gitlab-runner"
diropts -m755
dodir ${dest}
exeinto ${dest}
doexe "${S}/${MY_PN}"
diropts -m750
dodir ${conf}
dosym ${conf} ${dest}/.gitlab-runner
# fix permissions
fowners -R ${MY_USER}:${MY_USER} ${dest} ${conf}
## RC script ##
local rcscript="${MY_PN}.init"
cp "${FILESDIR}/${rcscript}" "${T}" || die
sed -i \
-e "s|@USER@|${MY_USER}|" \
"${T}/${rcscript}" \
|| die "failed to filter ${rcscript}"
newinitd "${T}/${rcscript}" "${MY_PN}"
newconfd "${FILESDIR}/${MY_PN}.conf" "${MY_PN}"
}
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 at"
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."
}

View File

@ -0,0 +1,102 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="6"
inherit eutils user
MY_PN="gitlab-ci-multi-runner"
DESCRIPTION="Binary version of GitLab CI Multi Runner, the build processor for GitLab 8.12"
HOMEPAGE="https://gitlab.com/gitlab-org/${MY_PN}"
SRC_URI="x86? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-386 -> ${P}-x86 )
amd64? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-amd64 -> ${P}-amd64 )
arm? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-arm -> ${P}-arm )"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm"
DEPEND="dev-vcs/git"
RDEPEND="${DEPEND}
net-libs/nodejs
virtual/mta"
MY_USER="gitlab_ci_multi_runner"
DEST_DIR="/opt/${MY_PN}"
LOGS_DIR="/var/log/${MY_PN}"
TEMP_DIR="/var/tmp/${MY_PN}"
RUN_DIR="/run/${MY_PN}"
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}/${MY_PN}"
}
src_prepare() {
chmod +x "${S}/${MY_PN}"
eapply_user
}
src_compile() {
# nothing to compile, binary all-in-one goodness! (?)
:
}
src_install() {
local dest=${DEST_DIR}
local conf="/etc/gitlab-runner"
diropts -m755
dodir ${dest}
exeinto ${dest}
doexe "${S}/${MY_PN}"
diropts -m750
dodir ${conf}
dosym ${conf} ${dest}/.gitlab-runner
# fix permissions
fowners -R ${MY_USER}:${MY_USER} ${dest} ${conf}
## RC script ##
local rcscript="${MY_PN}.init"
cp "${FILESDIR}/${rcscript}" "${T}" || die
sed -i \
-e "s|@USER@|${MY_USER}|" \
"${T}/${rcscript}" \
|| die "failed to filter ${rcscript}"
newinitd "${T}/${rcscript}" "${MY_PN}"
newconfd "${FILESDIR}/${MY_PN}.conf" "${MY_PN}"
}
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 at"
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."
}

View File

@ -0,0 +1,102 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="6"
inherit eutils user
MY_PN="gitlab-ci-multi-runner"
DESCRIPTION="Binary version of GitLab CI Multi Runner, the build processor for GitLab 8.13"
HOMEPAGE="https://gitlab.com/gitlab-org/${MY_PN}"
SRC_URI="x86? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-386 -> ${P}-x86 )
amd64? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-amd64 -> ${P}-amd64 )
arm? ( https://${MY_PN}-downloads.s3.amazonaws.com/v${PV}/binaries/${MY_PN}-linux-arm -> ${P}-arm )"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm"
DEPEND="dev-vcs/git"
RDEPEND="${DEPEND}
net-libs/nodejs
virtual/mta"
MY_USER="gitlab_ci_multi_runner"
DEST_DIR="/opt/${MY_PN}"
LOGS_DIR="/var/log/${MY_PN}"
TEMP_DIR="/var/tmp/${MY_PN}"
RUN_DIR="/run/${MY_PN}"
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}/${MY_PN}"
}
src_prepare() {
chmod +x "${S}/${MY_PN}"
eapply_user
}
src_compile() {
# nothing to compile, binary all-in-one goodness! (?)
:
}
src_install() {
local dest=${DEST_DIR}
local conf="/etc/gitlab-runner"
diropts -m755
dodir ${dest}
exeinto ${dest}
doexe "${S}/${MY_PN}"
diropts -m750
dodir ${conf}
dosym ${conf} ${dest}/.gitlab-runner
# fix permissions
fowners -R ${MY_USER}:${MY_USER} ${dest} ${conf}
## RC script ##
local rcscript="${MY_PN}.init"
cp "${FILESDIR}/${rcscript}" "${T}" || die
sed -i \
-e "s|@USER@|${MY_USER}|" \
"${T}/${rcscript}" \
|| die "failed to filter ${rcscript}"
newinitd "${T}/${rcscript}" "${MY_PN}"
newconfd "${FILESDIR}/${MY_PN}.conf" "${MY_PN}"
}
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 at"
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."
}

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>manuel@fritteli.ch</email>
<name>Manuel Friedli</name>
</maintainer>
</pkgmetadata>