]> git.pld-linux.org Git - packages/gitlab-workhorse.git/commitdiff
new, version 0.6.5
authorElan Ruusamäe <glen@delfi.ee>
Sun, 3 Apr 2016 20:28:43 +0000 (23:28 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 3 Apr 2016 20:36:49 +0000 (23:36 +0300)
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 [new file with mode: 0644]
gitlab-workhorse.spec [new file with mode: 0644]

diff --git a/gitlab-workhorse.service b/gitlab-workhorse.service
new file mode 100644 (file)
index 0000000..03e7b7f
--- /dev/null
@@ -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
diff --git a/gitlab-workhorse.spec b/gitlab-workhorse.spec
new file mode 100644 (file)
index 0000000..0c286b7
--- /dev/null
@@ -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
This page took 0.071659 seconds and 4 git commands to generate.