Date: Sunday, April 23, 2017 @ 02:02:26 Author: svenstaro Revision: 224439
archrelease: copy trunk to community-i686, community-x86_64 Added: gitlab-runner/repos/community-i686/PKGBUILD (from rev 224438, gitlab-runner/trunk/PKGBUILD) gitlab-runner/repos/community-i686/config.toml (from rev 224438, gitlab-runner/trunk/config.toml) gitlab-runner/repos/community-i686/gitlab-runner.install (from rev 224438, gitlab-runner/trunk/gitlab-runner.install) gitlab-runner/repos/community-i686/gitlab-runner.service (from rev 224438, gitlab-runner/trunk/gitlab-runner.service) gitlab-runner/repos/community-i686/gitlab-runner.sysusers (from rev 224438, gitlab-runner/trunk/gitlab-runner.sysusers) gitlab-runner/repos/community-i686/gitlab-runner.tmpfiles (from rev 224438, gitlab-runner/trunk/gitlab-runner.tmpfiles) gitlab-runner/repos/community-x86_64/PKGBUILD (from rev 224438, gitlab-runner/trunk/PKGBUILD) gitlab-runner/repos/community-x86_64/config.toml (from rev 224438, gitlab-runner/trunk/config.toml) gitlab-runner/repos/community-x86_64/gitlab-runner.install (from rev 224438, gitlab-runner/trunk/gitlab-runner.install) gitlab-runner/repos/community-x86_64/gitlab-runner.service (from rev 224438, gitlab-runner/trunk/gitlab-runner.service) gitlab-runner/repos/community-x86_64/gitlab-runner.sysusers (from rev 224438, gitlab-runner/trunk/gitlab-runner.sysusers) gitlab-runner/repos/community-x86_64/gitlab-runner.tmpfiles (from rev 224438, gitlab-runner/trunk/gitlab-runner.tmpfiles) Deleted: gitlab-runner/repos/community-i686/PKGBUILD gitlab-runner/repos/community-i686/config.toml gitlab-runner/repos/community-i686/gitlab-runner.install gitlab-runner/repos/community-i686/gitlab-runner.service gitlab-runner/repos/community-i686/gitlab-runner.sysusers gitlab-runner/repos/community-i686/gitlab-runner.tmpfiles gitlab-runner/repos/community-x86_64/PKGBUILD gitlab-runner/repos/community-x86_64/config.toml gitlab-runner/repos/community-x86_64/gitlab-runner.install gitlab-runner/repos/community-x86_64/gitlab-runner.service gitlab-runner/repos/community-x86_64/gitlab-runner.sysusers gitlab-runner/repos/community-x86_64/gitlab-runner.tmpfiles -----------------------------------------+ /PKGBUILD | 148 ++++++++++++++++++++++++++++++ /config.toml | 2 /gitlab-runner.install | 16 +++ /gitlab-runner.service | 34 ++++++ /gitlab-runner.sysusers | 2 /gitlab-runner.tmpfiles | 2 community-i686/PKGBUILD | 74 --------------- 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-x86_64/PKGBUILD | 74 --------------- 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 18 files changed, 204 insertions(+), 204 deletions(-) Deleted: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD 2017-04-23 02:02:15 UTC (rev 224438) +++ community-i686/PKGBUILD 2017-04-23 02:02:26 UTC (rev 224439) @@ -1,74 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> - -pkgname=gitlab-runner -pkgver=9.0.1 -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' 'git' 'go-bindata' 'mercurial') -install='gitlab-runner.install' -replaces=('gitlab-ci-multi-runner') -backup=('etc/gitlab-runner/config.toml') -noextract=('prebuilt-x86_64.tar.xz' - 'prebuilt-arm.tar.xz') - -# Note: This should be built using git because the runner gets its version information from there and I -# haven't found the place to patch that yet. -source=("git+https://gitlab.com/gitlab-org/gitlab-ci-multi-runner.git#tag=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") -sha512sums=('SKIP' - 'a584bc59a4a029a9e7c1a32d8f67db1f94a5173b0f5457b677a435601f02842a8ea248ef48c26314c4b53b61dc34db625f4277ddd5b753fd0811af7c8bc3e459' - '7d63be0e8b54b978acf2a44d28540217da1927d25246879d33720241ea20c473acecd7686e944bcbe76a6c0b98606d829d909f8e8699b78b72aaa9fd3243b19f' - 'd5888f378c5b12b84e4238b191ef56a97a81c9073d27dcb47065998f0a1f6caf9f13314ae908e72a06f4d29d1bd1f4f72338c97268391e2c98706216c8281f3e' - 'ed24841242a56a3b10dd80cd23e0c980f6bbe5fd0ebd4c6b46529947e4920cc9c03e4f4b239da8a798c801a6cdd757415113f97e45c1032f2c519fdaec4d3ae0' - '8aa7f08702e99053c696fcc2aaba83beb9e9cd6f31973d82862db9350ac46df3a095377625d31fe909677525290d2de922d7a97930ed235774cb8f0da8944d40' - '6751d9fa0b27172d1b419c4138f5ac15cbc7c9147653a7258cf1470216142c637210bb60608c7ed0974e0e4057e5ddeae32225df1bb36e7dd1f20fec71e33cc3' - 'f39c23fc06636f31c3fadb9a630c54527e8255098f18d275772cb30875d0a7463717101704070d432f2b69ab71f076a9538172a439bc307722dad2c7e260f752') - -prepare() { - mkdir -p "${srcdir}/src/gitlab.com/gitlab-org/" - ln -sf "${srcdir}/gitlab-ci-multi-runner" "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" - cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" - - export GOPATH="${srcdir}" - make deps - - 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() { - cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" - - 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 -} - -package() { - cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" - - 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 "gitlab-ci-multi-runner" "${pkgdir}/usr/bin/gitlab-ci-multi-runner" - ln -s /usr/bin/gitlab-ci-multi-runner "${pkgdir}/usr/bin/gitlab-runner" -} Copied: gitlab-runner/repos/community-i686/PKGBUILD (from rev 224438, gitlab-runner/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2017-04-23 02:02:26 UTC (rev 224439) @@ -0,0 +1,74 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> + +pkgname=gitlab-runner +pkgver=9.1.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' 'git' 'go-bindata' 'mercurial') +install='gitlab-runner.install' +replaces=('gitlab-ci-multi-runner') +backup=('etc/gitlab-runner/config.toml') +noextract=('prebuilt-x86_64.tar.xz' + 'prebuilt-arm.tar.xz') + +# Note: This should be built using git because the runner gets its version information from there and I +# haven't found the place to patch that yet. +source=("git+https://gitlab.com/gitlab-org/gitlab-ci-multi-runner.git#tag=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") +sha512sums=('SKIP' + 'aed7657428ae824166c9e62c846f4d78dd1d85fa8a9dd2f7df58f6b470ed197f850a15ac703caadf57f9090d4c9a9b15b6f10194b5e1c3fd14bab1e246a0fba3' + '54d90cc433e8a0d84790001538607e4fb158ce1dadcc450508fd93dfa509bb3af71ec6740bedccf9abfd7e3a8551a1716ba1660db5a7d1c5d8fa8cea4404c15f' + 'd5888f378c5b12b84e4238b191ef56a97a81c9073d27dcb47065998f0a1f6caf9f13314ae908e72a06f4d29d1bd1f4f72338c97268391e2c98706216c8281f3e' + 'ed24841242a56a3b10dd80cd23e0c980f6bbe5fd0ebd4c6b46529947e4920cc9c03e4f4b239da8a798c801a6cdd757415113f97e45c1032f2c519fdaec4d3ae0' + '8aa7f08702e99053c696fcc2aaba83beb9e9cd6f31973d82862db9350ac46df3a095377625d31fe909677525290d2de922d7a97930ed235774cb8f0da8944d40' + '6751d9fa0b27172d1b419c4138f5ac15cbc7c9147653a7258cf1470216142c637210bb60608c7ed0974e0e4057e5ddeae32225df1bb36e7dd1f20fec71e33cc3' + 'f39c23fc06636f31c3fadb9a630c54527e8255098f18d275772cb30875d0a7463717101704070d432f2b69ab71f076a9538172a439bc307722dad2c7e260f752') + +prepare() { + mkdir -p "${srcdir}/src/gitlab.com/gitlab-org/" + ln -sf "${srcdir}/gitlab-ci-multi-runner" "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" + cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" + + export GOPATH="${srcdir}" + make deps + + 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() { + cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" + + 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 +} + +package() { + cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" + + 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 "gitlab-ci-multi-runner" "${pkgdir}/usr/bin/gitlab-ci-multi-runner" + ln -s /usr/bin/gitlab-ci-multi-runner "${pkgdir}/usr/bin/gitlab-runner" +} Deleted: community-i686/config.toml =================================================================== --- community-i686/config.toml 2017-04-23 02:02:15 UTC (rev 224438) +++ community-i686/config.toml 2017-04-23 02:02:26 UTC (rev 224439) @@ -1 +0,0 @@ -concurrent = 4 Copied: gitlab-runner/repos/community-i686/config.toml (from rev 224438, gitlab-runner/trunk/config.toml) =================================================================== --- community-i686/config.toml (rev 0) +++ community-i686/config.toml 2017-04-23 02:02:26 UTC (rev 224439) @@ -0,0 +1 @@ +concurrent = 4 Deleted: community-i686/gitlab-runner.install =================================================================== --- community-i686/gitlab-runner.install 2017-04-23 02:02:15 UTC (rev 224438) +++ community-i686/gitlab-runner.install 2017-04-23 02:02:26 UTC (rev 224439) @@ -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-runner/repos/community-i686/gitlab-runner.install (from rev 224438, gitlab-runner/trunk/gitlab-runner.install) =================================================================== --- community-i686/gitlab-runner.install (rev 0) +++ community-i686/gitlab-runner.install 2017-04-23 02:02:26 UTC (rev 224439) @@ -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 2017-04-23 02:02:15 UTC (rev 224438) +++ community-i686/gitlab-runner.service 2017-04-23 02:02:26 UTC (rev 224439) @@ -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-runner/repos/community-i686/gitlab-runner.service (from rev 224438, gitlab-runner/trunk/gitlab-runner.service) =================================================================== --- community-i686/gitlab-runner.service (rev 0) +++ community-i686/gitlab-runner.service 2017-04-23 02:02:26 UTC (rev 224439) @@ -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 2017-04-23 02:02:15 UTC (rev 224438) +++ community-i686/gitlab-runner.sysusers 2017-04-23 02:02:26 UTC (rev 224439) @@ -1 +0,0 @@ -u gitlab-runner 107 "GitLab Runner" /var/lib/gitlab-runner Copied: gitlab-runner/repos/community-i686/gitlab-runner.sysusers (from rev 224438, gitlab-runner/trunk/gitlab-runner.sysusers) =================================================================== --- community-i686/gitlab-runner.sysusers (rev 0) +++ community-i686/gitlab-runner.sysusers 2017-04-23 02:02:26 UTC (rev 224439) @@ -0,0 +1 @@ +u gitlab-runner 107 "GitLab Runner" /var/lib/gitlab-runner Deleted: community-i686/gitlab-runner.tmpfiles =================================================================== --- community-i686/gitlab-runner.tmpfiles 2017-04-23 02:02:15 UTC (rev 224438) +++ community-i686/gitlab-runner.tmpfiles 2017-04-23 02:02:26 UTC (rev 224439) @@ -1 +0,0 @@ -d /var/lib/gitlab-runner 0700 gitlab-runner gitlab-runner - Copied: gitlab-runner/repos/community-i686/gitlab-runner.tmpfiles (from rev 224438, gitlab-runner/trunk/gitlab-runner.tmpfiles) =================================================================== --- community-i686/gitlab-runner.tmpfiles (rev 0) +++ community-i686/gitlab-runner.tmpfiles 2017-04-23 02:02:26 UTC (rev 224439) @@ -0,0 +1 @@ +d /var/lib/gitlab-runner 0700 gitlab-runner gitlab-runner - Deleted: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD 2017-04-23 02:02:15 UTC (rev 224438) +++ community-x86_64/PKGBUILD 2017-04-23 02:02:26 UTC (rev 224439) @@ -1,74 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> - -pkgname=gitlab-runner -pkgver=9.0.1 -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' 'git' 'go-bindata' 'mercurial') -install='gitlab-runner.install' -replaces=('gitlab-ci-multi-runner') -backup=('etc/gitlab-runner/config.toml') -noextract=('prebuilt-x86_64.tar.xz' - 'prebuilt-arm.tar.xz') - -# Note: This should be built using git because the runner gets its version information from there and I -# haven't found the place to patch that yet. -source=("git+https://gitlab.com/gitlab-org/gitlab-ci-multi-runner.git#tag=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") -sha512sums=('SKIP' - 'a584bc59a4a029a9e7c1a32d8f67db1f94a5173b0f5457b677a435601f02842a8ea248ef48c26314c4b53b61dc34db625f4277ddd5b753fd0811af7c8bc3e459' - '7d63be0e8b54b978acf2a44d28540217da1927d25246879d33720241ea20c473acecd7686e944bcbe76a6c0b98606d829d909f8e8699b78b72aaa9fd3243b19f' - 'd5888f378c5b12b84e4238b191ef56a97a81c9073d27dcb47065998f0a1f6caf9f13314ae908e72a06f4d29d1bd1f4f72338c97268391e2c98706216c8281f3e' - 'ed24841242a56a3b10dd80cd23e0c980f6bbe5fd0ebd4c6b46529947e4920cc9c03e4f4b239da8a798c801a6cdd757415113f97e45c1032f2c519fdaec4d3ae0' - '8aa7f08702e99053c696fcc2aaba83beb9e9cd6f31973d82862db9350ac46df3a095377625d31fe909677525290d2de922d7a97930ed235774cb8f0da8944d40' - '6751d9fa0b27172d1b419c4138f5ac15cbc7c9147653a7258cf1470216142c637210bb60608c7ed0974e0e4057e5ddeae32225df1bb36e7dd1f20fec71e33cc3' - 'f39c23fc06636f31c3fadb9a630c54527e8255098f18d275772cb30875d0a7463717101704070d432f2b69ab71f076a9538172a439bc307722dad2c7e260f752') - -prepare() { - mkdir -p "${srcdir}/src/gitlab.com/gitlab-org/" - ln -sf "${srcdir}/gitlab-ci-multi-runner" "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" - cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" - - export GOPATH="${srcdir}" - make deps - - 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() { - cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" - - 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 -} - -package() { - cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" - - 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 "gitlab-ci-multi-runner" "${pkgdir}/usr/bin/gitlab-ci-multi-runner" - ln -s /usr/bin/gitlab-ci-multi-runner "${pkgdir}/usr/bin/gitlab-runner" -} Copied: gitlab-runner/repos/community-x86_64/PKGBUILD (from rev 224438, gitlab-runner/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2017-04-23 02:02:26 UTC (rev 224439) @@ -0,0 +1,74 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> + +pkgname=gitlab-runner +pkgver=9.1.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' 'git' 'go-bindata' 'mercurial') +install='gitlab-runner.install' +replaces=('gitlab-ci-multi-runner') +backup=('etc/gitlab-runner/config.toml') +noextract=('prebuilt-x86_64.tar.xz' + 'prebuilt-arm.tar.xz') + +# Note: This should be built using git because the runner gets its version information from there and I +# haven't found the place to patch that yet. +source=("git+https://gitlab.com/gitlab-org/gitlab-ci-multi-runner.git#tag=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") +sha512sums=('SKIP' + 'aed7657428ae824166c9e62c846f4d78dd1d85fa8a9dd2f7df58f6b470ed197f850a15ac703caadf57f9090d4c9a9b15b6f10194b5e1c3fd14bab1e246a0fba3' + '54d90cc433e8a0d84790001538607e4fb158ce1dadcc450508fd93dfa509bb3af71ec6740bedccf9abfd7e3a8551a1716ba1660db5a7d1c5d8fa8cea4404c15f' + 'd5888f378c5b12b84e4238b191ef56a97a81c9073d27dcb47065998f0a1f6caf9f13314ae908e72a06f4d29d1bd1f4f72338c97268391e2c98706216c8281f3e' + 'ed24841242a56a3b10dd80cd23e0c980f6bbe5fd0ebd4c6b46529947e4920cc9c03e4f4b239da8a798c801a6cdd757415113f97e45c1032f2c519fdaec4d3ae0' + '8aa7f08702e99053c696fcc2aaba83beb9e9cd6f31973d82862db9350ac46df3a095377625d31fe909677525290d2de922d7a97930ed235774cb8f0da8944d40' + '6751d9fa0b27172d1b419c4138f5ac15cbc7c9147653a7258cf1470216142c637210bb60608c7ed0974e0e4057e5ddeae32225df1bb36e7dd1f20fec71e33cc3' + 'f39c23fc06636f31c3fadb9a630c54527e8255098f18d275772cb30875d0a7463717101704070d432f2b69ab71f076a9538172a439bc307722dad2c7e260f752') + +prepare() { + mkdir -p "${srcdir}/src/gitlab.com/gitlab-org/" + ln -sf "${srcdir}/gitlab-ci-multi-runner" "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" + cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" + + export GOPATH="${srcdir}" + make deps + + 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() { + cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" + + 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 +} + +package() { + cd "${srcdir}/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner" + + 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 "gitlab-ci-multi-runner" "${pkgdir}/usr/bin/gitlab-ci-multi-runner" + ln -s /usr/bin/gitlab-ci-multi-runner "${pkgdir}/usr/bin/gitlab-runner" +} Deleted: community-x86_64/config.toml =================================================================== --- community-x86_64/config.toml 2017-04-23 02:02:15 UTC (rev 224438) +++ community-x86_64/config.toml 2017-04-23 02:02:26 UTC (rev 224439) @@ -1 +0,0 @@ -concurrent = 4 Copied: gitlab-runner/repos/community-x86_64/config.toml (from rev 224438, gitlab-runner/trunk/config.toml) =================================================================== --- community-x86_64/config.toml (rev 0) +++ community-x86_64/config.toml 2017-04-23 02:02:26 UTC (rev 224439) @@ -0,0 +1 @@ +concurrent = 4 Deleted: community-x86_64/gitlab-runner.install =================================================================== --- community-x86_64/gitlab-runner.install 2017-04-23 02:02:15 UTC (rev 224438) +++ community-x86_64/gitlab-runner.install 2017-04-23 02:02:26 UTC (rev 224439) @@ -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-runner/repos/community-x86_64/gitlab-runner.install (from rev 224438, gitlab-runner/trunk/gitlab-runner.install) =================================================================== --- community-x86_64/gitlab-runner.install (rev 0) +++ community-x86_64/gitlab-runner.install 2017-04-23 02:02:26 UTC (rev 224439) @@ -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 2017-04-23 02:02:15 UTC (rev 224438) +++ community-x86_64/gitlab-runner.service 2017-04-23 02:02:26 UTC (rev 224439) @@ -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-runner/repos/community-x86_64/gitlab-runner.service (from rev 224438, gitlab-runner/trunk/gitlab-runner.service) =================================================================== --- community-x86_64/gitlab-runner.service (rev 0) +++ community-x86_64/gitlab-runner.service 2017-04-23 02:02:26 UTC (rev 224439) @@ -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 2017-04-23 02:02:15 UTC (rev 224438) +++ community-x86_64/gitlab-runner.sysusers 2017-04-23 02:02:26 UTC (rev 224439) @@ -1 +0,0 @@ -u gitlab-runner 107 "GitLab Runner" /var/lib/gitlab-runner Copied: gitlab-runner/repos/community-x86_64/gitlab-runner.sysusers (from rev 224438, gitlab-runner/trunk/gitlab-runner.sysusers) =================================================================== --- community-x86_64/gitlab-runner.sysusers (rev 0) +++ community-x86_64/gitlab-runner.sysusers 2017-04-23 02:02:26 UTC (rev 224439) @@ -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 2017-04-23 02:02:15 UTC (rev 224438) +++ community-x86_64/gitlab-runner.tmpfiles 2017-04-23 02:02:26 UTC (rev 224439) @@ -1 +0,0 @@ -d /var/lib/gitlab-runner 0700 gitlab-runner gitlab-runner - Copied: gitlab-runner/repos/community-x86_64/gitlab-runner.tmpfiles (from rev 224438, gitlab-runner/trunk/gitlab-runner.tmpfiles) =================================================================== --- community-x86_64/gitlab-runner.tmpfiles (rev 0) +++ community-x86_64/gitlab-runner.tmpfiles 2017-04-23 02:02:26 UTC (rev 224439) @@ -0,0 +1 @@ +d /var/lib/gitlab-runner 0700 gitlab-runner gitlab-runner -