[packages/eventum/dev-3.0] install git hook

glen glen at pld-linux.org
Wed Apr 8 15:45:48 CEST 2015


commit f2151907ba5fcc85c9c9c4b7e7bad97e91aa8d51
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Apr 8 16:45:23 2015 +0300

    install git hook

 eventum-cvs-config.patch | 13 +++++++++++++
 eventum.spec             |  8 +++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/eventum.spec b/eventum.spec
index b821d64..20217ec 100644
--- a/eventum.spec
+++ b/eventum.spec
@@ -6,7 +6,7 @@
 %bcond_with	order	# with experimental order patch
 
 %define		subver	pre1
-%define		rel		0.12
+%define		rel		0.14
 %define		php_min_version 5.3.3
 %include	/usr/lib/rpm/macros.php
 Summary:	Eventum Issue / Bug tracking system
@@ -412,7 +412,11 @@ Summary(pl.UTF-8):	Integracja SCM dla Eventum
 Group:		Applications/WWW
 Requires:	php(core) >= %{php_min_version}
 Requires:	php(pcre)
+Requires:	php(spl)
+Suggests:	cvs
+Suggests:	git-core
 Suggests:	php(openssl)
+Suggests:	subversion
 
 %description scm
 This feature allows your software development teams to integrate your
@@ -515,6 +519,7 @@ install -d \
 	DESTDIR=$RPM_BUILD_ROOT
 
 cp -p scm/helpers.php $RPM_BUILD_ROOT%{_sbindir}
+install -p scm/eventum-git-hook.php  $RPM_BUILD_ROOT%{_sbindir}/eventum-git-hook
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -772,6 +777,7 @@ done
 %attr(751,root,root) %dir %{_sysconfdir}
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scm.php
 %attr(755,root,root) %{_sbindir}/eventum-cvs-hook
+%attr(755,root,root) %{_sbindir}/eventum-git-hook
 %attr(755,root,root) %{_sbindir}/eventum-svn-hook
 %attr(755,root,root) %{_sbindir}/helpers.php
 
diff --git a/eventum-cvs-config.patch b/eventum-cvs-config.patch
index 610409c..4cdd567 100644
--- a/eventum-cvs-config.patch
+++ b/eventum-cvs-config.patch
@@ -24,3 +24,16 @@
  
  // save name of this script
  $PROGRAM = basename(realpath(array_shift($argv)), '.php');
+--- eventum-3.0.0-pre1/scm/eventum-git-hook.php~	2014-11-30 13:48:18.000000000 +0200
++++ eventum-3.0.0-pre1/scm/eventum-git-hook.php	2015-04-08 16:37:51.434314140 +0300
+@@ -34,9 +34,7 @@
+ // TODO: use $GL_REPO
+ $scm_name = 'git';
+ 
+-//
+-// DO NOT CHANGE ANYTHING AFTER THIS LINE
+-//
++require_once '/etc/eventum/scm.php';
+ 
+ // save name of this script
+ $PROGRAM = basename(realpath(array_shift($argv)), '.php');
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/eventum.git/commitdiff/f2151907ba5fcc85c9c9c4b7e7bad97e91aa8d51



More information about the pld-cvs-commit mailing list