dev-vcs/gitlab-runner:

Add ebuild for version 10.1.0.

Package-Manager: Portage-2.3.8, Repoman-2.3.3
This commit is contained in:
Manuel Friedli 2017-11-06 22:30:28 +01:00
parent 8353bb631b
commit 3138f9d7db
3 changed files with 105 additions and 1 deletions

View file

@ -1,3 +1,8 @@
*gitlab-runner-10.1.0 (06 Nov 2017)
06 Nov 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-runner-10.1.0.ebuild:
dev-vcs/gitlab-runner: Add ebuild for version 10.1.0.
05 Nov 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-runner-10.0.2.ebuild: 05 Nov 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-runner-10.0.2.ebuild:
dev-vcs/gitlab-runner: Final fix. dev-vcs/gitlab-runner: Final fix.

View file

@ -3,6 +3,10 @@ AUX gitlab-runner-10.0.2.init 666 SHA256 42360338ff935726f6756c442de0fd381e10fb7
DIST gitlab-runner-10.0.2-prebuilt-arm.tar.xz 8548448 SHA256 b73a0690eef09c4f366342f98bec301020d47c16f98ac8a770f373dd81a76b04 SHA512 78919f68bbb31fce1792427b9067491b5ef0a557a184039eedf89110d47e875bc67c0a67fdd3165374c264aa411392dcda31574953e5ffacc2a141eaa85d4626 WHIRLPOOL 59cfe9d085318c3169da969846c216d7eb1b1f1a5ae52808f2721722fc6da48f25c87a1e2f257b7e3d9a0fc8e9d02e43622add867dc3403b2134c45715228ad8 DIST gitlab-runner-10.0.2-prebuilt-arm.tar.xz 8548448 SHA256 b73a0690eef09c4f366342f98bec301020d47c16f98ac8a770f373dd81a76b04 SHA512 78919f68bbb31fce1792427b9067491b5ef0a557a184039eedf89110d47e875bc67c0a67fdd3165374c264aa411392dcda31574953e5ffacc2a141eaa85d4626 WHIRLPOOL 59cfe9d085318c3169da969846c216d7eb1b1f1a5ae52808f2721722fc6da48f25c87a1e2f257b7e3d9a0fc8e9d02e43622add867dc3403b2134c45715228ad8
DIST gitlab-runner-10.0.2-prebuilt-x86_64.tar.xz 9562480 SHA256 58c95075273f44ff926823aa9b5bf9fd4cb82c87adc27bef48d5bf985d629992 SHA512 ea9339db46d8e683de42802ec52b499941e189b754bc43f600b673942fbf947941ac2ad7f1d63a938341df7982865595d5dc0557a08db4c78bc64067b2709539 WHIRLPOOL d6c9e66344f7334336031cafdec91dadd8941739584a41c71837fb247b3fb970826f23697758a8a3497e6667d300f1dff0ce8fe146389de0da9d15e2bbd1e78e DIST gitlab-runner-10.0.2-prebuilt-x86_64.tar.xz 9562480 SHA256 58c95075273f44ff926823aa9b5bf9fd4cb82c87adc27bef48d5bf985d629992 SHA512 ea9339db46d8e683de42802ec52b499941e189b754bc43f600b673942fbf947941ac2ad7f1d63a938341df7982865595d5dc0557a08db4c78bc64067b2709539 WHIRLPOOL d6c9e66344f7334336031cafdec91dadd8941739584a41c71837fb247b3fb970826f23697758a8a3497e6667d300f1dff0ce8fe146389de0da9d15e2bbd1e78e
DIST gitlab-runner-10.0.2.tar.gz 3599514 SHA256 783c1c597a2b9ee78b2396852235010c5432804e8d65b65f49f4e3719f6da4c8 SHA512 9d8cac8441913c77c1b34dcf9f82ab1345d21f6a9553a7f895473289794c85c2675588b38c7cd390615c8e4cd14964c024562132b2b9dd88c9215ea165fc1c3d WHIRLPOOL e471f032040ffa3fbc0566df092425a19b3e9528907e87b49297512d665f187303baf24a918f855ee32fa0b1de3aac922a1ed13c8efcc22027e2fbd11fb2208d DIST gitlab-runner-10.0.2.tar.gz 3599514 SHA256 783c1c597a2b9ee78b2396852235010c5432804e8d65b65f49f4e3719f6da4c8 SHA512 9d8cac8441913c77c1b34dcf9f82ab1345d21f6a9553a7f895473289794c85c2675588b38c7cd390615c8e4cd14964c024562132b2b9dd88c9215ea165fc1c3d WHIRLPOOL e471f032040ffa3fbc0566df092425a19b3e9528907e87b49297512d665f187303baf24a918f855ee32fa0b1de3aac922a1ed13c8efcc22027e2fbd11fb2208d
DIST gitlab-runner-10.1.0-prebuilt-arm.tar.xz 8555400 SHA256 9c14a91d5398e8ef99e13b57afa7430aa660791cf8f045e52a4b9566f247f22f SHA512 26bf62162380cf17569b0f2b7bddcd8aa957901ce0bf514657280bdc46bddb192ed6151bc721a56681150703a5af994fd82a632c97978739d7b9ca13be1ff65b WHIRLPOOL f8860789dc8931d4bc7ca7b2acf939bf55aff06e6922806ae4382633c0b98d6d74a02751cad2f8c9e0ae9d43bc2bfdd7f4062b78ea3235d997df540ce1fea4ff
DIST gitlab-runner-10.1.0-prebuilt-x86_64.tar.xz 10449512 SHA256 24f7ac81a210ab46ee0852e7ec258ac0a9d3d14dec12dca5406d459435e60e41 SHA512 1e98c3869632cd3430d8bf78922d9d2ce92a4368458729b6a379f91fb5f19703c8bd3555609ba88b2ec7220851dc0d61bab8b78f398c4e88c77e3de96040c3a7 WHIRLPOOL cd5f1caf8869097f3e121e497734764ba574e62b16c39b620b7d77e7f344416b6b318a1d2f5092a424a1466a0c42cd0f7625c542e116f3fbd6a258e845c4f1fe
DIST gitlab-runner-10.1.0.tar.gz 3607520 SHA256 e180d387670330d2915505d27a7b4c3f5ab2b6d1c8bd5225927d379f8ec2fc29 SHA512 535ac63d2cc5101b5f20bd6d5ecb2ee0c2c20688326251dc86261e8dccb275ddfeaba43e523b3306fd480d01b74aa702f3d91e539f5a73ec8909b62c5fbcbb24 WHIRLPOOL 7f07af502ae0651ef7053edf038ad83f850dbb3a7a5b86dcd1baab1482d03e75bd09e0b064823b869fe30adf5601ebf59042efa21497f4180237d57cf186d1f2
EBUILD gitlab-runner-10.0.2.ebuild 2545 SHA256 59794dd6f33ce0fc0d1c997db7e5e4eaea226485aada8f700e3d183c2284e409 SHA512 4e9e6a93d621f595cc2b20ea4cb49afc0c9c4980b5ba13bec342994596caef0e0272fcd0b2deb087c96beebec283827916aa1b5594337febf592fd0251121327 WHIRLPOOL 5a48199473313fb247f621a8abf146fc794d02316b2cacba77fb3265047cc33115b26f2a21f58fb9648deb85c4c4c1f5190f6f3768bbeb4bc21a1373b5ac52b3 EBUILD gitlab-runner-10.0.2.ebuild 2545 SHA256 59794dd6f33ce0fc0d1c997db7e5e4eaea226485aada8f700e3d183c2284e409 SHA512 4e9e6a93d621f595cc2b20ea4cb49afc0c9c4980b5ba13bec342994596caef0e0272fcd0b2deb087c96beebec283827916aa1b5594337febf592fd0251121327 WHIRLPOOL 5a48199473313fb247f621a8abf146fc794d02316b2cacba77fb3265047cc33115b26f2a21f58fb9648deb85c4c4c1f5190f6f3768bbeb4bc21a1373b5ac52b3
MISC ChangeLog 691 SHA256 cdaa5676070b93eddc9f2bf67a2d1ff1e7977514127d51ef83cd5ce885424a25 SHA512 12c2abb6b7cb8e1f3d278229e8b521f4f12bf893828b83de14c63c04adc6efc594397af72eab25e2998c8f05e3ba1dbe3d99458d6bbb6ef7177d911ec36a39f7 WHIRLPOOL dea76128001e55787993511322f08be4d4171c1704be6918e98e509901f7243b68b6c1d2cd987578ef6df3570e7615b454a41322e2dac75902fa0148cc3506f8 EBUILD gitlab-runner-10.1.0.ebuild 2545 SHA256 fecf0891935e503b57e0d0be611f0c7817283ad3254da6241c8c2633600e2283 SHA512 c697e833eb4ebe727328b80620858dcdfc937a93efe61d543de337dc3bf53aaa790df86924223d17b21eba192d069bf485c8208c0506f26006712f92e09b2071 WHIRLPOOL 1f80536a619d20cb23713c099c1e11c1073104141c576269e80e942639e07b8508d37ee4c6694ec752c2e5074ab30642167c7583448ead42c88a5c7cfa26827c
MISC ChangeLog 867 SHA256 4a558bc5c9ee99ee54aa40cab068b9e345b3bf55bd88087506ff365c2e5e922e SHA512 2989fcb1c28d6e78331ea05184b1664181e1efe464a1639f051660a0dea33a7fc3c5e2411c0164c09deff9a98d9bfa2848b613fe855dfd30aa8191bbdb608bad WHIRLPOOL 6ef2a572d277214bf69814b15ae51a559330a5f7be2298917c0cc70a070434fcbf6e8d239bc3c954a87f6fd7d7d17368571f5e057b699227ba026685ea6831ba
MISC metadata.xml 329 SHA256 f0ae08a64aa32a07486e744ce11ac5448770b7320454015bcd065e312fcb5e9c SHA512 11e4eaf25633c5979e5243350bdf2ddc6d9dca06ab54ec38359591f1d002ea2a224e53b3e6c4ac53b5b2e795a87769fdbd97c547b008272e0a1491141f422e5d WHIRLPOOL ab2c1cb3d9aff1f757b49633f94d4b98da4b83dadab12ab8d869f9e1f6763b3125010147472e58e910e7fc42da262dbd69a1bf3939f3720a79ab4329184b4c35 MISC metadata.xml 329 SHA256 f0ae08a64aa32a07486e744ce11ac5448770b7320454015bcd065e312fcb5e9c SHA512 11e4eaf25633c5979e5243350bdf2ddc6d9dca06ab54ec38359591f1d002ea2a224e53b3e6c4ac53b5b2e795a87769fdbd97c547b008272e0a1491141f422e5d WHIRLPOOL ab2c1cb3d9aff1f757b49633f94d4b98da4b83dadab12ab8d869f9e1f6763b3125010147472e58e910e7fc42da262dbd69a1bf3939f3720a79ab4329184b4c35

View file

@ -0,0 +1,95 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit golang-build golang-vcs-snapshot user
EGO_PN="gitlab.com/gitlab-org/gitlab-runner"
GITLAB_COMMIT="c1ecf97f"
MY_PV="v${PV/_/-}"
DESCRIPTION="Official GitLab CI Runner written in Go"
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-runner"
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=v${PV} -> ${P}.tar.gz
!docker-build? (
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-x86_64.tar.xz -> ${P}-prebuilt-x86_64.tar.xz
https://${PN}-downloads.s3.amazonaws.com/${MY_PV}/docker/prebuilt-arm.tar.xz -> ${P}-prebuilt-arm.tar.xz
)"
KEYWORDS="~amd64"
LICENSE="MIT"
SLOT="0"
IUSE="docker-build"
DEPEND="dev-go/gox
dev-go/go-bindata
docker-build? ( >=app-emulation/docker-1.5 )"
RESTRICT="mirror test"
MY_USER="gitlab_runner"
MY_HOME_DIR="/var/lib/gitlab-runner"
pkg_setup() {
# add required user
enewgroup ${MY_USER}
enewuser ${MY_USER} -1 /bin/bash "${MY_HOME_DIR}" ${MY_USER}
}
src_prepare() {
default
pushd src/${EGO_PN} || die
if ! use docker-build; then
mkdir -p out/docker || die
cp "${DISTDIR}"/${P}-prebuilt-x86_64.tar.xz out/docker/prebuilt-x86_64.tar.xz || die
cp "${DISTDIR}"/${P}-prebuilt-arm.tar.xz out/docker/prebuilt-arm.tar.xz || die
sed -i -e "s/docker info/echo false/" Makefile || die
else
einfo "You need to have docker running on your system during build time"
einfo "$(docker info)"
fi
sed -i -e "s#./ci/version#echo ${PV}#"\
-e "s/git rev-parse --short HEAD/echo ${GITLAB_COMMIT}/"\
-e "/^LATEST_STABLE_TAG/d"\
-e "s#git show-ref.*\$#echo gentoo)#"\
-e "s#git describe.*\$#echo 0), 0)#"\
Makefile || die
popd || die
}
src_compile() {
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN} build_current
}
src_install() {
dobin src/${EGO_PN}/out/binaries/gitlab-runner
dodoc src/${EGO_PN}/README.md src/${EGO_PN}/CHANGELOG.md
# rc script
newinitd "${FILESDIR}/${PN}-10.0.2.init" "${PN}"
# conf.d file
local conffile="${PN}-10.0.2.conf"
cp "${FILESDIR}/${conffile}" "${T}" || die
sed -i \
-e "s|@USER@|${MY_USER}|" \
-e "s|@HOME@|${MY_HOME_DIR}|" \
"${T}/${conffile}" \
|| die "failed to filter ${conffile}"
newconfd "${T}/${conffile}" "${PN}"
# config dir
local config_dir="/etc/${PN}"
diropts -m750
dodir "${config_dir}"
# home dir
diropts -m755
dodir "${MY_HOME_DIR}"
# fix owners
fowners -R ${MY_USER}:${MY_USER} "${config_dir}" "${MY_HOME_DIR}"
}