dev-vcs/gitlab-ci-multi-runner-bin:
Prune versions <9.2.0 Package-Manager: Portage-2.3.6, Repoman-2.3.1
This commit is contained in:
parent
4704003bef
commit
d649f86c70
5 changed files with 7 additions and 322 deletions
|
@ -1,3 +1,9 @@
|
|||
06 Sep 2017; Manuel Friedli <manuel@fritteli.ch>
|
||||
-gitlab-ci-multi-runner-bin-1.6.0.ebuild,
|
||||
-gitlab-ci-multi-runner-bin-1.7.0.ebuild,
|
||||
-gitlab-ci-multi-runner-bin-1.8.0.ebuild:
|
||||
dev-vcs/gitlab-ci-multi-runner-bin: Prune versions <9.2.0
|
||||
|
||||
*gitlab-ci-multi-runner-bin-1.8.0 (23 Nov 2016)
|
||||
|
||||
23 Nov 2016; Manuel Friedli <manuel@fritteli.ch>
|
||||
|
|
|
@ -1,20 +1,8 @@
|
|||
AUX gitlab-ci-multi-runner.conf 44 SHA256 0b93ba53d557fbf603b50f6d78eb2c4415b9a79f056142b6edf4a63fc6612d6e SHA512 1f5ff480740b18fc985ae9337b8dc4ddd1bde5253e09042b5542cb9a3db54b9cef1f7b24445c829eb83fcfd8751b693018154f6b97ce0a6e723d5d71d9a27429 WHIRLPOOL fc5218c55917b3303baf649fbafaf1dc50cf52d0ee04852716defe4f21b806f4f313071b1c55920d89da66180405d35da0f7cca73c2617b70bcaa67f725cab2a
|
||||
AUX gitlab-ci-multi-runner.init 702 SHA256 7a19a20f0b3138a86d805872706ebc2918b01663cfdb351aa2d2cb89707602e9 SHA512 005e10a1c2974209f74efb5899d8f7627284947b716049a5211a2c5767a43b7a629061d96a6f445646f88cdb4afb9918fc2d154d68fabd4fe8ec4e0b9fd0125f WHIRLPOOL 85100f9a311ce1a39adddc10dee5af7862dceff5ae24e30c2830b74cdf78d74357fc0f0b43010a79909caf31e33439f0facc5dbd8e87b6452180093d1058eb3d
|
||||
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
|
||||
DIST gitlab-ci-multi-runner-bin-1.8.0-amd64 69057552 SHA256 851e5b438d0b04a633623437794c8bb019bb163cba067cf2f60801948937d6c7 SHA512 60fb2440f5e256f4a7d3ab6d3c5731f33328782ba73957107bd122372b59d2c6e1e7511ca8f6c149985bb1d43cf02803c60022ffbb74d5d173033caebe3103a0 WHIRLPOOL 93c007f122bfcbe8c4f8385a5af79b3a2d028136e6c2187f6b7461ece4aef4c60bbee4ef4121bc8b692195674727719543c081875bd1b00f51a2898d464409d9
|
||||
DIST gitlab-ci-multi-runner-bin-1.8.0-arm 65672013 SHA256 a9047148ea205225a88a1026f51dfb565bed69cfafd3123beaa1955b169bd193 SHA512 2156bda5fe3818f024059bfd2d735c20398f6c386198ec0edb6ee83ee0439c3e03cdfbd9bf6bb19b446d2dbc28f553f404be3d3df1703b5f95c2f3d000fd16e8 WHIRLPOOL 0a831afefe3453b75f97248ebab197f633a97232abc8699b5120afd0aca327ef3733b8709feb0fb5108cafb7cc4b9c16649c38a0ca90978d099343ae077a5289
|
||||
DIST gitlab-ci-multi-runner-bin-1.8.0-x86 65431904 SHA256 88644de0441f33d410928b1aecb0db04dd77ad0870406caec98d3034cbe4cd3f SHA512 f3e6fca39a6146adcf1be72628d47370394dd62097e5b917ee4b8715248b057b20906d032efbf7988127dee5d75b4a0887750e3755a5123e35fabb520297ef13 WHIRLPOOL 2eb8c072263f182912d342b8cacd99aca3e9fe048d05d25275a3fd396603c89a7ce4a7edf97a2552fe2bae2c08647444d4702bbda1296878e3f062338e96500c
|
||||
DIST gitlab-ci-multi-runner-bin-9.2.0-amd64 70053912 SHA256 bc84cee7cfccc3b5ae0ed9737fd2e89e9aa1c358b0a69b20261f6ac55fe4d696 SHA512 efb52bb7a6014df32fd4ef1bef218c243e09a931fa6938fb5331fc166b93d0d83a636f804370c9dd4c7b9c81c71150bee49d9081df8bdd69e667079ebed66a69 WHIRLPOOL 96332aa68c80990b5ce26ab6dfbf43515efbccc3a75ccb3a17491e02c3553ce2baf962d45b83e9b6e1875b4ad098ce75e34e841ffdf1e0181ff755319f352497
|
||||
DIST gitlab-ci-multi-runner-bin-9.2.0-arm 66560073 SHA256 ccc67dde278d1ded1c4aa6785de8ef1429b971ba9fb955109c8d9cd9d8ce862f SHA512 878ed2efb619ca43e03319a77b35bc79842eb8f62e3e1cf4bb51b0e9256a44ff44112557ad14467e24b41280d67c96b78f381e5d194dd5404911b1122c13d70d WHIRLPOOL 84ee58bb7e54491af55754beb0e0b398b5d546de5f8f48e38f3837b1c92cdbc4e1268a824bbf08c2cac36d85f344a0f96b2ed256bd5d51e99edc807a9c41154e
|
||||
DIST gitlab-ci-multi-runner-bin-9.2.0-x86 66332255 SHA256 ec03950240611049bb8537c93fe82459d70a2b20642b4f56f615a72eb2cd501c SHA512 e7c7d6d6888d4b99204a9a9f0c9bb8b454cfd90ebf22e1909b97bd1d32c2282f8ca06a679078bb6b6b4fdb024a015411d62823a1f4f4eed931d7c884ed584e70 WHIRLPOOL f28d0596c38cda742ac300ed0d372220f9c58b235accab4c4a9686fd43905f46c9549c14a76c571fe6a94dc8190aaf57b3fe8513e95091a7daebeb43bc63cc30
|
||||
EBUILD gitlab-ci-multi-runner-bin-1.6.0.ebuild 2411 SHA256 df591d547119124d7dbb65f02677f2adce9c00f16dcb68c30fbc1c11aadfd82a SHA512 2d48cf26aa255af15c75e055349f38a96de061e4f3e5185e614f1479b4964938e1b9ee491037e1d5f33e2ce900fc9967cc2ce76ec9dd3f0b89b8eb3ee1c012c2 WHIRLPOOL a0e1505951280c1238ff6649bbfb7ebe2e14930057180fe9387354017c44e16b47eb83cb5173a80d13619cf981a5da3c263d9008b9444ba04cd691e5f2ca99d9
|
||||
EBUILD gitlab-ci-multi-runner-bin-1.7.0.ebuild 2411 SHA256 cc4d039a20156f466d2b5e8fa332dc623bd948c86601ece073c3700ed12fa6a2 SHA512 4e5740ce6512894a36187f4dc76833daeec18288ad079b5bf434a2bef65ad806e8cb21a00a09d9f7714eb029f726036105c0d12b77ddc8a7f7833c6fc7d1aa40 WHIRLPOOL 855db2c82a377297c81beb10bc4a3c0196cd0ee0ba8cc89d0a9aca9785109af0864afeb18aa5a9ce71e34093235015b7a45d9eaf8f95a21de71a6bade9955ec8
|
||||
EBUILD gitlab-ci-multi-runner-bin-1.8.0.ebuild 2411 SHA256 b40c9371273c2be43a7b1d93d125791afaf6c9cce21bf24fa926f95b73842d2f SHA512 117b6c5ea58d546356bc334e7eca3fbdd65954cb61573e6422753742083ea3e949513fbe161ed2e5c0dd73e94876a4bf7977b00dd7d9a87efc4988a83f3b7efb WHIRLPOOL 4b5196976691b1b5feedaef59be60f0e246bdfd237cce269d5ac1f2879bc82341ee3761a512f403fd19737143dd884d4985955e023b8df87bad0f31fe861d1d1
|
||||
EBUILD gitlab-ci-multi-runner-bin-9.2.0.ebuild 2412 SHA256 3efc6598f7d66a5796629fb8661c0b88bc6eefeaf243b0e70814d6e6d88f5771 SHA512 e4b356f6c6156ddec8cf4e64f33ca77b3dff5c064ca5ef666e999d190f5e57839c4c8a3e520b0148da1914ce2b9ff30c45807c4a00e1861d79fbe39304cc7aaa WHIRLPOOL 4ce43a7bb3427119458fa4f077300d4eccf99c5a773858e2441523b47ed1a38fe01129f50f4c445fa385ebdac8fb771aa7bfeb97aa3083da2628181445d81631
|
||||
MISC ChangeLog 2995 SHA256 28132dae936efd153b5923e389f7cc3a9b3397bb84a09db4a7ee67f4550653f6 SHA512 cfcd1448295615bfca384461c3601c2de5308c12ff1ba544821af5f878d2e58da4b7c5ab73da448af8ea5e9b6f08a8b7d71e9db329ebfbe2744b1ed01be2051d WHIRLPOOL 7b932135c6c51547b3423bec14b40900c033e37f302c184817fb93223cacde74737d08ce1d6450ffa8f07c2a378b4e4e80fecdd9e218142a764ad80b2011a1c7
|
||||
MISC ChangeLog 3240 SHA256 24bb1651c40c4dd49d57d9a95b74ce842cbbe2dcddba4bc76f52d06c10795abf SHA512 f224ca1e45c9d56fcc4dd6f15e687a07e5be77a809ec9ada1eeaf4ad1234fd08143e6bc91c96b973003c38485cb839127f1534f4705e92f985f4d72aecffb43d WHIRLPOOL aefff25c7cb7a56f2625e870e1362b9888f9d5b303bcd702a662b080f782745646fca656ef91b2891c5eead4987e42525df8e1c80ed12eed375d758413db6899
|
||||
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1
|
||||
|
|
|
@ -1,103 +0,0 @@
|
|||
# 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
|
||||
!dev-vcs/gitlab-ci-multi-runner"
|
||||
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."
|
||||
}
|
|
@ -1,103 +0,0 @@
|
|||
# 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
|
||||
!dev-vcs/gitlab-ci-multi-runner"
|
||||
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."
|
||||
}
|
|
@ -1,103 +0,0 @@
|
|||
# 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.14"
|
||||
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
|
||||
!dev-vcs/gitlab-ci-multi-runner"
|
||||
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."
|
||||
}
|
Loading…
Reference in a new issue