[packages/gitlab-workhorse] new, version 0.6.5

glen glen at pld-linux.org
Sun Apr 3 22:37:41 CEST 2016


commit c2673245a18f16da1542e7292596857321b755d7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Apr 3 23:28:43 2016 +0300

    new, version 0.6.5
    
    based on opensuse package
    http://download.opensuse.org/repositories/home:/darix:/apps/openSUSE_Tumbleweed/src/gitlab-workhorse-0.6.5-1.19.src.rpm

 gitlab-workhorse.service | 15 ++++++++++++
 gitlab-workhorse.spec    | 61 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)
---
diff --git a/gitlab-workhorse.spec b/gitlab-workhorse.spec
new file mode 100644
index 0000000..0c286b7
--- /dev/null
+++ b/gitlab-workhorse.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_with systemd
+
+%define pkg_version 0.6.5-8a339b468723d371ab408b528c5882481247f75e
+Summary:	An HTTP daemon that serves Git clients
+Name:		gitlab-workhorse
+Version:	0.6.5
+Release:	0.1
+License:	MIT
+Group:		Development/Building
+URL:		https://gitlab.com/gitlab-org/gitlab-workhorse
+Source0:	%{name}-%{pkg_version}.tar.gz
+Source1:	%{name}.service
+BuildRequires:	git-core
+BuildRequires:	golang
+%{?with_systemd:BuildRequires:	systemd-units}
+Obsoletes:	gitlab-git-http-server < %{version}-%{release}
+Requires(pre):	gitlab-common
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+gitlab-git-http-server was designed to unload Git HTTP traffic from
+the GitLab Rails app (Unicorn) to a separate daemon. All
+authentication and authorization logic is still handled by the GitLab
+Rails app.
+
+%prep
+%setup -q -n %{name}-%{pkg_version}
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -D %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
+%if %{with systemd}
+install -D %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with systemd}
+%preun
+%systemd_preun %{name}.service
+
+%post
+%systemd_post %{name}.service
+
+%postun
+%systemd_postun_with_restart %{name}.service
+%endif
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG README.md LICENSE
+%attr(755,root,root) %{_sbindir}/%{name}
+%if %{with systemd}
+%{systemdunitdir}/%{name}.service
+%endif
diff --git a/gitlab-workhorse.service b/gitlab-workhorse.service
new file mode 100644
index 0000000..03e7b7f
--- /dev/null
+++ b/gitlab-workhorse.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=GitLab Workhorse
+After=gitlab-ce-puma.service
+PartOf=gitlab-ce.target
+
+[Service]
+Type=simple
+User=gitlab
+Group=gitlab
+WorkingDirectory=/srv/www/vhosts/gitlab-ce/
+ExecStart=/usr/sbin/gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr /srv/www/vhosts/gitlab-ce/tmp/sockets/gitlab-workhorse.socket -authBackend http://127.0.0.1:3003 -authSocket /srv/www/vhosts/gitlab-ce/tmp/sockets/puma.sock
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-workhorse.git/commitdiff/c2673245a18f16da1542e7292596857321b755d7



More information about the pld-cvs-commit mailing list