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

Sven-Hendrik Haase svenstaro at archlinux.org
Fri Jun 30 11:58:40 UTC 2017


    Date: Friday, June 30, 2017 @ 11:58:39
  Author: svenstaro
Revision: 241675

archrelease: copy trunk to community-x86_64

Added:
  gitlab-gitaly/repos/community-x86_64/
  gitlab-gitaly/repos/community-x86_64/PKGBUILD
    (from rev 241674, gitlab-gitaly/trunk/PKGBUILD)
  gitlab-gitaly/repos/community-x86_64/gitlab-gitaly.service
    (from rev 241674, gitlab-gitaly/trunk/gitlab-gitaly.service)

-----------------------+
 PKGBUILD              |   35 +++++++++++++++++++++++++++++++++++
 gitlab-gitaly.service |   25 +++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

Copied: gitlab-gitaly/repos/community-x86_64/PKGBUILD (from rev 241674, gitlab-gitaly/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-06-30 11:58:39 UTC (rev 241675)
@@ -0,0 +1,35 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=gitlab-gitaly
+pkgver=0.13.0
+pkgrel=1
+pkgdesc="Speed up Git access using caching"
+arch=('x86_64')
+url="https://gitlab.com/gitlab-org/gitaly"
+license=('MIT')
+depends=('glibc' 'gitlab-shell')
+makedepends=('go')
+backup=("etc/gitlab-gitaly/config.toml")
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/gitlab-org/gitaly/repository/archive.tar.gz?ref=v${pkgver}"
+        "gitlab-gitaly.service")
+sha512sums=('ed75be44cac04df10c810a07e0dce5b85a4bd5d20c0d855941c40903bcee6e08dd549ce9d58bdd67d60c5a0920785d4afa48fe9307ad8b4b87d22929aed4ddcb'
+            'db27d797dfacd28763edc990503a56faaad6fccd191a4295b26676d9860714252e4af9a35652a65990d4028b1f4755be30654478d9edfcc5c179c8a6c04d794a')
+
+_homedir="/var/lib/${pkgname}"
+
+package() {
+  cd "gitaly-v${pkgver}-"*
+
+  make PREFIX=/usr DESTDIR=${pkgdir} install
+  mkdir -p "${pkgdir}/etc/${pkgname}"
+  sed \
+    -e "s|^socket_path =.*|socket_path = ${_homedir}/sockets/gitlab-gitaly.socket|" \
+    -e "s|^path =.*|path = ${_homedir}/repositories|" \
+    config.toml.example > "${pkgdir}/etc/${pkgname}/config.toml"
+
+  install -Dm644 config.toml.example "${pkgdir}/usr/share/${pkgname}/config.toml.example"
+  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm0644 "${srcdir}/gitlab-gitaly.service" "${pkgdir}/usr/lib/systemd/system/gitlab-gitaly.service"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: gitlab-gitaly/repos/community-x86_64/gitlab-gitaly.service (from rev 241674, gitlab-gitaly/trunk/gitlab-gitaly.service)
===================================================================
--- community-x86_64/gitlab-gitaly.service	                        (rev 0)
+++ community-x86_64/gitlab-gitaly.service	2017-06-30 11:58:39 UTC (rev 241675)
@@ -0,0 +1,25 @@
+#####################################################
+#
+# GitLab version    : 9.x
+# Contributors      : axil
+# Downloaded from   : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd
+#
+####################################################
+
+[Unit]
+Description=Gitaly is a Git RPC service for handling all the git calls made by GitLab.
+Requires=gitlab-unicorn.service
+Wants=gitlab-unicorn.service
+After=gitlab-unicorn.service
+
+[Service]
+Type=simple
+User=gitlab
+Group=gitlab
+WorkingDirectory=/usr/share/webapps/gitlab
+SyslogIdentifier=gitlab-gitaly
+PIDFile=/run/gitlab/gitaly.pid
+ExecStart=/usr/bin/gitaly /etc/gitaly/gitaly/config.toml
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list