diff --git a/dev-vcs/gitlab-runner/ChangeLog b/dev-vcs/gitlab-runner/ChangeLog index 8e63750..958457c 100644 --- a/dev-vcs/gitlab-runner/ChangeLog +++ b/dev-vcs/gitlab-runner/ChangeLog @@ -1,3 +1,8 @@ +*gitlab-runner-10.3.1 (17 Feb 2018) + + 17 Feb 2018; Manuel Friedli +gitlab-runner-10.3.1.ebuild: + dev-vcs/gitlab-runner: Add ebuild for version 10.3.1. + *gitlab-runner-10.2.1 (16 Feb 2018) 16 Feb 2018; Manuel Friedli +gitlab-runner-10.2.1.ebuild: diff --git a/dev-vcs/gitlab-runner/Manifest b/dev-vcs/gitlab-runner/Manifest index fd7fb47..082687a 100644 --- a/dev-vcs/gitlab-runner/Manifest +++ b/dev-vcs/gitlab-runner/Manifest @@ -9,8 +9,12 @@ DIST gitlab-runner-10.1.1.tar.gz 3607287 SHA256 f5bcc173e9694589ee199d9ff7da38c2 DIST gitlab-runner-10.2.1-prebuilt-arm.tar.xz 8554156 SHA256 45e834e16c99378f1b9361349206c115435b8565b8edcfcda13d56d7baf92824 SHA512 6d5158fd7b2e4c40ffeeb1f292b955958526a7370e699a8d0c0ec6b4d321e12e584f04837a707f7f38a2af7e4e073089566dd33bcec8706626dca7eef6f90b2a WHIRLPOOL 6a0f98fcf4e35d88ee49c31ad914fb841d3efb9d47891272eaec78d2f8d8d5e8c2440963742d3e925d4684550f88e2ebe4c5703ad4423523506746af0c0a266f DIST gitlab-runner-10.2.1-prebuilt-x86_64.tar.xz 10473104 SHA256 6d13458230571770a4950e2a2948a7d9ab2b1efbbb00734798624500d811f0d0 SHA512 9b328687d78166f6791e8ea91bef6ebe11891e7ebda9054dea156da128004b4d6b6439135a20368af7d523ff21981a6f3b60b145ef3cbdb6413511a7746eb0bc WHIRLPOOL b16e4e9a7cb4ed4842616efa1c05afe8244950d0fb0ba487f0c5b043f06a023fe555a398a90e8e4893841e770d3fe7488d6caabed7f6e1af5376eca50d31d7c5 DIST gitlab-runner-10.2.1.tar.gz 3695554 SHA256 530f3281cf99c80136969a1ef9edc60dd726862f5949cf1042e64ac1a2a3ac74 SHA512 c2962586a15c7aaa6c18f500212d67ecb4c4907de8f6e7faac920d9a7714fb51650fb8d81cded71a5c173910c7e5ac61b7d33a6bd0f81faa1b125bee2e242f5f WHIRLPOOL 84ed4fc7a8b04226ba52938458e15b1bbc1417ad0979665ee4b4859504bf9267280efc18e1e3d420788a7ae7a62467b19db906057fc397e54a8894b7113b0292 +DIST gitlab-runner-10.3.1-prebuilt-arm.tar.xz 8557640 SHA256 b2579f64edfd67ca80c4604bbe20dfccd8fde11ab47ca873860b123a1bcc964e SHA512 5e2b77827d23a3d3703cef92ad3e69e042c1da3dc58c9c3e9e182a453aaea972a04935e188bd3c44b625c0ae3201214e17b787e71db18f50192fd321b3cf9465 WHIRLPOOL dd2fed8539c89cbc36284f2c8900ef1baf3682e27793351651214fb1b86ff4909b2b22cbec958283210de8dd5614d6285d9e907af824a97ca6b9df44d907ae73 +DIST gitlab-runner-10.3.1-prebuilt-x86_64.tar.xz 10471784 SHA256 735498253a39a41959526d811315bef112c586ea01cf8d204113fe9db11f5abf SHA512 115ef90a21af2e4b1b098f904e65eadceaace599e1a45cf1d757ed611be2d8a48d5d53feddf0940dd4cc2d446ebbfa49072e2992a5d246a632ad9ef4a867a0a1 WHIRLPOOL ed7589efa6a2ffcbb1ac88bc8b3ac6eb21b686cc080cb3595f99dc140d7522e1fe5801f2e17c7cbad5916a1635057cd8b42a906d9473fae65fceb6c6f4f076e5 +DIST gitlab-runner-10.3.1.tar.gz 3702219 SHA256 6fd684349705d1edd4391be3463442a5b06ac36ec82e11e20b2afa83ac6ee96e SHA512 d49c683057b0b233022a6330ff1e9be712849bab56cece510da54e103e2ee56c5060bd49d08d91c9d7459a3921890720d79befd867a3b58a8ac6ab3e565ec848 WHIRLPOOL 056c306350e2f3ef4b4827d15cb9057e9bc5203984a7b29f84bd3f81bbcf175619830645801baa9b7c67c2362e93bb0e25de1671b33a60a8626b29daa1f1e557 EBUILD gitlab-runner-10.0.2.ebuild 2545 SHA256 59794dd6f33ce0fc0d1c997db7e5e4eaea226485aada8f700e3d183c2284e409 SHA512 4e9e6a93d621f595cc2b20ea4cb49afc0c9c4980b5ba13bec342994596caef0e0272fcd0b2deb087c96beebec283827916aa1b5594337febf592fd0251121327 WHIRLPOOL 5a48199473313fb247f621a8abf146fc794d02316b2cacba77fb3265047cc33115b26f2a21f58fb9648deb85c4c4c1f5190f6f3768bbeb4bc21a1373b5ac52b3 EBUILD gitlab-runner-10.1.1.ebuild 2545 SHA256 7bdf62baddd6a43ee546937f8c87d10bdfda809ddbfd901471c62908c4363165 SHA512 543c36ea54fbfe74e755c17bf0660a9fac7d2841aee17ad99e95816d89606b4934aebee5a6e98621803a4f10a0342c2e9a41d69898c60da202655d1e1da1926c WHIRLPOOL 68f73d719fad6c9c8b849d664f9efb01af27877904e0360515374eb2b1c10f22058e8ae2081faf34f0058dac7579558b8309b089746f802bef0668243ada47e5 EBUILD gitlab-runner-10.2.1.ebuild 2545 SHA256 fc7d7c847bc175f6f74f71f8c0eeef9b4fad9c4d779f79640e6439c907ad0963 SHA512 3ccc5f38b82ef5453724819db7227d3ec234940af8e2a2fdd7b14db199a13e1e2ed0ae55bda87cb0061a0c548bf2acedc940ea3a70dc1dfa5644478df785b97a WHIRLPOOL ed6be446184ccb593c48da4b51336cd5f377f72041014896e2d11b3e2782c0faa36f3513fb5ed0f692eb43af229f71297265d37ed74c52412477cb204c229e2f -MISC ChangeLog 1250 SHA256 36de24297d3f52cc229d3b8b3df3f5c399f46d5ea0606fb1102ed992fd61406c SHA512 60669c86a54b4b0267211f6a1fa15a67d0ea32e5b1cedb1d7e18ab0bf3b40cdee2050f6da9e3bc4f6cb95e455d67ac4e0145cea2382d35a27013ec25bc9ba4e4 WHIRLPOOL 24cff7463f27b2a8d7aca8340a869a58d72f4b5dc39d1f3aecc170ea728dfe976fa5604443ddb67ec28bca5ec4f97c1fd77d86d89ba7cbe6fca7ba60ddb97144 +EBUILD gitlab-runner-10.3.1.ebuild 2545 SHA256 fc7d7c847bc175f6f74f71f8c0eeef9b4fad9c4d779f79640e6439c907ad0963 SHA512 3ccc5f38b82ef5453724819db7227d3ec234940af8e2a2fdd7b14db199a13e1e2ed0ae55bda87cb0061a0c548bf2acedc940ea3a70dc1dfa5644478df785b97a WHIRLPOOL ed6be446184ccb593c48da4b51336cd5f377f72041014896e2d11b3e2782c0faa36f3513fb5ed0f692eb43af229f71297265d37ed74c52412477cb204c229e2f +MISC ChangeLog 1426 SHA256 f4a007e0c7de69ddb54b709fddf13cad6cd5e8dc1d19e69ef15d66fdbc5076da SHA512 d5719f9d682259331685f0b1bb465b1f0543dc20f74293a060a1fafc17c3b1f2385a65adc3d5ae653fd9796e67e5ed56b0928b2e43ff0f36d9d03b5e2481ccc0 WHIRLPOOL 1d5aa9fb9e075bba17664e8f800b9ee52c0f96ea1b78734aea9be2f981334f1472b6329acde2bb18ef857645ca5371c17757ef05d46a9297d93214c1efbc4f86 MISC metadata.xml 329 SHA256 f0ae08a64aa32a07486e744ce11ac5448770b7320454015bcd065e312fcb5e9c SHA512 11e4eaf25633c5979e5243350bdf2ddc6d9dca06ab54ec38359591f1d002ea2a224e53b3e6c4ac53b5b2e795a87769fdbd97c547b008272e0a1491141f422e5d WHIRLPOOL ab2c1cb3d9aff1f757b49633f94d4b98da4b83dadab12ab8d869f9e1f6763b3125010147472e58e910e7fc42da262dbd69a1bf3939f3720a79ab4329184b4c35 diff --git a/dev-vcs/gitlab-runner/gitlab-runner-10.3.1.ebuild b/dev-vcs/gitlab-runner/gitlab-runner-10.3.1.ebuild new file mode 100644 index 0000000..d100728 --- /dev/null +++ b/dev-vcs/gitlab-runner/gitlab-runner-10.3.1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2018 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="f157dc9f" + +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}" +}