[packages/gitlab-common: 1/2] new

glen glen at pld-linux.org
Sat Apr 16 12:30:06 CEST 2016


commit 13b8ea22b19829576f7fed7438e428f7de20f804
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Apr 16 13:27:34 2016 +0300

    new
    
    from opensuse
    http://download.opensuse.org/repositories/home:/darix:/apps/openSUSE_Tumbleweed/src/gitlab-common-0.0.1-5.1.src.rpm

 gitlab-common.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
---
diff --git a/gitlab-common.spec b/gitlab-common.spec
new file mode 100644
index 0000000..825ea08
--- /dev/null
+++ b/gitlab-common.spec
@@ -0,0 +1,61 @@
+%define gitlab_user    gitlab
+%define gitlab_group   gitlab
+
+Summary:	Just some shared directories and users
+Name:		gitlab-common
+Version:	8.6
+Release:	0.1
+License:	MIT
+Group:		Development/Building
+BuildRequires:	rpmbuild(macros) >= 1.202
+Provides:	group(%{gitlab_group})
+Provides:	user(%{gitlab_user})
+Requires(postun):	/usr/sbin/groupdel
+Requires(postun):	/usr/sbin/userdel
+Requires(pre):	/bin/id
+Requires(pre):	/usr/bin/getgid
+Requires(pre):	/usr/sbin/groupadd
+Requires(pre):	/usr/sbin/useradd
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define git_dir          /srv/gitlab
+%define satellites_dir   %{git_dir}/satellites
+%define repositories_dir %{git_dir}/repositories
+%define build_dir        %{git_dir}/builds
+%define shared_dir       %{git_dir}/shared
+%define home_dir         %{git_dir}
+
+%description
+Just some shared directories and users for gitlab shell and webapp.
+
+%prep
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{satellites_dir} \
+	$RPM_BUILD_ROOT%{repositories_dir} \
+	$RPM_BUILD_ROOT%{build_dir} \
+	$RPM_BUILD_ROOT%{shared_dir} \
+	$RPM_BUILD_ROOT%{git_dir}/.ssh
+
+touch $RPM_BUILD_ROOT%{git_dir}/.ssh/authorized_keys
+chmod -R u=rwX,g=rX,o= $RPM_BUILD_ROOT%{git_dir}
+chmod -R go= $RPM_BUILD_ROOT%{git_dir}/.ssh
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre
+%groupadd -r %{gitlab_group}
+%useradd  -g %{gitlab_group} -s /bin/sh -r -c "GitLab" -d %{home_dir} %{gitlab_user}
+
+%files
+%defattr(644,root,root,755)
+%dir %attr(-,%{gitlab_user},%{gitlab_group}) %{git_dir}
+%dir %attr(-,%{gitlab_user},%{gitlab_group}) %{build_dir}
+%dir %attr(-,%{gitlab_user},%{gitlab_group}) %{repositories_dir}
+%dir %attr(-,%{gitlab_user},%{gitlab_group}) %{satellites_dir}
+%dir %attr(-,%{gitlab_user},%{gitlab_group}) %{shared_dir}
+%dir %attr(-,%{gitlab_user},%{gitlab_group}) %{git_dir}/.ssh
+%config(noreplace) %verify(not md5 mtime size) %attr(-,%{gitlab_user},%{gitlab_group}) %{git_dir}/.ssh/authorized_keys
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-common.git/commitdiff/05cb9cde6ac2f5cb1c74b041f810836091ee340c



More information about the pld-cvs-commit mailing list