[packages/gitlab-shell] package hooks.d dirs

glen glen at pld-linux.org
Fri Dec 23 19:24:45 CET 2016


commit 2cc334085ff3e5365391b2d073358a7e13da3ef5
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Dec 23 20:24:25 2016 +0200

    package hooks.d dirs

 gitlab-shell.spec | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/gitlab-shell.spec b/gitlab-shell.spec
index aa10fd4..0e83385 100644
--- a/gitlab-shell.spec
+++ b/gitlab-shell.spec
@@ -40,6 +40,10 @@ cp -p config.yml.example config.yml
 
 mv lib/vendor .
 
+# add hook dirs
+# https://gitlab.com/gitlab-org/gitlab-shell/merge_requests/93
+install -d hooks/{post-receive,pre-receive,update}.d
+
 # deprecated
 rm support/rewrite-hooks.sh
 # stupid script, rather not package it at all
@@ -88,5 +92,11 @@ EOF
 %{_datadir}/%{name}/.gitlab_shell_secret
 %{_datadir}/%{name}/config.yml
 %{_datadir}/%{name}/VERSION
+
 %dir %{_datadir}/%{name}/hooks
-%attr(755,root,root) %{_datadir}/%{name}/hooks/*
+%dir %{_datadir}/%{name}/hooks/post-receive.d
+%dir %{_datadir}/%{name}/hooks/pre-receive.d
+%dir %{_datadir}/%{name}/hooks/update.d
+%attr(755,root,root) %{_datadir}/%{name}/hooks/post-receive
+%attr(755,root,root) %{_datadir}/%{name}/hooks/pre-receive
+%attr(755,root,root) %{_datadir}/%{name}/hooks/update
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-shell.git/commitdiff/2cc334085ff3e5365391b2d073358a7e13da3ef5



More information about the pld-cvs-commit mailing list