[packages/eventum/dev-3.0] fix scm integration

glen glen at pld-linux.org
Mon Feb 9 13:44:34 CET 2015


commit c28270d052789a0696091020dc5d15e342c6aa6c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Feb 9 14:44:22 2015 +0200

    fix scm integration

 eventum-apache.conf      |  2 +-
 eventum-cvs-config.patch | 34 ++++++++++++++++------------------
 eventum-lighttpd.conf    |  3 +--
 eventum.spec             | 10 +++++++---
 4 files changed, 25 insertions(+), 24 deletions(-)
---
diff --git a/eventum.spec b/eventum.spec
index b254120..8d58392 100644
--- a/eventum.spec
+++ b/eventum.spec
@@ -10,7 +10,7 @@
 %bcond_with	order	# with experimental order patch
 
 %define		subver	pre1
-%define		rel		0.6
+%define		rel		0.11
 %define		php_min_version 5.3.3
 %include	/usr/lib/rpm/macros.php
 Summary:	Eventum Issue / Bug tracking system
@@ -414,9 +414,9 @@ funkcji interfejsu WWW prosto z linii poleceń powłoki.
 Summary:	Eventum SCM integration
 Summary(pl.UTF-8):	Integracja SCM dla Eventum
 Group:		Applications/WWW
-Requires:	%{name}-base = %{version}-%{release}
 Requires:	php(core) >= %{php_min_version}
 Requires:	php(pcre)
+Suggests:	php(openssl)
 
 %description scm
 This feature allows your software development teams to integrate your
@@ -488,7 +488,7 @@ rm -f config/config.php
 
 # packaging
 %patch100 -p1
-#%patch101 -p1
+%patch101 -p1
 %patch105 -p1
 %patch107 -p1
 
@@ -518,6 +518,8 @@ install -d \
 	localedir=%{_localedir} \
 	DESTDIR=$RPM_BUILD_ROOT
 
+cp -p scm/helpers.php $RPM_BUILD_ROOT%{_sbindir}
+
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
@@ -771,9 +773,11 @@ done
 
 %files scm
 %defattr(644,root,root,755)
+%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-svn-hook
+%attr(755,root,root) %{_sbindir}/helpers.php
 
 %files sphinx
 %defattr(644,root,root,755)
diff --git a/eventum-apache.conf b/eventum-apache.conf
index 54f4d43..63dcb7c 100644
--- a/eventum-apache.conf
+++ b/eventum-apache.conf
@@ -44,7 +44,7 @@ Alias /eventum /usr/share/eventum/htdocs
 		</IfModule>
 		# Apache 2.4
 		<IfModule mod_authz_core.c>
-			# Set here IP of host running CVS
+			# SCM integration. Set here IP of host running CVS, SVN, Git
 			Require local
 #			Require ip xxx.xxx.xxx.xxx
 		</IfModule>
diff --git a/eventum-cvs-config.patch b/eventum-cvs-config.patch
index 868ba04..610409c 100644
--- a/eventum-cvs-config.patch
+++ b/eventum-cvs-config.patch
@@ -1,28 +1,26 @@
---- eventum-2.3.2/scm/eventum-cvs-hook.php~	2012-02-09 11:27:05.000000000 +0200
-+++ eventum-2.3.2/scm/eventum-cvs-hook.php	2012-02-09 11:29:22.671597765 +0200
-@@ -28,13 +28,7 @@
- // |          Elan Ruusamäe <glen at delfi.ee>                               |
- // +----------------------------------------------------------------------+
+--- eventum-3.0.0-pre1/scm/eventum-cvs-hook.php~	2014-11-30 13:48:18.000000000 +0200
++++ eventum-3.0.0-pre1/scm/eventum-cvs-hook.php	2015-02-09 14:39:22.881991719 +0200
+@@ -52,9 +52,7 @@
+ // SCM repository name. Needed if multiple repositories configured
+ $scm_name = 'cvs';
  
--// URL to your Eventum installation.
--// https is supported transparently by PHP 5 if you have openssl module enabled.
--$eventum_url = 'http://eventum.example.com/';
--
 -//
 -// DO NOT CHANGE ANYTHING AFTER THIS LINE
 -//
 +require_once '/etc/eventum/scm.php';
  
  // save name of this script
- $PROGRAM = basename(array_shift($argv));
---- eventum-2.2/scm/eventum-svn-hook.php~	2009-11-10 13:31:10.000000000 +0200
-+++ eventum-2.2/scm/eventum-svn-hook.php	2009-11-10 13:31:37.571582772 +0200
-@@ -36,7 +36,7 @@
+ $PROGRAM = basename(realpath(array_shift($argv)), '.php');
+--- eventum-3.0.0-pre1/scm/eventum-svn-hook.php~	2014-11-30 13:48:18.000000000 +0200
++++ eventum-3.0.0-pre1/scm/eventum-svn-hook.php	2015-02-09 14:40:05.184671966 +0200
+@@ -48,9 +48,7 @@
+ // SCM repository name. Needed if multiple repositories configured
+ $scm_name = 'svn';
  
- // URL to your Eventum installation.
- // https is supported transparently by PHP 5 if you have openssl module enabled.
--$eventum_url = 'http://eventum.example.com/';
+-//
+-// DO NOT CHANGE ANYTHING AFTER THIS LINE
+-//
 +require_once '/etc/eventum/scm.php';
  
- //
- // DO NOT CHANGE ANYTHING AFTER THIS LINE
+ // save name of this script
+ $PROGRAM = basename(realpath(array_shift($argv)), '.php');
diff --git a/eventum-lighttpd.conf b/eventum-lighttpd.conf
index d8309e2..7ca717c 100644
--- a/eventum-lighttpd.conf
+++ b/eventum-lighttpd.conf
@@ -1,4 +1,3 @@
-# $Id$
 #
 # This config provides two kinds of configuration, for url based ("/eventum")
 # and vhost based ("http://eventum.example.org").
@@ -43,7 +42,7 @@ $HTTP["url"] =~ "^/eventum/" {
 #		)
 #	}
 
-	# SCM integration. Set here IP of host running your VCS
+	# SCM integration. Set here IP of host running CVS, SVN, Git
 	$HTTP["remoteip"] != "127.0.0.1" {
 		$HTTP["url"] =~ "/scm_ping\.php$" {
 			url.access-deny = ( "" )
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list