Author: robert
Update of /cvs/free/rpms/z-push/F-15
In directory se02.es.rpmfusion.net:/tmp/cvs-serv11656/F-15
Modified Files:
.cvsignore sources z-push.spec
Added Files:
z-push-1.5.5-package.patch z-push-1.5.5-zarafa.patch
Removed Files:
z-push-1.5.2-package.patch z-push-1.5.2-zarafa.patch
Log Message:
Upgrade to 1.5.5
z-push-1.5.5-package.patch:
config.php | 20 +++++---------------
debug.php | 2 +-
index.php | 9 +++++++++
3 files changed, 15 insertions(+), 16 deletions(-)
--- NEW FILE z-push-1.5.5-package.patch ---
Patch by Robert Scheck <robert(a)fedoraproject.org> for z-push >= 1.5.5, that
changes the original paths from Z-Push upstream to Fedora compliant ones.
--- z-push-1.5.5/debug.php 2010-11-19 22:20:24.000000000 +0100
+++ z-push-1.5.5/debug.php.package 2011-09-18 03:00:36.000000000 +0200
@@ -57,7 +57,7 @@
function debugLog($message) {
global $auth_user;
$user = (isset($auth_user))?"[". $auth_user ."] ":"";
- @$fp = fopen(BASE_PATH . "/debug.txt","a");
+ @$fp = fopen("/var/lib/z-push/debug.txt","a");
@$date = strftime("%x %X");
@fwrite($fp, "$date [". getmypid() ."] ". $user .
"$message\n");
@fclose($fp);
--- z-push-1.5.5/config.php 2011-03-18 20:22:53.000000000 +0100
+++ z-push-1.5.5/config.php.package 2011-09-18 03:02:16.000000000 +0200
@@ -40,10 +40,8 @@
*
* Consult LICENSE file for details
************************************************/
- // Defines the default time zone
- if (function_exists("date_default_timezone_set")){
- date_default_timezone_set("Europe/Amsterdam");
- }
+ // Defines the default time zone, change e.g. to "Europe/London" if
necessary
+ define('TIMEZONE', '');
// Defines the base path on the server, terminated by a slash
define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']) .
"/");
@@ -57,7 +55,7 @@
"/usr/share/php5/" . PATH_SEPARATOR .
"/usr/share/pear/");
- define('STATE_DIR', BASE_PATH.'/state');
+ define('STATE_DIR', '/var/lib/z-push/state');
// Try to set unlimited timeout
define('SCRIPT_TIMEOUT', 0);
@@ -91,16 +89,8 @@
// SYNC_FILTERTYPE_1MONTH, SYNC_FILTERTYPE_3MONTHS, SYNC_FILTERTYPE_6MONTHS
define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_ALL);
- // The data providers that we are using (see configuration below)
- $BACKEND_PROVIDER = "BackendICS";
-
- // ************************
- // BackendICS settings
- // ************************
-
- // Defines the server to which we want to connect
- define('MAPI_SERVER', 'file:///var/run/zarafa');
-
+ // The data provider that we are using
+ $BACKEND_PROVIDER = "BackendIMAP";
// ************************
// BackendIMAP settings
--- z-push-1.5.5/index.php 2011-08-04 19:32:40.000000000 +0200
+++ z-push-1.5.5/index.php.package 2011-09-18 03:06:31.000000000 +0200
@@ -53,6 +53,15 @@
include_once("compat.php");
include_once("version.php");
+// Set timezone, see
https://developer.berlios.de/mantis/view.php?id=479
+if(function_exists("date_default_timezone_set")) {
+ if(defined('TIMEZONE') ? constant('TIMEZONE') : false) {
+ date_default_timezone_set(TIMEZONE);
+ } else if(!ini_get('date.timezone')) {
+ date_default_timezone_set('Europe/Amsterdam');
+ }
+}
+
// Attempt to set maximum execution time
ini_set('max_execution_time', SCRIPT_TIMEOUT);
set_time_limit(SCRIPT_TIMEOUT);
z-push-1.5.5-zarafa.patch:
config.php | 45 ++++-----------------------------------------
debug.php | 2 +-
index.php | 9 +++++++++
3 files changed, 14 insertions(+), 42 deletions(-)
--- NEW FILE z-push-1.5.5-zarafa.patch ---
Patch by Robert Scheck <robert(a)fedoraproject.org> for z-push >= 1.5.5, that
changes the original paths from Z-Push upstream to Fedora compliant ones.
--- z-push-1.5.5/debug.php 2010-11-19 22:20:24.000000000 +0100
+++ z-push-1.5.5/debug.php.zarafa 2011-09-18 03:13:32.000000000 +0200
@@ -57,7 +57,7 @@
function debugLog($message) {
global $auth_user;
$user = (isset($auth_user))?"[". $auth_user ."] ":"";
- @$fp = fopen(BASE_PATH . "/debug.txt","a");
+ @$fp = fopen("/var/lib/zarafa-z-push/debug.txt","a");
@$date = strftime("%x %X");
@fwrite($fp, "$date [". getmypid() ."] ". $user .
"$message\n");
@fclose($fp);
--- z-push-1.5.5/config.php 2011-03-18 20:22:53.000000000 +0100
+++ z-push-1.5.5/config.php.zarafa 2011-09-18 03:17:00.000000000 +0200
@@ -40,10 +40,8 @@
*
* Consult LICENSE file for details
************************************************/
- // Defines the default time zone
- if (function_exists("date_default_timezone_set")){
- date_default_timezone_set("Europe/Amsterdam");
- }
+ // Defines the default time zone, change e.g. to "Europe/London" if
necessary
+ define('TIMEZONE', '');
// Defines the base path on the server, terminated by a slash
define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']) .
"/");
@@ -57,7 +55,7 @@
"/usr/share/php5/" . PATH_SEPARATOR .
"/usr/share/pear/");
- define('STATE_DIR', BASE_PATH.'/state');
+ define('STATE_DIR', '/var/lib/zarafa-z-push/state');
// Try to set unlimited timeout
define('SCRIPT_TIMEOUT', 0);
@@ -91,7 +89,7 @@
// SYNC_FILTERTYPE_1MONTH, SYNC_FILTERTYPE_3MONTHS, SYNC_FILTERTYPE_6MONTHS
define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_ALL);
- // The data providers that we are using (see configuration below)
+ // The data provider that we are using
$BACKEND_PROVIDER = "BackendICS";
// ************************
@@ -102,41 +100,6 @@
define('MAPI_SERVER', 'file:///var/run/zarafa');
- // ************************
- // BackendIMAP settings
- // ************************
-
- // Defines the server to which we want to connect
- // recommended to use local servers only
- define('IMAP_SERVER', 'localhost');
- // connecting to default port (143)
- define('IMAP_PORT', 143);
- // best cross-platform compatibility (see
http://php.net/imap_open for options)
- define('IMAP_OPTIONS', '/notls/norsh');
- // overwrite the "from" header if it isn't set when sending emails
- // options: 'username' - the username will be set (usefull if your login
is equal to your emailaddress)
- // 'domain' - the value of the "domain" field is used
- // '(a)mydomain.com' - the username is used and the given string will be
appended
- define('IMAP_DEFAULTFROM', '');
- // copy outgoing mail to this folder. If not set z-push will try the default folders
- define('IMAP_SENTFOLDER', '');
- // forward messages inline (default off - as attachment)
- define('IMAP_INLINE_FORWARD', false);
- // use imap_mail() to send emails (default) - off uses mail()
- define('IMAP_USE_IMAPMAIL', true);
-
-
- // ************************
- // BackendMaildir settings
- // ************************
- define('MAILDIR_BASE', '/tmp');
- define('MAILDIR_SUBDIR', 'Maildir');
-
- // **********************
- // BackendVCDir settings
- // **********************
- define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
-
// Alternative backend to perform SEARCH requests (GAL search)
// if an empty value is used, the default search functionality of the main backend is
used
// use 'SearchLDAP' to search in a LDAP directory (see
backend/searchldap/config.php)
--- z-push-1.5.5/index.php 2011-08-04 19:32:40.000000000 +0200
+++ z-push-1.5.5/index.php.zarafa 2011-09-18 03:15:15.000000000 +0200
@@ -53,6 +53,15 @@
include_once("compat.php");
include_once("version.php");
+// Set timezone, see
https://developer.berlios.de/mantis/view.php?id=479
+if(function_exists("date_default_timezone_set")) {
+ if(defined('TIMEZONE') ? constant('TIMEZONE') : false) {
+ date_default_timezone_set(TIMEZONE);
+ } else if(!ini_get('date.timezone')) {
+ date_default_timezone_set('Europe/Amsterdam');
+ }
+}
+
// Attempt to set maximum execution time
ini_set('max_execution_time', SCRIPT_TIMEOUT);
set_time_limit(SCRIPT_TIMEOUT);
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/z-push/F-15/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .cvsignore 17 Jul 2011 22:14:55 -0000 1.3
+++ .cvsignore 18 Sep 2011 01:27:12 -0000 1.4
@@ -1,2 +1,2 @@
-z-push-1.5.4-707.tar.gz
+z-push-1.5.5-790.tar.gz
z-push-permission.pdf
Index: sources
===================================================================
RCS file: /cvs/free/rpms/z-push/F-15/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sources 17 Jul 2011 22:14:55 -0000 1.3
+++ sources 18 Sep 2011 01:27:12 -0000 1.4
@@ -1,2 +1,2 @@
-268e5e108cc737d035692b91cea74f14 z-push-1.5.4-707.tar.gz
+16641d2a7cc9c05eb5c556c4b18497a1 z-push-1.5.5-790.tar.gz
0d25be91b27fe7ebab16ed593c9fbf48 z-push-permission.pdf
Index: z-push.spec
===================================================================
RCS file: /cvs/free/rpms/z-push/F-15/z-push.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- z-push.spec 17 Jul 2011 22:14:55 -0000 1.2
+++ z-push.spec 18 Sep 2011 01:27:12 -0000 1.3
@@ -1,9 +1,9 @@
-%global svnrevision 707
+%global svnrevision 790
%global with_ldap 1
Summary: ActiveSync over-the-air implementation for mobile syncing
Name: z-push
-Version: 1.5.4
+Version: 1.5.5
Release: 1%{?dist}
License: AGPLv3 with exceptions
Group: Applications/Productivity
@@ -14,8 +14,8 @@
Source3: z-push-README.FEDORA.zarafa
Source4: z-push.conf
Source5: zarafa-z-push.conf
-Patch0: z-push-1.5.2-package.patch
-Patch1: z-push-1.5.2-zarafa.patch
+Patch0: z-push-1.5.5-package.patch
+Patch1: z-push-1.5.5-zarafa.patch
Requires: httpd, php >= 4.3.0, php-imap >= 4.3.0
%if %{with_ldap}
Requires: php-ldap >= 4.3.0
@@ -142,7 +142,7 @@
# Remove all unwanted files and directories
rm -rf
$RPM_BUILD_ROOT%{_datadir}/{%{name},zarafa-%{name}}/{state,backend/{kolab,zarafa}}/
-rm -f
$RPM_BUILD_ROOT%{_datadir}/{%{name},zarafa-%{name}}/{INSTALL,LICENSE,{config,debug}.php.{package,zarafa},README.FEDORA}
+rm -f
$RPM_BUILD_ROOT%{_datadir}/{%{name},zarafa-%{name}}/{INSTALL,LICENSE,{config,debug,index}.php.{package,zarafa},README.FEDORA}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -178,6 +178,9 @@
%attr(-,apache,apache) %dir %{_localstatedir}/lib/zarafa-%{name}/state/
%changelog
+* Sun Sep 18 2011 Robert Scheck <robert(a)fedoraproject.org> 1.5.5-1
+- Upgrade to 1.5.5
+
* Mon Jul 18 2011 Robert Scheck <robert(a)fedoraproject.org> 1.5.4-1
- Upgrade to 1.5.4
--- z-push-1.5.2-package.patch DELETED ---
--- z-push-1.5.2-zarafa.patch DELETED ---