Date: Thursday, September 22, 2016 @ 21:29:29 Author: svenstaro Revision: 190172
archrelease: copy trunk to community-i686, community-x86_64 Added: gitlab-ci-multi-runner/repos/community-i686/PKGBUILD (from rev 190171, gitlab-ci-multi-runner/trunk/PKGBUILD) gitlab-ci-multi-runner/repos/community-i686/config.toml (from rev 190171, gitlab-ci-multi-runner/trunk/config.toml) gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.install (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.install) gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.service (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.service) gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.sysusers (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.sysusers) gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.tmpfiles (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.tmpfiles) gitlab-ci-multi-runner/repos/community-x86_64/PKGBUILD (from rev 190171, gitlab-ci-multi-runner/trunk/PKGBUILD) gitlab-ci-multi-runner/repos/community-x86_64/config.toml (from rev 190171, gitlab-ci-multi-runner/trunk/config.toml) gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.install (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.install) gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.service (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.service) gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.sysusers (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.sysusers) gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.tmpfiles (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.tmpfiles) Deleted: gitlab-ci-multi-runner/repos/community-i686/PKGBUILD gitlab-ci-multi-runner/repos/community-i686/config.toml gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.install gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.service gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.sysusers gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.tmpfiles gitlab-ci-multi-runner/repos/community-i686/godeps.patch gitlab-ci-multi-runner/repos/community-x86_64/PKGBUILD gitlab-ci-multi-runner/repos/community-x86_64/config.toml gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.install gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.service gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.sysusers gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.tmpfiles gitlab-ci-multi-runner/repos/community-x86_64/godeps.patch -----------------------------------------+ /PKGBUILD | 150 ++++++++++++++++++++++++++++++ /config.toml | 2 /gitlab-runner.install | 16 +++ /gitlab-runner.service | 34 ++++++ /gitlab-runner.sysusers | 2 /gitlab-runner.tmpfiles | 2 community-i686/PKGBUILD | 80 ---------------- community-i686/config.toml | 1 community-i686/gitlab-runner.install | 8 - community-i686/gitlab-runner.service | 17 --- community-i686/gitlab-runner.sysusers | 1 community-i686/gitlab-runner.tmpfiles | 1 community-i686/godeps.patch | 30 ------ community-x86_64/PKGBUILD | 80 ---------------- community-x86_64/config.toml | 1 community-x86_64/gitlab-runner.install | 8 - community-x86_64/gitlab-runner.service | 17 --- community-x86_64/gitlab-runner.sysusers | 1 community-x86_64/gitlab-runner.tmpfiles | 1 community-x86_64/godeps.patch | 30 ------ 20 files changed, 206 insertions(+), 276 deletions(-) Deleted: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD 2016-09-22 21:29:11 UTC (rev 190171) +++ community-i686/PKGBUILD 2016-09-22 21:29:29 UTC (rev 190172) @@ -1,80 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> - -pkgname=gitlab-ci-multi-runner -pkgver=1.5.2 -pkgrel=1 -pkgdesc="The official GitLab CI runner written in Go" -arch=('i686' 'x86_64') -url='https://gitlab.com/gitlab-org/gitlab-ci-multi-runner' -license=('GPL3') -depends=('ca-certificates' 'curl' 'git' 'glibc' 'tar') -makedepends=('git' 'go' 'godep' 'go-bindata' 'mercurial') -install='gitlab-runner.install' -backup=('etc/gitlab-runner/config.toml') -noextract=('prebuilt-x86_64.tar.xz' - 'prebuilt-arm.tar.xz') -source=("${pkgname}-${pkgver}.tar.gz"::"https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/repository/archive.tar.gz?ref=v${pkgver}" - "https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/v${pkgver}/docker/prebuilt-x86_64.tar.xz" - "https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/v${pkgver}/docker/prebuilt-arm.tar.xz" - "gitlab-runner.install" - "gitlab-runner.service" - "gitlab-runner.sysusers" - "gitlab-runner.tmpfiles" - "config.toml" - "godeps.patch") -sha256sums=('fbade53f2603187207fc7a58b8dc8fcdc5c089c8405cc136edbc715079caad19' - '265a49a8ecb5a4ca3fe51c66baca2a8e82608e37fbe487e261bfe72d83dc5902' - '951b4ee84fcab0c63e80d70fe78774a32eb96bff65266417d4f6e4aeb8fe7e64' - '289f73a16df5c8823a15b67a4aaa635d32b9c49ce4e11baa5d33f12828a1e0bb' - '843cabc4e1cfbf0a81365abae0c3d6ac388c00074017f9c286a7d5545828d1fa' - '0d7621aec132ce44d7dadbe6c5f43b330af5c1dddfe06c958336a297e70c5bba' - '8b17ed458da6926ea0d28aa4cb307b42b047bda9dfa4a96ee48e1c02051efb13' - 'b1f7d9a6a0148884528584909729cce817253759650da61d641e2225845f9330' - 'e75aafe94fe0029e42267e459a1c2d1edae1c3f8d4914af353fc005fef74a828') - -prepare() { - _srcdir=$(ls "${srcdir}" | grep -E "${pkgname}-v${pkgver}-[0-9a-f]{40}") - - mkdir -p "${srcdir}/src/gitlab.com/gitlab-org/" - - ln -sf "${srcdir}/${_srcdir}" "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" - - cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" - - # Patch invalid windows packages in Godeps/Godeps.json - patch -p0 -i "${srcdir}/godeps.patch" - - GOPATH="${srcdir}" godep restore - - ln -sf "${srcdir}/prebuilt-x86_64.tar.xz" prebuilt-x86_64.tar.xz - ln -sf "${srcdir}/prebuilt-x86_64.tar.xz" prebuilt-arm.tar.xz -} - -build() { - _rev=$(ls "${srcdir}" | grep -Po "${pkgname}-v${pkgver}-\K([0-9a-f]{7})") - - cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" - - GOPATH="${srcdir}" go-bindata \ - -pkg docker \ - -nocompress \ - -nomemcopy \ - -prefix out/docker/ \ - -o executors/docker/bindata.go \ - prebuilt-x86_64.tar.xz \ - prebuilt-arm.tar.xz - - GOPATH="${srcdir}" go build \ - -ldflags "-X main.NAME=${pkgname} -X main.VERSION=${pkgver} -X main.REVISION=${_rev}" -} - -package() { - cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" - - install -Dm644 "${srcdir}/config.toml" "${pkgdir}/etc/gitlab-runner/config.toml" - install -Dm644 "${srcdir}/gitlab-runner.service" "${pkgdir}/usr/lib/systemd/system/gitlab-runner.service" - install -Dm644 "${srcdir}/gitlab-runner.sysusers" "${pkgdir}/usr/lib/sysusers.d/gitlab-runner.conf" - install -Dm644 "${srcdir}/gitlab-runner.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/gitlab-runner.conf" - install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" -} Copied: gitlab-ci-multi-runner/repos/community-i686/PKGBUILD (from rev 190171, gitlab-ci-multi-runner/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1,75 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> + +pkgname=gitlab-ci-multi-runner +pkgver=1.6.0 +pkgrel=1 +pkgdesc="The official GitLab CI runner written in Go" +arch=('i686' 'x86_64') +url='https://gitlab.com/gitlab-org/gitlab-ci-multi-runner' +license=('GPL3') +depends=('ca-certificates' 'curl' 'git' 'glibc' 'tar') +makedepends=('git' 'go' 'godep' 'go-bindata' 'mercurial') +install='gitlab-runner.install' +backup=('etc/gitlab-runner/config.toml') +noextract=('prebuilt-x86_64.tar.xz' + 'prebuilt-arm.tar.xz') +source=("${pkgname}-${pkgver}.tar.gz"::"https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/repository/archive.tar.gz?ref=v${pkgver}" + "https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/master/docker/prebuilt-x86_64.tar.xz" + "https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/master/docker/prebuilt-arm.tar.xz" + "gitlab-runner.install" + "gitlab-runner.service" + "gitlab-runner.sysusers" + "gitlab-runner.tmpfiles" + "config.toml") +sha256sums=('219031680b386436ec7b7affc004c2388e6772bb8cce6d554c5b564918bce720' + '2c0d97469a124956d7f71601848dadd0df644e2bd8e8555d0deb4e7f47c7be52' + 'fc5ad1eb24104e453ff4412fbf4bd304e0d04ffeb7ce3f4d0440e6328ddf474f' + 'd8b75e676727989115ab11d6a74281de61daed64a72dcc21d98814e845cdcf91' + '843cabc4e1cfbf0a81365abae0c3d6ac388c00074017f9c286a7d5545828d1fa' + '0d7621aec132ce44d7dadbe6c5f43b330af5c1dddfe06c958336a297e70c5bba' + '8b17ed458da6926ea0d28aa4cb307b42b047bda9dfa4a96ee48e1c02051efb13' + 'b1f7d9a6a0148884528584909729cce817253759650da61d641e2225845f9330') + +prepare() { + _srcdir=$(ls "${srcdir}" | grep -E "${pkgname}-v${pkgver}-[0-9a-f]{40}") + + mkdir -p "${srcdir}/src/gitlab.com/gitlab-org/" + + ln -sf "${srcdir}/${_srcdir}" "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" + + cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" + + GOPATH="${srcdir}" godep restore + + ln -sf "${srcdir}/prebuilt-x86_64.tar.xz" prebuilt-x86_64.tar.xz + ln -sf "${srcdir}/prebuilt-x86_64.tar.xz" prebuilt-arm.tar.xz +} + +build() { + _rev=$(ls "${srcdir}" | grep -Po "${pkgname}-v${pkgver}-\K([0-9a-f]{7})") + + cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" + + GOPATH="${srcdir}" go-bindata \ + -pkg docker \ + -nocompress \ + -nomemcopy \ + -prefix out/docker/ \ + -o executors/docker/bindata.go \ + prebuilt-x86_64.tar.xz \ + prebuilt-arm.tar.xz + + GOPATH="${srcdir}" go build \ + -ldflags "-X main.NAME=${pkgname} -X main.VERSION=${pkgver} -X main.REVISION=${_rev}" +} + +package() { + cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" + + install -Dm644 "${srcdir}/config.toml" "${pkgdir}/etc/gitlab-runner/config.toml" + install -Dm644 "${srcdir}/gitlab-runner.service" "${pkgdir}/usr/lib/systemd/system/gitlab-runner.service" + install -Dm644 "${srcdir}/gitlab-runner.sysusers" "${pkgdir}/usr/lib/sysusers.d/gitlab-runner.conf" + install -Dm644 "${srcdir}/gitlab-runner.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/gitlab-runner.conf" + install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" +} Deleted: community-i686/config.toml =================================================================== --- community-i686/config.toml 2016-09-22 21:29:11 UTC (rev 190171) +++ community-i686/config.toml 2016-09-22 21:29:29 UTC (rev 190172) @@ -1 +0,0 @@ -concurrent = 4 Copied: gitlab-ci-multi-runner/repos/community-i686/config.toml (from rev 190171, gitlab-ci-multi-runner/trunk/config.toml) =================================================================== --- community-i686/config.toml (rev 0) +++ community-i686/config.toml 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1 @@ +concurrent = 4 Deleted: community-i686/gitlab-runner.install =================================================================== --- community-i686/gitlab-runner.install 2016-09-22 21:29:11 UTC (rev 190171) +++ community-i686/gitlab-runner.install 2016-09-22 21:29:29 UTC (rev 190172) @@ -1,8 +0,0 @@ -post_install() { - systemd-sysusers gitlab-runner.conf - systemd-tmpfiles --create gitlab-runner.conf - echo "Register the runner as root using" - echo "# gitlab-ci-multi-runner register" - echo "Configure the runner in /etc/gitlab-runner/config.toml" - echo "Use gitlab-runner.service to control the runner" -} Copied: gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.install (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.install) =================================================================== --- community-i686/gitlab-runner.install (rev 0) +++ community-i686/gitlab-runner.install 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1,8 @@ +post_install() { + systemd-sysusers gitlab-runner.conf + systemd-tmpfiles --create gitlab-runner.conf + echo "Register the runner as root using" + echo "# gitlab-ci-multi-runner register" + echo "Configure the runner in /etc/gitlab-runner/config.toml" + echo "Use gitlab-runner.service to control the runner" +} Deleted: community-i686/gitlab-runner.service =================================================================== --- community-i686/gitlab-runner.service 2016-09-22 21:29:11 UTC (rev 190171) +++ community-i686/gitlab-runner.service 2016-09-22 21:29:29 UTC (rev 190172) @@ -1,17 +0,0 @@ -[Unit] -Description=GitLab Runner -After=syslog.target network.target -ConditionFileIsExecutable=/usr/bin/gitlab-ci-multi-runner - -[Service] -StartLimitInterval=5 -StartLimitBurst=10 -ExecStart=/usr/bin/gitlab-ci-multi-runner "run" "--working-directory" "/var/lib/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" "--service" "gitlab-runner" "--user" "gitlab-runner" -Restart=always -RestartSec=120 -StandardOutput=syslog -StandardError=syslog -SyslogIdentifier=gitlab-runner - -[Install] -WantedBy=multi-user.target Copied: gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.service (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.service) =================================================================== --- community-i686/gitlab-runner.service (rev 0) +++ community-i686/gitlab-runner.service 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1,17 @@ +[Unit] +Description=GitLab Runner +After=syslog.target network.target +ConditionFileIsExecutable=/usr/bin/gitlab-ci-multi-runner + +[Service] +StartLimitInterval=5 +StartLimitBurst=10 +ExecStart=/usr/bin/gitlab-ci-multi-runner "run" "--working-directory" "/var/lib/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" "--service" "gitlab-runner" "--user" "gitlab-runner" +Restart=always +RestartSec=120 +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=gitlab-runner + +[Install] +WantedBy=multi-user.target Deleted: community-i686/gitlab-runner.sysusers =================================================================== --- community-i686/gitlab-runner.sysusers 2016-09-22 21:29:11 UTC (rev 190171) +++ community-i686/gitlab-runner.sysusers 2016-09-22 21:29:29 UTC (rev 190172) @@ -1 +0,0 @@ -u gitlab-runner 107 "GitLab Runner" /var/lib/gitlab-runner Copied: gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.sysusers (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.sysusers) =================================================================== --- community-i686/gitlab-runner.sysusers (rev 0) +++ community-i686/gitlab-runner.sysusers 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1 @@ +u gitlab-runner 107 "GitLab Runner" /var/lib/gitlab-runner Deleted: community-i686/gitlab-runner.tmpfiles =================================================================== --- community-i686/gitlab-runner.tmpfiles 2016-09-22 21:29:11 UTC (rev 190171) +++ community-i686/gitlab-runner.tmpfiles 2016-09-22 21:29:29 UTC (rev 190172) @@ -1 +0,0 @@ -d /var/lib/gitlab-runner 0700 gitlab-runner gitlab-runner - Copied: gitlab-ci-multi-runner/repos/community-i686/gitlab-runner.tmpfiles (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.tmpfiles) =================================================================== --- community-i686/gitlab-runner.tmpfiles (rev 0) +++ community-i686/gitlab-runner.tmpfiles 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1 @@ +d /var/lib/gitlab-runner 0700 gitlab-runner gitlab-runner - Deleted: community-i686/godeps.patch =================================================================== --- community-i686/godeps.patch 2016-09-22 21:29:11 UTC (rev 190171) +++ community-i686/godeps.patch 2016-09-22 21:29:29 UTC (rev 190172) @@ -1,30 +0,0 @@ ---- Godeps/Godeps.json 2016-08-22 16:43:27.000000000 +0200 -+++ Godeps/Godeps.json 2016-09-02 14:07:53.703466326 +0200 -@@ -153,26 +153,6 @@ - "Rev": "1f22c0103821b9390939b6776727195525381532" - }, - { -- "ImportPath": "golang.org/x/sys/windows", -- "Rev": "98fc11432b951eb53c62602ba4ae99d03c1fb7e2" -- }, -- { -- "ImportPath": "golang.org/x/sys/windows/registry", -- "Rev": "98fc11432b951eb53c62602ba4ae99d03c1fb7e2" -- }, -- { -- "ImportPath": "golang.org/x/sys/windows/svc", -- "Rev": "98fc11432b951eb53c62602ba4ae99d03c1fb7e2" -- }, -- { -- "ImportPath": "golang.org/x/sys/windows/svc/eventlog", -- "Rev": "98fc11432b951eb53c62602ba4ae99d03c1fb7e2" -- }, -- { -- "ImportPath": "golang.org/x/sys/windows/svc/mgr", -- "Rev": "98fc11432b951eb53c62602ba4ae99d03c1fb7e2" -- }, -- { - "ImportPath": "gopkg.in/yaml.v1", - "Rev": "9f9df34309c04878acc86042b16630b0f696e1de" - } - Deleted: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD 2016-09-22 21:29:11 UTC (rev 190171) +++ community-x86_64/PKGBUILD 2016-09-22 21:29:29 UTC (rev 190172) @@ -1,80 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> - -pkgname=gitlab-ci-multi-runner -pkgver=1.5.2 -pkgrel=1 -pkgdesc="The official GitLab CI runner written in Go" -arch=('i686' 'x86_64') -url='https://gitlab.com/gitlab-org/gitlab-ci-multi-runner' -license=('GPL3') -depends=('ca-certificates' 'curl' 'git' 'glibc' 'tar') -makedepends=('git' 'go' 'godep' 'go-bindata' 'mercurial') -install='gitlab-runner.install' -backup=('etc/gitlab-runner/config.toml') -noextract=('prebuilt-x86_64.tar.xz' - 'prebuilt-arm.tar.xz') -source=("${pkgname}-${pkgver}.tar.gz"::"https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/repository/archive.tar.gz?ref=v${pkgver}" - "https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/v${pkgver}/docker/prebuilt-x86_64.tar.xz" - "https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/v${pkgver}/docker/prebuilt-arm.tar.xz" - "gitlab-runner.install" - "gitlab-runner.service" - "gitlab-runner.sysusers" - "gitlab-runner.tmpfiles" - "config.toml" - "godeps.patch") -sha256sums=('fbade53f2603187207fc7a58b8dc8fcdc5c089c8405cc136edbc715079caad19' - '265a49a8ecb5a4ca3fe51c66baca2a8e82608e37fbe487e261bfe72d83dc5902' - '951b4ee84fcab0c63e80d70fe78774a32eb96bff65266417d4f6e4aeb8fe7e64' - '289f73a16df5c8823a15b67a4aaa635d32b9c49ce4e11baa5d33f12828a1e0bb' - '843cabc4e1cfbf0a81365abae0c3d6ac388c00074017f9c286a7d5545828d1fa' - '0d7621aec132ce44d7dadbe6c5f43b330af5c1dddfe06c958336a297e70c5bba' - '8b17ed458da6926ea0d28aa4cb307b42b047bda9dfa4a96ee48e1c02051efb13' - 'b1f7d9a6a0148884528584909729cce817253759650da61d641e2225845f9330' - 'e75aafe94fe0029e42267e459a1c2d1edae1c3f8d4914af353fc005fef74a828') - -prepare() { - _srcdir=$(ls "${srcdir}" | grep -E "${pkgname}-v${pkgver}-[0-9a-f]{40}") - - mkdir -p "${srcdir}/src/gitlab.com/gitlab-org/" - - ln -sf "${srcdir}/${_srcdir}" "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" - - cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" - - # Patch invalid windows packages in Godeps/Godeps.json - patch -p0 -i "${srcdir}/godeps.patch" - - GOPATH="${srcdir}" godep restore - - ln -sf "${srcdir}/prebuilt-x86_64.tar.xz" prebuilt-x86_64.tar.xz - ln -sf "${srcdir}/prebuilt-x86_64.tar.xz" prebuilt-arm.tar.xz -} - -build() { - _rev=$(ls "${srcdir}" | grep -Po "${pkgname}-v${pkgver}-\K([0-9a-f]{7})") - - cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" - - GOPATH="${srcdir}" go-bindata \ - -pkg docker \ - -nocompress \ - -nomemcopy \ - -prefix out/docker/ \ - -o executors/docker/bindata.go \ - prebuilt-x86_64.tar.xz \ - prebuilt-arm.tar.xz - - GOPATH="${srcdir}" go build \ - -ldflags "-X main.NAME=${pkgname} -X main.VERSION=${pkgver} -X main.REVISION=${_rev}" -} - -package() { - cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" - - install -Dm644 "${srcdir}/config.toml" "${pkgdir}/etc/gitlab-runner/config.toml" - install -Dm644 "${srcdir}/gitlab-runner.service" "${pkgdir}/usr/lib/systemd/system/gitlab-runner.service" - install -Dm644 "${srcdir}/gitlab-runner.sysusers" "${pkgdir}/usr/lib/sysusers.d/gitlab-runner.conf" - install -Dm644 "${srcdir}/gitlab-runner.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/gitlab-runner.conf" - install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" -} Copied: gitlab-ci-multi-runner/repos/community-x86_64/PKGBUILD (from rev 190171, gitlab-ci-multi-runner/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1,75 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> + +pkgname=gitlab-ci-multi-runner +pkgver=1.6.0 +pkgrel=1 +pkgdesc="The official GitLab CI runner written in Go" +arch=('i686' 'x86_64') +url='https://gitlab.com/gitlab-org/gitlab-ci-multi-runner' +license=('GPL3') +depends=('ca-certificates' 'curl' 'git' 'glibc' 'tar') +makedepends=('git' 'go' 'godep' 'go-bindata' 'mercurial') +install='gitlab-runner.install' +backup=('etc/gitlab-runner/config.toml') +noextract=('prebuilt-x86_64.tar.xz' + 'prebuilt-arm.tar.xz') +source=("${pkgname}-${pkgver}.tar.gz"::"https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/repository/archive.tar.gz?ref=v${pkgver}" + "https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/master/docker/prebuilt-x86_64.tar.xz" + "https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/master/docker/prebuilt-arm.tar.xz" + "gitlab-runner.install" + "gitlab-runner.service" + "gitlab-runner.sysusers" + "gitlab-runner.tmpfiles" + "config.toml") +sha256sums=('219031680b386436ec7b7affc004c2388e6772bb8cce6d554c5b564918bce720' + '2c0d97469a124956d7f71601848dadd0df644e2bd8e8555d0deb4e7f47c7be52' + 'fc5ad1eb24104e453ff4412fbf4bd304e0d04ffeb7ce3f4d0440e6328ddf474f' + 'd8b75e676727989115ab11d6a74281de61daed64a72dcc21d98814e845cdcf91' + '843cabc4e1cfbf0a81365abae0c3d6ac388c00074017f9c286a7d5545828d1fa' + '0d7621aec132ce44d7dadbe6c5f43b330af5c1dddfe06c958336a297e70c5bba' + '8b17ed458da6926ea0d28aa4cb307b42b047bda9dfa4a96ee48e1c02051efb13' + 'b1f7d9a6a0148884528584909729cce817253759650da61d641e2225845f9330') + +prepare() { + _srcdir=$(ls "${srcdir}" | grep -E "${pkgname}-v${pkgver}-[0-9a-f]{40}") + + mkdir -p "${srcdir}/src/gitlab.com/gitlab-org/" + + ln -sf "${srcdir}/${_srcdir}" "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" + + cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" + + GOPATH="${srcdir}" godep restore + + ln -sf "${srcdir}/prebuilt-x86_64.tar.xz" prebuilt-x86_64.tar.xz + ln -sf "${srcdir}/prebuilt-x86_64.tar.xz" prebuilt-arm.tar.xz +} + +build() { + _rev=$(ls "${srcdir}" | grep -Po "${pkgname}-v${pkgver}-\K([0-9a-f]{7})") + + cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" + + GOPATH="${srcdir}" go-bindata \ + -pkg docker \ + -nocompress \ + -nomemcopy \ + -prefix out/docker/ \ + -o executors/docker/bindata.go \ + prebuilt-x86_64.tar.xz \ + prebuilt-arm.tar.xz + + GOPATH="${srcdir}" go build \ + -ldflags "-X main.NAME=${pkgname} -X main.VERSION=${pkgver} -X main.REVISION=${_rev}" +} + +package() { + cd "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}" + + install -Dm644 "${srcdir}/config.toml" "${pkgdir}/etc/gitlab-runner/config.toml" + install -Dm644 "${srcdir}/gitlab-runner.service" "${pkgdir}/usr/lib/systemd/system/gitlab-runner.service" + install -Dm644 "${srcdir}/gitlab-runner.sysusers" "${pkgdir}/usr/lib/sysusers.d/gitlab-runner.conf" + install -Dm644 "${srcdir}/gitlab-runner.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/gitlab-runner.conf" + install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" +} Deleted: community-x86_64/config.toml =================================================================== --- community-x86_64/config.toml 2016-09-22 21:29:11 UTC (rev 190171) +++ community-x86_64/config.toml 2016-09-22 21:29:29 UTC (rev 190172) @@ -1 +0,0 @@ -concurrent = 4 Copied: gitlab-ci-multi-runner/repos/community-x86_64/config.toml (from rev 190171, gitlab-ci-multi-runner/trunk/config.toml) =================================================================== --- community-x86_64/config.toml (rev 0) +++ community-x86_64/config.toml 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1 @@ +concurrent = 4 Deleted: community-x86_64/gitlab-runner.install =================================================================== --- community-x86_64/gitlab-runner.install 2016-09-22 21:29:11 UTC (rev 190171) +++ community-x86_64/gitlab-runner.install 2016-09-22 21:29:29 UTC (rev 190172) @@ -1,8 +0,0 @@ -post_install() { - systemd-sysusers gitlab-runner.conf - systemd-tmpfiles --create gitlab-runner.conf - echo "Register the runner as root using" - echo "# gitlab-ci-multi-runner register" - echo "Configure the runner in /etc/gitlab-runner/config.toml" - echo "Use gitlab-runner.service to control the runner" -} Copied: gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.install (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.install) =================================================================== --- community-x86_64/gitlab-runner.install (rev 0) +++ community-x86_64/gitlab-runner.install 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1,8 @@ +post_install() { + systemd-sysusers gitlab-runner.conf + systemd-tmpfiles --create gitlab-runner.conf + echo "Register the runner as root using" + echo "# gitlab-ci-multi-runner register" + echo "Configure the runner in /etc/gitlab-runner/config.toml" + echo "Use gitlab-runner.service to control the runner" +} Deleted: community-x86_64/gitlab-runner.service =================================================================== --- community-x86_64/gitlab-runner.service 2016-09-22 21:29:11 UTC (rev 190171) +++ community-x86_64/gitlab-runner.service 2016-09-22 21:29:29 UTC (rev 190172) @@ -1,17 +0,0 @@ -[Unit] -Description=GitLab Runner -After=syslog.target network.target -ConditionFileIsExecutable=/usr/bin/gitlab-ci-multi-runner - -[Service] -StartLimitInterval=5 -StartLimitBurst=10 -ExecStart=/usr/bin/gitlab-ci-multi-runner "run" "--working-directory" "/var/lib/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" "--service" "gitlab-runner" "--user" "gitlab-runner" -Restart=always -RestartSec=120 -StandardOutput=syslog -StandardError=syslog -SyslogIdentifier=gitlab-runner - -[Install] -WantedBy=multi-user.target Copied: gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.service (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.service) =================================================================== --- community-x86_64/gitlab-runner.service (rev 0) +++ community-x86_64/gitlab-runner.service 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1,17 @@ +[Unit] +Description=GitLab Runner +After=syslog.target network.target +ConditionFileIsExecutable=/usr/bin/gitlab-ci-multi-runner + +[Service] +StartLimitInterval=5 +StartLimitBurst=10 +ExecStart=/usr/bin/gitlab-ci-multi-runner "run" "--working-directory" "/var/lib/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" "--service" "gitlab-runner" "--user" "gitlab-runner" +Restart=always +RestartSec=120 +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=gitlab-runner + +[Install] +WantedBy=multi-user.target Deleted: community-x86_64/gitlab-runner.sysusers =================================================================== --- community-x86_64/gitlab-runner.sysusers 2016-09-22 21:29:11 UTC (rev 190171) +++ community-x86_64/gitlab-runner.sysusers 2016-09-22 21:29:29 UTC (rev 190172) @@ -1 +0,0 @@ -u gitlab-runner 107 "GitLab Runner" /var/lib/gitlab-runner Copied: gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.sysusers (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.sysusers) =================================================================== --- community-x86_64/gitlab-runner.sysusers (rev 0) +++ community-x86_64/gitlab-runner.sysusers 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1 @@ +u gitlab-runner 107 "GitLab Runner" /var/lib/gitlab-runner Deleted: community-x86_64/gitlab-runner.tmpfiles =================================================================== --- community-x86_64/gitlab-runner.tmpfiles 2016-09-22 21:29:11 UTC (rev 190171) +++ community-x86_64/gitlab-runner.tmpfiles 2016-09-22 21:29:29 UTC (rev 190172) @@ -1 +0,0 @@ -d /var/lib/gitlab-runner 0700 gitlab-runner gitlab-runner - Copied: gitlab-ci-multi-runner/repos/community-x86_64/gitlab-runner.tmpfiles (from rev 190171, gitlab-ci-multi-runner/trunk/gitlab-runner.tmpfiles) =================================================================== --- community-x86_64/gitlab-runner.tmpfiles (rev 0) +++ community-x86_64/gitlab-runner.tmpfiles 2016-09-22 21:29:29 UTC (rev 190172) @@ -0,0 +1 @@ +d /var/lib/gitlab-runner 0700 gitlab-runner gitlab-runner - Deleted: community-x86_64/godeps.patch =================================================================== --- community-x86_64/godeps.patch 2016-09-22 21:29:11 UTC (rev 190171) +++ community-x86_64/godeps.patch 2016-09-22 21:29:29 UTC (rev 190172) @@ -1,30 +0,0 @@ ---- Godeps/Godeps.json 2016-08-22 16:43:27.000000000 +0200 -+++ Godeps/Godeps.json 2016-09-02 14:07:53.703466326 +0200 -@@ -153,26 +153,6 @@ - "Rev": "1f22c0103821b9390939b6776727195525381532" - }, - { -- "ImportPath": "golang.org/x/sys/windows", -- "Rev": "98fc11432b951eb53c62602ba4ae99d03c1fb7e2" -- }, -- { -- "ImportPath": "golang.org/x/sys/windows/registry", -- "Rev": "98fc11432b951eb53c62602ba4ae99d03c1fb7e2" -- }, -- { -- "ImportPath": "golang.org/x/sys/windows/svc", -- "Rev": "98fc11432b951eb53c62602ba4ae99d03c1fb7e2" -- }, -- { -- "ImportPath": "golang.org/x/sys/windows/svc/eventlog", -- "Rev": "98fc11432b951eb53c62602ba4ae99d03c1fb7e2" -- }, -- { -- "ImportPath": "golang.org/x/sys/windows/svc/mgr", -- "Rev": "98fc11432b951eb53c62602ba4ae99d03c1fb7e2" -- }, -- { - "ImportPath": "gopkg.in/yaml.v1", - "Rev": "9f9df34309c04878acc86042b16630b0f696e1de" - } -