[arch-commits] Commit in gitlab-workhorse/repos (3 files)

Anatol Pomozov anatolik at archlinux.org
Wed May 27 19:27:08 UTC 2020


    Date: Wednesday, May 27, 2020 @ 19:27:07
  Author: anatolik
Revision: 636012

archrelease: copy trunk to community-testing-x86_64

Added:
  gitlab-workhorse/repos/community-testing-x86_64/
  gitlab-workhorse/repos/community-testing-x86_64/PKGBUILD
    (from rev 636009, gitlab-workhorse/trunk/PKGBUILD)
  gitlab-workhorse/repos/community-testing-x86_64/gitlab-workhorse.service
    (from rev 636009, gitlab-workhorse/trunk/gitlab-workhorse.service)

--------------------------+
 PKGBUILD                 |   40 ++++++++++++++++++++++++++++++++++++++++
 gitlab-workhorse.service |   22 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)

Copied: gitlab-workhorse/repos/community-testing-x86_64/PKGBUILD (from rev 636009, gitlab-workhorse/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-05-27 19:27:07 UTC (rev 636012)
@@ -0,0 +1,40 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Pavol (Lopo) Hluchy <lopo AT losys DOT eu>
+
+pkgname=gitlab-workhorse
+pkgver=8.32.1
+pkgrel=1
+pkgdesc="HTTP server to unload Git HTTP traffic from GitLab Rails app (Unicorn)"
+arch=('x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-workhorse"
+license=('MIT')
+depends=('glibc' 'perl-image-exiftool')
+makedepends=('go')
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-workhorse/repository/archive?sha=v${pkgver}"
+        "gitlab-workhorse.service")
+sha512sums=('894f704e0b5ea2cb2b896db3e79600b880e7029a473b8db580c6c2fa10b641561334d72a722ef260d783674c5a4445bd615542f4a4a08e8e72711d2b3419ce63'
+            '5cec3ac883759ebb0e0c1e6074610b9cdc0d79370b1228acb3a96081a6d843c5a8bfbeb912ce1599058ee3842577c09d147ebf04ce7a760032ef485c4ba8f87a')
+
+build() {
+  cd "${pkgname}-v${pkgver}-"*
+
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  make
+}
+
+package() {
+  cd "${pkgname}-v${pkgver}-"*
+
+  install -Dm755 "gitlab-workhorse" "${pkgdir}/usr/bin/gitlab-workhorse"
+  install -Dm755 "gitlab-zip-cat" "${pkgdir}/usr/bin/gitlab-zip-cat"
+  install -Dm755 "gitlab-zip-metadata" "${pkgdir}/usr/bin/gitlab-zip-metadata"
+  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm0644 "${srcdir}/gitlab-workhorse.service" "${pkgdir}/usr/lib/systemd/system/gitlab-workhorse.service"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: gitlab-workhorse/repos/community-testing-x86_64/gitlab-workhorse.service (from rev 636009, gitlab-workhorse/trunk/gitlab-workhorse.service)
===================================================================
--- community-testing-x86_64/gitlab-workhorse.service	                        (rev 0)
+++ community-testing-x86_64/gitlab-workhorse.service	2020-05-27 19:27:07 UTC (rev 636012)
@@ -0,0 +1,22 @@
+[Unit]
+Description=Gitlab Workhorse
+Requires=gitlab-puma.service
+After=gitlab-puma.service
+
+[Service]
+User=gitlab
+Group=gitlab
+WorkingDirectory=/usr/share/webapps/gitlab
+SyslogIdentifier=gitlab-workhorse
+CapabilityBoundingSet=
+ProtectSystem=full
+ProtectHome=true
+NoNewPrivileges=true
+ExecStart=/bin/bash -c "source /etc/profile.d/perlbin.sh; exec /usr/bin/gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr /run/gitlab/gitlab-workhorse.socket -authBackend http://localhost:8080 -authSocket /run/gitlab/gitlab.socket -documentRoot /usr/share/webapps/gitlab/public"
+ExecStop=/usr/bin/kill -QUIT $MAINPID
+ExecReload=/usr/bin/kill -USR2 $MAINPID
+Restart=on-failure
+RestartSec=1
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list