[arch-commits] Commit in (5 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon May 2 16:33:32 UTC 2016


    Date: Monday, May 2, 2016 @ 18:33:31
  Author: svenstaro
Revision: 173424

Move gitalb-workhorse from AUR for gitlab

Added:
  gitlab-workhorse/
  gitlab-workhorse/repos/
  gitlab-workhorse/trunk/
  gitlab-workhorse/trunk/PKGBUILD
  gitlab-workhorse/trunk/gitlab-workhorse.service

--------------------------+
 PKGBUILD                 |   32 ++++++++++++++++++++++++++++++++
 gitlab-workhorse.service |   20 ++++++++++++++++++++
 2 files changed, 52 insertions(+)

Added: gitlab-workhorse/trunk/PKGBUILD
===================================================================
--- gitlab-workhorse/trunk/PKGBUILD	                        (rev 0)
+++ gitlab-workhorse/trunk/PKGBUILD	2016-05-02 16:33:31 UTC (rev 173424)
@@ -0,0 +1,32 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Pavol (Lopo) Hluchy <lopo AT losys DOT eu>
+
+pkgname=gitlab-workhorse
+pkgver=0.7.2
+pkgrel=1
+pkgdesc="HTTP server to unload Git HTTP traffic from GitLab Rails app (Unicorn)"
+arch=('i686' 'x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-workhorse"
+license=('MIT')
+makedepends=('go')
+source=("${pkgname}-${pkgver}.tgz::https://gitlab.com/gitlab-org/gitlab-workhorse/repository/archive.tar.gz?ref=${pkgver}"
+        "gitlab-workhorse.service")
+sha256sums=('d0572a901568ba5cf74776dc5cbd0ee140fdacd62c7140c9f5f7cba0dcc456e2'
+            '95fd491795ed837012e71d6c8bececb82b6790a94b96615d4ffb0b018b5b7ea4')
+
+prepare() {
+  ln -sf $(ls ${srcdir} | grep ${pkgname}-${pkgver}-* | grep -v .tgz) ${pkgname}-${pkgver}
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make
+}
+
+package() {
+  install -Dm755 "${srcdir}/${pkgname}-${pkgver}/gitlab-workhorse" "${pkgdir}/usr/bin/gitlab-workhorse"
+  install -Dm0644 "${srcdir}/gitlab-workhorse.service" "${pkgdir}/usr/lib/systemd/system/gitlab-workhorse.service"
+}
+
+# vim:set ts=2 sw=2 et:

Added: gitlab-workhorse/trunk/gitlab-workhorse.service
===================================================================
--- gitlab-workhorse/trunk/gitlab-workhorse.service	                        (rev 0)
+++ gitlab-workhorse/trunk/gitlab-workhorse.service	2016-05-02 16:33:31 UTC (rev 173424)
@@ -0,0 +1,20 @@
+[Unit]
+Description=Gitlab Workhorse
+Requires=gitlab-unicorn.service
+After=gitlab-unicorn.service
+
+[Service]
+User=gitlab
+Group=gitlab
+WorkingDirectory=/usr/share/webapps/gitlab
+SyslogIdentifier=gitlab-workhorse
+CapabilityBoundingSet=
+ProtectSystem=full
+ProtectHome=true
+NoNewPrivileges=true
+ExecStart=/usr/bin/gitlab-workhorse -authBackend http://127.0.0.1:8080 /var/lib/gitlab/repositories
+ExecStop=/usr/bin/kill -QUIT $MAINPID
+ExecReload=/usr/bin/kill -USR2 $MAINPID
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list