rpms/z-push/F-18 z-push-2.0.6-package.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 sources, 1.9, 1.10 z-push.spec, 1.9, 1.10 z-push-2.0.5-package.patch, 1.1, NONE
by Robert Scheck
Author: robert
Update of /cvs/free/rpms/z-push/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv14067/F-18
Modified Files:
.cvsignore sources z-push.spec
Added Files:
z-push-2.0.6-package.patch
Removed Files:
z-push-2.0.5-package.patch
Log Message:
Upgrade to 2.0.6
z-push-2.0.6-package.patch:
backend/imap.php | 3 +
backend/maildir.php | 3 +
backend/vcarddir.php | 4 ++
backend/zarafa/config.php | 52 ++++++++++++++++++++++++++++++
backend/zarafa/zarafa.php | 3 +
config.imap.php | 79 ++++++++++++++++++++++++++++++++++++++++++++++
config.maildir.php | 55 ++++++++++++++++++++++++++++++++
config.php | 66 +++++++++-----------------------------
config.vcarddir.php | 52 ++++++++++++++++++++++++++++++
lib/core/zpush.php | 15 ++++++++
z-push-admin.php | 6 ++-
z-push-top.php | 5 ++
12 files changed, 291 insertions(+), 52 deletions(-)
--- NEW FILE z-push-2.0.6-package.patch ---
Patch by Robert Scheck <robert(a)fedoraproject.org> for z-push >= 2.0.6, which changes the
original paths from Z-Push upstream to Fedora compliant ones. Additionally, it splits up
the large configuration file for the multiple data backend providers to allow a much more
flexible RPM packaging.
--- z-push-2.0.6-1616/config.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/config.php.package 2012-11-08 21:34:01.000000000 +0100
@@ -157,57 +157,25 @@
// default: 100 - value used if mobile does not limit amount of items
define('SYNC_MAX_ITEMS', 100);
+
/**********************************************************************************
* Backend settings
+ *
+ * Z-Push supports currently the data backend providers IMAP, Maildir, vCard directory,
+ * Zarafa and a mixture by the combined one. Ensure that the used backend is installed
+ * and proper configured as well:
+ * BackendIMAP - configure /etc/z-push/imap.php (provided by z-push-imap)
+ * BackendMaildir - configure /etc/z-push/maildir.php (provided by z-push-maildir)
+ * BackendVCardDir - configure /etc/z-push/vcarddir.php (provided by z-push-vcarddir)
+ * BackendZarafa - configure /etc/z-push/zarafa.php (provided by z-push-zarafa)
+ * BackendCombined - configure /etc/z-push/combined.php (provided by z-push-combined)
+ * and of course the wanted (at least two) other backend providers
+ * If only one data backend provider has been installed, that one is used by default.
+ * In case of multiple installed data backend providers, Zarafa is preferred over IMAP
+ * over Maildir over vCard directory. The combined backend is never choosen by default.
*/
- // The data providers that we are using (see configuration below)
- define('BACKEND_PROVIDER', "BackendZarafa");
-
-
- // ************************
- // BackendZarafa settings
- // ************************
- // Defines the server to which we want to connect
- define('MAPI_SERVER', 'file:///var/run/zarafa');
-
-
- // ************************
- // BackendIMAP settings
- // ************************
- // Defines the server to which we want to connect
- 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
- // '@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 false - as attachment)
- define('IMAP_INLINE_FORWARD', false);
- // use imap_mail() to send emails (default) - if false mail() is used
- define('IMAP_USE_IMAPMAIL', true);
- /* BEGIN fmbiete's contribution r1527, ZP-319 */
- // list of folders we want to exclude from sync. Names, or part of it, separated by |
- // example: dovecot.sieve|archive|spam
- define('IMAP_EXCLUDED_FOLDERS', '');
- /* END fmbiete's contribution r1527, ZP-319 */
-
-
- // ************************
- // BackendMaildir settings
- // ************************
- define('MAILDIR_BASE', '/tmp');
- define('MAILDIR_SUBDIR', 'Maildir');
-
- // **********************
- // BackendVCardDir settings
- // **********************
- define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+ // The data provider that we are using
+ define('BACKEND_PROVIDER', '');
/**********************************************************************************
@@ -216,7 +184,7 @@
* Alternative backend to perform SEARCH requests (GAL search)
* By default the main Backend defines the preferred search functionality.
* If set, the Search Provider will always be preferred.
- * Use 'BackendSearchLDAP' to search in a LDAP directory (see backend/searchldap/config.php)
+ * Use 'BackendSearchLDAP' to search in a LDAP directory (see /etc/zarafa/searchldap.php)
*/
define('SEARCH_PROVIDER', '');
// Time in seconds for the server search. Setting it too high might result in timeout.
--- z-push-2.0.6-1616/config.imap.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.imap.php.package 2012-11-04 16:45:03.000000000 +0100
@@ -0,0 +1,79 @@
+<?php
+/***********************************************
+* File : /etc/z-push/imap.php
+* Project : Z-Push
+* Descr : configuration file for the
+* IMAP backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendIMAP" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+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
+// '@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 false - as attachment)
+define('IMAP_INLINE_FORWARD', false);
+
+// use imap_mail() to send emails (default) - if false mail() is used
+define('IMAP_USE_IMAPMAIL', true);
+
+/* BEGIN fmbiete's contribution r1527, ZP-319 */
+// list of folders we want to exclude from sync. Names, or part of it, separated by |
+// example: dovecot.sieve|archive|spam
+define('IMAP_EXCLUDED_FOLDERS', '');
+/* END fmbiete's contribution r1527, ZP-319 */
+
+?>
--- z-push-2.0.6-1616/config.maildir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.maildir.php.package 2012-11-04 16:46:24.000000000 +0100
@@ -0,0 +1,55 @@
+<?php
+/***********************************************
+* File : /etc/z-push/maildir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Maildir backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendMaildir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the Maildir base path
+define('MAILDIR_BASE', '/tmp');
+
+// Defines the name of the Maildir
+define('MAILDIR_SUBDIR', 'Maildir');
+
+?>
--- z-push-2.0.6-1616/config.vcarddir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.vcarddir.php.package 2012-11-04 16:46:55.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/vcarddir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* vCard directory backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendVCardDir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the vCard directory path
+define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+
+?>
--- z-push-2.0.6-1616/backend/zarafa/config.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/backend/zarafa/config.php.package 2012-11-04 16:45:42.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/zarafa.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Zarafa backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendZarafa" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+define('MAPI_SERVER', 'file:///var/run/zarafa');
+
+?>
--- z-push-2.0.6-1616/backend/imap.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/imap.php.package 2012-11-04 17:17:30.000000000 +0100
@@ -43,6 +43,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the IMAP backend's own config file
+require_once("backend/imap/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/maildir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/maildir.php.package 2012-11-04 17:17:47.000000000 +0100
@@ -53,6 +53,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the Maildir backend's own config file
+require_once("backend/maildir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/vcarddir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/vcarddir.php.package 2012-11-04 17:18:06.000000000 +0100
@@ -40,6 +40,10 @@
*
* Consult LICENSE file for details
************************************************/
+
+// Include the vCard directory backend's own config file
+require_once("backend/vcarddir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
class BackendVCardDir extends BackendDiff {
--- z-push-2.0.6-1616/backend/zarafa/zarafa.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/zarafa/zarafa.php.package 2012-11-04 18:34:46.000000000 +0100
@@ -45,6 +45,9 @@
* Consult LICENSE file for details
*************************************************/
+// Include the Zarafa backend's own config file
+require_once("backend/zarafa/config.php");
+
// include PHP-MAPI classes
include_once('backend/zarafa/mapi/mapi.util.php');
include_once('backend/zarafa/mapi/mapidefs.php');
--- z-push-2.0.6-1616/lib/core/zpush.php 2012-06-02 07:03:16.000000000 +0200
+++ z-push-2.0.6-1616/lib/core/zpush.php.package 2012-11-04 18:30:42.000000000 +0100
@@ -439,6 +439,21 @@
if (!isset(ZPush::$backend)) {
// Initialize our backend
$ourBackend = @constant('BACKEND_PROVIDER');
+
+ // Some admin-friendly guessing if no backend has been configured
+ if (empty($ourBackend)) {
+ if (file_exists(REAL_BASE_PATH . "backend/zarafa/"))
+ $ourBackend = "BackendZarafa";
+ elseif (file_exists(REAL_BASE_PATH . "backend/imap/"))
+ $ourBackend = "BackendIMAP";
+ elseif (file_exists(REAL_BASE_PATH . "backend/maildir/"))
+ $ourBackend = "BackendMaildir";
+ elseif (file_exists(REAL_BASE_PATH . "backend/vcarddir/"))
+ $ourBackend = "BackendVCardDir";
+ else
+ throw new FatalMisconfigurationException("No backend provider has been configured. Check configuration!");
+ }
+
self::IncludeBackend($ourBackend);
if (class_exists($ourBackend))
--- z-push-2.0.6-1616/z-push-admin.php 2012-07-21 17:20:52.000000000 +0200
+++ z-push-2.0.6-1616/z-push-admin.php.package 2012-11-04 15:16:15.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
include('lib/core/stateobject.php');
@@ -102,8 +106,6 @@
/************************************************
* MAIN
*/
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
- set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
try {
ZPush::CheckConfig();
ZPushAdminCLI::CheckEnv();
--- z-push-2.0.6-1616/z-push-top.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/z-push-top.php.package 2012-11-08 21:38:01.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/exceptions/exceptions.php');
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
@@ -60,7 +64,6 @@
* MAIN
*/
declare(ticks = 1);
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
try {
ZPush::CheckConfig();
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/z-push/F-18/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- .cvsignore 8 Nov 2012 21:52:20 -0000 1.9
+++ .cvsignore 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,2 +1,2 @@
-z-push-2.0.5-1541.tar.gz
+z-push-2.0.6-1616.tar.gz
z-push-permission.pdf
Index: sources
===================================================================
RCS file: /cvs/free/rpms/z-push/F-18/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- sources 8 Nov 2012 21:52:20 -0000 1.9
+++ sources 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,2 +1,2 @@
-b6f3fdf6bb1f3022f2ae354490562387 z-push-2.0.5-1541.tar.gz
+3473446c5c894402400675234df857c6 z-push-2.0.6-1616.tar.gz
0d25be91b27fe7ebab16ed593c9fbf48 z-push-permission.pdf
Index: z-push.spec
===================================================================
RCS file: /cvs/free/rpms/z-push/F-18/z-push.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- z-push.spec 8 Nov 2012 21:52:20 -0000 1.9
+++ z-push.spec 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,8 +1,8 @@
-%global svnrevision 1541
+%global svnrevision 1616
Summary: ActiveSync over-the-air implementation for mobile syncing
Name: z-push
-Version: 2.0.5
+Version: 2.0.6
Release: 1%{?dist}
License: AGPLv3 with exceptions
Group: Applications/Productivity
@@ -12,7 +12,7 @@
Source2: z-push-README.FEDORA
Source3: z-push.conf
Source4: z-push.logrotate
-Patch0: z-push-2.0.5-package.patch
+Patch0: z-push-2.0.6-package.patch
Requires: httpd, php-iconv, php-sysvsem, php-sysvshm
Requires: coreutils, bash, grep, less, php-pcntl
# Bug: php53 from RHEL 5 does not provide php (#717158)
@@ -101,8 +101,7 @@
%prep
%setup -q -n %{name}-%{version}-%{svnrevision}
-%patch0 -p1 -b .package
-touch -c -r config.php{.package,} config.*.php backend/zarafa/config.php
+%patch0 -p1
%build
@@ -142,7 +141,7 @@
install -D -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
# Remove all unwanted files and directories
-rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{INSTALL,LICENSE,backend/kolab,{.,*,*/*}/*.package}
+rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{INSTALL,LICENSE,backend/kolab}
# Copy permission and README for later usage
cp -pf %{SOURCE1} permission.pdf
@@ -201,6 +200,9 @@
%{_datadir}/%{name}/backend/zarafa/
%changelog
+* Thu Dec 06 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.6-1
+- Upgrade to 2.0.6
+
* Thu Nov 08 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.5-1
- Upgrade to 2.0.5
--- z-push-2.0.5-package.patch DELETED ---
11 years, 11 months
rpms/z-push/EL-6 z-push-2.0.6-package.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 sources, 1.9, 1.10 z-push.spec, 1.9, 1.10 z-push-2.0.5-package.patch, 1.1, NONE
by Robert Scheck
Author: robert
Update of /cvs/free/rpms/z-push/EL-6
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv14067/EL-6
Modified Files:
.cvsignore sources z-push.spec
Added Files:
z-push-2.0.6-package.patch
Removed Files:
z-push-2.0.5-package.patch
Log Message:
Upgrade to 2.0.6
z-push-2.0.6-package.patch:
backend/imap.php | 3 +
backend/maildir.php | 3 +
backend/vcarddir.php | 4 ++
backend/zarafa/config.php | 52 ++++++++++++++++++++++++++++++
backend/zarafa/zarafa.php | 3 +
config.imap.php | 79 ++++++++++++++++++++++++++++++++++++++++++++++
config.maildir.php | 55 ++++++++++++++++++++++++++++++++
config.php | 66 +++++++++-----------------------------
config.vcarddir.php | 52 ++++++++++++++++++++++++++++++
lib/core/zpush.php | 15 ++++++++
z-push-admin.php | 6 ++-
z-push-top.php | 5 ++
12 files changed, 291 insertions(+), 52 deletions(-)
--- NEW FILE z-push-2.0.6-package.patch ---
Patch by Robert Scheck <robert(a)fedoraproject.org> for z-push >= 2.0.6, which changes the
original paths from Z-Push upstream to Fedora compliant ones. Additionally, it splits up
the large configuration file for the multiple data backend providers to allow a much more
flexible RPM packaging.
--- z-push-2.0.6-1616/config.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/config.php.package 2012-11-08 21:34:01.000000000 +0100
@@ -157,57 +157,25 @@
// default: 100 - value used if mobile does not limit amount of items
define('SYNC_MAX_ITEMS', 100);
+
/**********************************************************************************
* Backend settings
+ *
+ * Z-Push supports currently the data backend providers IMAP, Maildir, vCard directory,
+ * Zarafa and a mixture by the combined one. Ensure that the used backend is installed
+ * and proper configured as well:
+ * BackendIMAP - configure /etc/z-push/imap.php (provided by z-push-imap)
+ * BackendMaildir - configure /etc/z-push/maildir.php (provided by z-push-maildir)
+ * BackendVCardDir - configure /etc/z-push/vcarddir.php (provided by z-push-vcarddir)
+ * BackendZarafa - configure /etc/z-push/zarafa.php (provided by z-push-zarafa)
+ * BackendCombined - configure /etc/z-push/combined.php (provided by z-push-combined)
+ * and of course the wanted (at least two) other backend providers
+ * If only one data backend provider has been installed, that one is used by default.
+ * In case of multiple installed data backend providers, Zarafa is preferred over IMAP
+ * over Maildir over vCard directory. The combined backend is never choosen by default.
*/
- // The data providers that we are using (see configuration below)
- define('BACKEND_PROVIDER', "BackendZarafa");
-
-
- // ************************
- // BackendZarafa settings
- // ************************
- // Defines the server to which we want to connect
- define('MAPI_SERVER', 'file:///var/run/zarafa');
-
-
- // ************************
- // BackendIMAP settings
- // ************************
- // Defines the server to which we want to connect
- 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
- // '@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 false - as attachment)
- define('IMAP_INLINE_FORWARD', false);
- // use imap_mail() to send emails (default) - if false mail() is used
- define('IMAP_USE_IMAPMAIL', true);
- /* BEGIN fmbiete's contribution r1527, ZP-319 */
- // list of folders we want to exclude from sync. Names, or part of it, separated by |
- // example: dovecot.sieve|archive|spam
- define('IMAP_EXCLUDED_FOLDERS', '');
- /* END fmbiete's contribution r1527, ZP-319 */
-
-
- // ************************
- // BackendMaildir settings
- // ************************
- define('MAILDIR_BASE', '/tmp');
- define('MAILDIR_SUBDIR', 'Maildir');
-
- // **********************
- // BackendVCardDir settings
- // **********************
- define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+ // The data provider that we are using
+ define('BACKEND_PROVIDER', '');
/**********************************************************************************
@@ -216,7 +184,7 @@
* Alternative backend to perform SEARCH requests (GAL search)
* By default the main Backend defines the preferred search functionality.
* If set, the Search Provider will always be preferred.
- * Use 'BackendSearchLDAP' to search in a LDAP directory (see backend/searchldap/config.php)
+ * Use 'BackendSearchLDAP' to search in a LDAP directory (see /etc/zarafa/searchldap.php)
*/
define('SEARCH_PROVIDER', '');
// Time in seconds for the server search. Setting it too high might result in timeout.
--- z-push-2.0.6-1616/config.imap.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.imap.php.package 2012-11-04 16:45:03.000000000 +0100
@@ -0,0 +1,79 @@
+<?php
+/***********************************************
+* File : /etc/z-push/imap.php
+* Project : Z-Push
+* Descr : configuration file for the
+* IMAP backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendIMAP" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+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
+// '@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 false - as attachment)
+define('IMAP_INLINE_FORWARD', false);
+
+// use imap_mail() to send emails (default) - if false mail() is used
+define('IMAP_USE_IMAPMAIL', true);
+
+/* BEGIN fmbiete's contribution r1527, ZP-319 */
+// list of folders we want to exclude from sync. Names, or part of it, separated by |
+// example: dovecot.sieve|archive|spam
+define('IMAP_EXCLUDED_FOLDERS', '');
+/* END fmbiete's contribution r1527, ZP-319 */
+
+?>
--- z-push-2.0.6-1616/config.maildir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.maildir.php.package 2012-11-04 16:46:24.000000000 +0100
@@ -0,0 +1,55 @@
+<?php
+/***********************************************
+* File : /etc/z-push/maildir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Maildir backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendMaildir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the Maildir base path
+define('MAILDIR_BASE', '/tmp');
+
+// Defines the name of the Maildir
+define('MAILDIR_SUBDIR', 'Maildir');
+
+?>
--- z-push-2.0.6-1616/config.vcarddir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.vcarddir.php.package 2012-11-04 16:46:55.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/vcarddir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* vCard directory backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendVCardDir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the vCard directory path
+define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+
+?>
--- z-push-2.0.6-1616/backend/zarafa/config.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/backend/zarafa/config.php.package 2012-11-04 16:45:42.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/zarafa.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Zarafa backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendZarafa" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+define('MAPI_SERVER', 'file:///var/run/zarafa');
+
+?>
--- z-push-2.0.6-1616/backend/imap.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/imap.php.package 2012-11-04 17:17:30.000000000 +0100
@@ -43,6 +43,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the IMAP backend's own config file
+require_once("backend/imap/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/maildir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/maildir.php.package 2012-11-04 17:17:47.000000000 +0100
@@ -53,6 +53,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the Maildir backend's own config file
+require_once("backend/maildir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/vcarddir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/vcarddir.php.package 2012-11-04 17:18:06.000000000 +0100
@@ -40,6 +40,10 @@
*
* Consult LICENSE file for details
************************************************/
+
+// Include the vCard directory backend's own config file
+require_once("backend/vcarddir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
class BackendVCardDir extends BackendDiff {
--- z-push-2.0.6-1616/backend/zarafa/zarafa.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/zarafa/zarafa.php.package 2012-11-04 18:34:46.000000000 +0100
@@ -45,6 +45,9 @@
* Consult LICENSE file for details
*************************************************/
+// Include the Zarafa backend's own config file
+require_once("backend/zarafa/config.php");
+
// include PHP-MAPI classes
include_once('backend/zarafa/mapi/mapi.util.php');
include_once('backend/zarafa/mapi/mapidefs.php');
--- z-push-2.0.6-1616/lib/core/zpush.php 2012-06-02 07:03:16.000000000 +0200
+++ z-push-2.0.6-1616/lib/core/zpush.php.package 2012-11-04 18:30:42.000000000 +0100
@@ -439,6 +439,21 @@
if (!isset(ZPush::$backend)) {
// Initialize our backend
$ourBackend = @constant('BACKEND_PROVIDER');
+
+ // Some admin-friendly guessing if no backend has been configured
+ if (empty($ourBackend)) {
+ if (file_exists(REAL_BASE_PATH . "backend/zarafa/"))
+ $ourBackend = "BackendZarafa";
+ elseif (file_exists(REAL_BASE_PATH . "backend/imap/"))
+ $ourBackend = "BackendIMAP";
+ elseif (file_exists(REAL_BASE_PATH . "backend/maildir/"))
+ $ourBackend = "BackendMaildir";
+ elseif (file_exists(REAL_BASE_PATH . "backend/vcarddir/"))
+ $ourBackend = "BackendVCardDir";
+ else
+ throw new FatalMisconfigurationException("No backend provider has been configured. Check configuration!");
+ }
+
self::IncludeBackend($ourBackend);
if (class_exists($ourBackend))
--- z-push-2.0.6-1616/z-push-admin.php 2012-07-21 17:20:52.000000000 +0200
+++ z-push-2.0.6-1616/z-push-admin.php.package 2012-11-04 15:16:15.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
include('lib/core/stateobject.php');
@@ -102,8 +106,6 @@
/************************************************
* MAIN
*/
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
- set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
try {
ZPush::CheckConfig();
ZPushAdminCLI::CheckEnv();
--- z-push-2.0.6-1616/z-push-top.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/z-push-top.php.package 2012-11-08 21:38:01.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/exceptions/exceptions.php');
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
@@ -60,7 +64,6 @@
* MAIN
*/
declare(ticks = 1);
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
try {
ZPush::CheckConfig();
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/z-push/EL-6/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- .cvsignore 8 Nov 2012 21:57:27 -0000 1.9
+++ .cvsignore 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,2 +1,2 @@
-z-push-2.0.5-1541.tar.gz
+z-push-2.0.6-1616.tar.gz
z-push-permission.pdf
Index: sources
===================================================================
RCS file: /cvs/free/rpms/z-push/EL-6/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- sources 8 Nov 2012 21:57:27 -0000 1.9
+++ sources 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,2 +1,2 @@
-b6f3fdf6bb1f3022f2ae354490562387 z-push-2.0.5-1541.tar.gz
+3473446c5c894402400675234df857c6 z-push-2.0.6-1616.tar.gz
0d25be91b27fe7ebab16ed593c9fbf48 z-push-permission.pdf
Index: z-push.spec
===================================================================
RCS file: /cvs/free/rpms/z-push/EL-6/z-push.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- z-push.spec 8 Nov 2012 21:57:28 -0000 1.9
+++ z-push.spec 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,8 +1,8 @@
-%global svnrevision 1541
+%global svnrevision 1616
Summary: ActiveSync over-the-air implementation for mobile syncing
Name: z-push
-Version: 2.0.5
+Version: 2.0.6
Release: 1%{?dist}
License: AGPLv3 with exceptions
Group: Applications/Productivity
@@ -12,7 +12,7 @@
Source2: z-push-README.FEDORA
Source3: z-push.conf
Source4: z-push.logrotate
-Patch0: z-push-2.0.5-package.patch
+Patch0: z-push-2.0.6-package.patch
Requires: httpd, php-iconv, php-sysvsem, php-sysvshm
Requires: coreutils, bash, grep, less, php-pcntl
# Bug: php53 from RHEL 5 does not provide php (#717158)
@@ -101,8 +101,7 @@
%prep
%setup -q -n %{name}-%{version}-%{svnrevision}
-%patch0 -p1 -b .package
-touch -c -r config.php{.package,} config.*.php backend/zarafa/config.php
+%patch0 -p1
%build
@@ -142,7 +141,7 @@
install -D -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
# Remove all unwanted files and directories
-rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{INSTALL,LICENSE,backend/kolab,{.,*,*/*}/*.package}
+rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{INSTALL,LICENSE,backend/kolab}
# Copy permission and README for later usage
cp -pf %{SOURCE1} permission.pdf
@@ -201,6 +200,9 @@
%{_datadir}/%{name}/backend/zarafa/
%changelog
+* Thu Dec 06 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.6-1
+- Upgrade to 2.0.6
+
* Thu Nov 08 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.5-1
- Upgrade to 2.0.5
--- z-push-2.0.5-package.patch DELETED ---
11 years, 11 months
rpms/z-push/F-17 z-push-2.0.6-package.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 sources, 1.9, 1.10 z-push.spec, 1.9, 1.10 z-push-2.0.5-package.patch, 1.1, NONE
by Robert Scheck
Author: robert
Update of /cvs/free/rpms/z-push/F-17
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv14067/F-17
Modified Files:
.cvsignore sources z-push.spec
Added Files:
z-push-2.0.6-package.patch
Removed Files:
z-push-2.0.5-package.patch
Log Message:
Upgrade to 2.0.6
z-push-2.0.6-package.patch:
backend/imap.php | 3 +
backend/maildir.php | 3 +
backend/vcarddir.php | 4 ++
backend/zarafa/config.php | 52 ++++++++++++++++++++++++++++++
backend/zarafa/zarafa.php | 3 +
config.imap.php | 79 ++++++++++++++++++++++++++++++++++++++++++++++
config.maildir.php | 55 ++++++++++++++++++++++++++++++++
config.php | 66 +++++++++-----------------------------
config.vcarddir.php | 52 ++++++++++++++++++++++++++++++
lib/core/zpush.php | 15 ++++++++
z-push-admin.php | 6 ++-
z-push-top.php | 5 ++
12 files changed, 291 insertions(+), 52 deletions(-)
--- NEW FILE z-push-2.0.6-package.patch ---
Patch by Robert Scheck <robert(a)fedoraproject.org> for z-push >= 2.0.6, which changes the
original paths from Z-Push upstream to Fedora compliant ones. Additionally, it splits up
the large configuration file for the multiple data backend providers to allow a much more
flexible RPM packaging.
--- z-push-2.0.6-1616/config.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/config.php.package 2012-11-08 21:34:01.000000000 +0100
@@ -157,57 +157,25 @@
// default: 100 - value used if mobile does not limit amount of items
define('SYNC_MAX_ITEMS', 100);
+
/**********************************************************************************
* Backend settings
+ *
+ * Z-Push supports currently the data backend providers IMAP, Maildir, vCard directory,
+ * Zarafa and a mixture by the combined one. Ensure that the used backend is installed
+ * and proper configured as well:
+ * BackendIMAP - configure /etc/z-push/imap.php (provided by z-push-imap)
+ * BackendMaildir - configure /etc/z-push/maildir.php (provided by z-push-maildir)
+ * BackendVCardDir - configure /etc/z-push/vcarddir.php (provided by z-push-vcarddir)
+ * BackendZarafa - configure /etc/z-push/zarafa.php (provided by z-push-zarafa)
+ * BackendCombined - configure /etc/z-push/combined.php (provided by z-push-combined)
+ * and of course the wanted (at least two) other backend providers
+ * If only one data backend provider has been installed, that one is used by default.
+ * In case of multiple installed data backend providers, Zarafa is preferred over IMAP
+ * over Maildir over vCard directory. The combined backend is never choosen by default.
*/
- // The data providers that we are using (see configuration below)
- define('BACKEND_PROVIDER', "BackendZarafa");
-
-
- // ************************
- // BackendZarafa settings
- // ************************
- // Defines the server to which we want to connect
- define('MAPI_SERVER', 'file:///var/run/zarafa');
-
-
- // ************************
- // BackendIMAP settings
- // ************************
- // Defines the server to which we want to connect
- 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
- // '@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 false - as attachment)
- define('IMAP_INLINE_FORWARD', false);
- // use imap_mail() to send emails (default) - if false mail() is used
- define('IMAP_USE_IMAPMAIL', true);
- /* BEGIN fmbiete's contribution r1527, ZP-319 */
- // list of folders we want to exclude from sync. Names, or part of it, separated by |
- // example: dovecot.sieve|archive|spam
- define('IMAP_EXCLUDED_FOLDERS', '');
- /* END fmbiete's contribution r1527, ZP-319 */
-
-
- // ************************
- // BackendMaildir settings
- // ************************
- define('MAILDIR_BASE', '/tmp');
- define('MAILDIR_SUBDIR', 'Maildir');
-
- // **********************
- // BackendVCardDir settings
- // **********************
- define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+ // The data provider that we are using
+ define('BACKEND_PROVIDER', '');
/**********************************************************************************
@@ -216,7 +184,7 @@
* Alternative backend to perform SEARCH requests (GAL search)
* By default the main Backend defines the preferred search functionality.
* If set, the Search Provider will always be preferred.
- * Use 'BackendSearchLDAP' to search in a LDAP directory (see backend/searchldap/config.php)
+ * Use 'BackendSearchLDAP' to search in a LDAP directory (see /etc/zarafa/searchldap.php)
*/
define('SEARCH_PROVIDER', '');
// Time in seconds for the server search. Setting it too high might result in timeout.
--- z-push-2.0.6-1616/config.imap.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.imap.php.package 2012-11-04 16:45:03.000000000 +0100
@@ -0,0 +1,79 @@
+<?php
+/***********************************************
+* File : /etc/z-push/imap.php
+* Project : Z-Push
+* Descr : configuration file for the
+* IMAP backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendIMAP" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+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
+// '@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 false - as attachment)
+define('IMAP_INLINE_FORWARD', false);
+
+// use imap_mail() to send emails (default) - if false mail() is used
+define('IMAP_USE_IMAPMAIL', true);
+
+/* BEGIN fmbiete's contribution r1527, ZP-319 */
+// list of folders we want to exclude from sync. Names, or part of it, separated by |
+// example: dovecot.sieve|archive|spam
+define('IMAP_EXCLUDED_FOLDERS', '');
+/* END fmbiete's contribution r1527, ZP-319 */
+
+?>
--- z-push-2.0.6-1616/config.maildir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.maildir.php.package 2012-11-04 16:46:24.000000000 +0100
@@ -0,0 +1,55 @@
+<?php
+/***********************************************
+* File : /etc/z-push/maildir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Maildir backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendMaildir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the Maildir base path
+define('MAILDIR_BASE', '/tmp');
+
+// Defines the name of the Maildir
+define('MAILDIR_SUBDIR', 'Maildir');
+
+?>
--- z-push-2.0.6-1616/config.vcarddir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.vcarddir.php.package 2012-11-04 16:46:55.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/vcarddir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* vCard directory backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendVCardDir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the vCard directory path
+define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+
+?>
--- z-push-2.0.6-1616/backend/zarafa/config.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/backend/zarafa/config.php.package 2012-11-04 16:45:42.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/zarafa.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Zarafa backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendZarafa" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+define('MAPI_SERVER', 'file:///var/run/zarafa');
+
+?>
--- z-push-2.0.6-1616/backend/imap.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/imap.php.package 2012-11-04 17:17:30.000000000 +0100
@@ -43,6 +43,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the IMAP backend's own config file
+require_once("backend/imap/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/maildir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/maildir.php.package 2012-11-04 17:17:47.000000000 +0100
@@ -53,6 +53,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the Maildir backend's own config file
+require_once("backend/maildir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/vcarddir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/vcarddir.php.package 2012-11-04 17:18:06.000000000 +0100
@@ -40,6 +40,10 @@
*
* Consult LICENSE file for details
************************************************/
+
+// Include the vCard directory backend's own config file
+require_once("backend/vcarddir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
class BackendVCardDir extends BackendDiff {
--- z-push-2.0.6-1616/backend/zarafa/zarafa.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/zarafa/zarafa.php.package 2012-11-04 18:34:46.000000000 +0100
@@ -45,6 +45,9 @@
* Consult LICENSE file for details
*************************************************/
+// Include the Zarafa backend's own config file
+require_once("backend/zarafa/config.php");
+
// include PHP-MAPI classes
include_once('backend/zarafa/mapi/mapi.util.php');
include_once('backend/zarafa/mapi/mapidefs.php');
--- z-push-2.0.6-1616/lib/core/zpush.php 2012-06-02 07:03:16.000000000 +0200
+++ z-push-2.0.6-1616/lib/core/zpush.php.package 2012-11-04 18:30:42.000000000 +0100
@@ -439,6 +439,21 @@
if (!isset(ZPush::$backend)) {
// Initialize our backend
$ourBackend = @constant('BACKEND_PROVIDER');
+
+ // Some admin-friendly guessing if no backend has been configured
+ if (empty($ourBackend)) {
+ if (file_exists(REAL_BASE_PATH . "backend/zarafa/"))
+ $ourBackend = "BackendZarafa";
+ elseif (file_exists(REAL_BASE_PATH . "backend/imap/"))
+ $ourBackend = "BackendIMAP";
+ elseif (file_exists(REAL_BASE_PATH . "backend/maildir/"))
+ $ourBackend = "BackendMaildir";
+ elseif (file_exists(REAL_BASE_PATH . "backend/vcarddir/"))
+ $ourBackend = "BackendVCardDir";
+ else
+ throw new FatalMisconfigurationException("No backend provider has been configured. Check configuration!");
+ }
+
self::IncludeBackend($ourBackend);
if (class_exists($ourBackend))
--- z-push-2.0.6-1616/z-push-admin.php 2012-07-21 17:20:52.000000000 +0200
+++ z-push-2.0.6-1616/z-push-admin.php.package 2012-11-04 15:16:15.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
include('lib/core/stateobject.php');
@@ -102,8 +106,6 @@
/************************************************
* MAIN
*/
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
- set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
try {
ZPush::CheckConfig();
ZPushAdminCLI::CheckEnv();
--- z-push-2.0.6-1616/z-push-top.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/z-push-top.php.package 2012-11-08 21:38:01.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/exceptions/exceptions.php');
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
@@ -60,7 +64,6 @@
* MAIN
*/
declare(ticks = 1);
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
try {
ZPush::CheckConfig();
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/z-push/F-17/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- .cvsignore 8 Nov 2012 21:56:04 -0000 1.9
+++ .cvsignore 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,2 +1,2 @@
-z-push-2.0.5-1541.tar.gz
+z-push-2.0.6-1616.tar.gz
z-push-permission.pdf
Index: sources
===================================================================
RCS file: /cvs/free/rpms/z-push/F-17/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- sources 8 Nov 2012 21:56:04 -0000 1.9
+++ sources 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,2 +1,2 @@
-b6f3fdf6bb1f3022f2ae354490562387 z-push-2.0.5-1541.tar.gz
+3473446c5c894402400675234df857c6 z-push-2.0.6-1616.tar.gz
0d25be91b27fe7ebab16ed593c9fbf48 z-push-permission.pdf
Index: z-push.spec
===================================================================
RCS file: /cvs/free/rpms/z-push/F-17/z-push.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- z-push.spec 8 Nov 2012 21:56:04 -0000 1.9
+++ z-push.spec 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,8 +1,8 @@
-%global svnrevision 1541
+%global svnrevision 1616
Summary: ActiveSync over-the-air implementation for mobile syncing
Name: z-push
-Version: 2.0.5
+Version: 2.0.6
Release: 1%{?dist}
License: AGPLv3 with exceptions
Group: Applications/Productivity
@@ -12,7 +12,7 @@
Source2: z-push-README.FEDORA
Source3: z-push.conf
Source4: z-push.logrotate
-Patch0: z-push-2.0.5-package.patch
+Patch0: z-push-2.0.6-package.patch
Requires: httpd, php-iconv, php-sysvsem, php-sysvshm
Requires: coreutils, bash, grep, less, php-pcntl
# Bug: php53 from RHEL 5 does not provide php (#717158)
@@ -101,8 +101,7 @@
%prep
%setup -q -n %{name}-%{version}-%{svnrevision}
-%patch0 -p1 -b .package
-touch -c -r config.php{.package,} config.*.php backend/zarafa/config.php
+%patch0 -p1
%build
@@ -142,7 +141,7 @@
install -D -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
# Remove all unwanted files and directories
-rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{INSTALL,LICENSE,backend/kolab,{.,*,*/*}/*.package}
+rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{INSTALL,LICENSE,backend/kolab}
# Copy permission and README for later usage
cp -pf %{SOURCE1} permission.pdf
@@ -201,6 +200,9 @@
%{_datadir}/%{name}/backend/zarafa/
%changelog
+* Thu Dec 06 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.6-1
+- Upgrade to 2.0.6
+
* Thu Nov 08 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.5-1
- Upgrade to 2.0.5
--- z-push-2.0.5-package.patch DELETED ---
11 years, 11 months
rpms/z-push/F-16 z-push-2.0.6-package.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 sources, 1.9, 1.10 z-push.spec, 1.9, 1.10 z-push-2.0.5-package.patch, 1.1, NONE
by Robert Scheck
Author: robert
Update of /cvs/free/rpms/z-push/F-16
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv14067/F-16
Modified Files:
.cvsignore sources z-push.spec
Added Files:
z-push-2.0.6-package.patch
Removed Files:
z-push-2.0.5-package.patch
Log Message:
Upgrade to 2.0.6
z-push-2.0.6-package.patch:
backend/imap.php | 3 +
backend/maildir.php | 3 +
backend/vcarddir.php | 4 ++
backend/zarafa/config.php | 52 ++++++++++++++++++++++++++++++
backend/zarafa/zarafa.php | 3 +
config.imap.php | 79 ++++++++++++++++++++++++++++++++++++++++++++++
config.maildir.php | 55 ++++++++++++++++++++++++++++++++
config.php | 66 +++++++++-----------------------------
config.vcarddir.php | 52 ++++++++++++++++++++++++++++++
lib/core/zpush.php | 15 ++++++++
z-push-admin.php | 6 ++-
z-push-top.php | 5 ++
12 files changed, 291 insertions(+), 52 deletions(-)
--- NEW FILE z-push-2.0.6-package.patch ---
Patch by Robert Scheck <robert(a)fedoraproject.org> for z-push >= 2.0.6, which changes the
original paths from Z-Push upstream to Fedora compliant ones. Additionally, it splits up
the large configuration file for the multiple data backend providers to allow a much more
flexible RPM packaging.
--- z-push-2.0.6-1616/config.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/config.php.package 2012-11-08 21:34:01.000000000 +0100
@@ -157,57 +157,25 @@
// default: 100 - value used if mobile does not limit amount of items
define('SYNC_MAX_ITEMS', 100);
+
/**********************************************************************************
* Backend settings
+ *
+ * Z-Push supports currently the data backend providers IMAP, Maildir, vCard directory,
+ * Zarafa and a mixture by the combined one. Ensure that the used backend is installed
+ * and proper configured as well:
+ * BackendIMAP - configure /etc/z-push/imap.php (provided by z-push-imap)
+ * BackendMaildir - configure /etc/z-push/maildir.php (provided by z-push-maildir)
+ * BackendVCardDir - configure /etc/z-push/vcarddir.php (provided by z-push-vcarddir)
+ * BackendZarafa - configure /etc/z-push/zarafa.php (provided by z-push-zarafa)
+ * BackendCombined - configure /etc/z-push/combined.php (provided by z-push-combined)
+ * and of course the wanted (at least two) other backend providers
+ * If only one data backend provider has been installed, that one is used by default.
+ * In case of multiple installed data backend providers, Zarafa is preferred over IMAP
+ * over Maildir over vCard directory. The combined backend is never choosen by default.
*/
- // The data providers that we are using (see configuration below)
- define('BACKEND_PROVIDER', "BackendZarafa");
-
-
- // ************************
- // BackendZarafa settings
- // ************************
- // Defines the server to which we want to connect
- define('MAPI_SERVER', 'file:///var/run/zarafa');
-
-
- // ************************
- // BackendIMAP settings
- // ************************
- // Defines the server to which we want to connect
- 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
- // '@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 false - as attachment)
- define('IMAP_INLINE_FORWARD', false);
- // use imap_mail() to send emails (default) - if false mail() is used
- define('IMAP_USE_IMAPMAIL', true);
- /* BEGIN fmbiete's contribution r1527, ZP-319 */
- // list of folders we want to exclude from sync. Names, or part of it, separated by |
- // example: dovecot.sieve|archive|spam
- define('IMAP_EXCLUDED_FOLDERS', '');
- /* END fmbiete's contribution r1527, ZP-319 */
-
-
- // ************************
- // BackendMaildir settings
- // ************************
- define('MAILDIR_BASE', '/tmp');
- define('MAILDIR_SUBDIR', 'Maildir');
-
- // **********************
- // BackendVCardDir settings
- // **********************
- define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+ // The data provider that we are using
+ define('BACKEND_PROVIDER', '');
/**********************************************************************************
@@ -216,7 +184,7 @@
* Alternative backend to perform SEARCH requests (GAL search)
* By default the main Backend defines the preferred search functionality.
* If set, the Search Provider will always be preferred.
- * Use 'BackendSearchLDAP' to search in a LDAP directory (see backend/searchldap/config.php)
+ * Use 'BackendSearchLDAP' to search in a LDAP directory (see /etc/zarafa/searchldap.php)
*/
define('SEARCH_PROVIDER', '');
// Time in seconds for the server search. Setting it too high might result in timeout.
--- z-push-2.0.6-1616/config.imap.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.imap.php.package 2012-11-04 16:45:03.000000000 +0100
@@ -0,0 +1,79 @@
+<?php
+/***********************************************
+* File : /etc/z-push/imap.php
+* Project : Z-Push
+* Descr : configuration file for the
+* IMAP backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendIMAP" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+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
+// '@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 false - as attachment)
+define('IMAP_INLINE_FORWARD', false);
+
+// use imap_mail() to send emails (default) - if false mail() is used
+define('IMAP_USE_IMAPMAIL', true);
+
+/* BEGIN fmbiete's contribution r1527, ZP-319 */
+// list of folders we want to exclude from sync. Names, or part of it, separated by |
+// example: dovecot.sieve|archive|spam
+define('IMAP_EXCLUDED_FOLDERS', '');
+/* END fmbiete's contribution r1527, ZP-319 */
+
+?>
--- z-push-2.0.6-1616/config.maildir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.maildir.php.package 2012-11-04 16:46:24.000000000 +0100
@@ -0,0 +1,55 @@
+<?php
+/***********************************************
+* File : /etc/z-push/maildir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Maildir backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendMaildir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the Maildir base path
+define('MAILDIR_BASE', '/tmp');
+
+// Defines the name of the Maildir
+define('MAILDIR_SUBDIR', 'Maildir');
+
+?>
--- z-push-2.0.6-1616/config.vcarddir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.vcarddir.php.package 2012-11-04 16:46:55.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/vcarddir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* vCard directory backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendVCardDir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the vCard directory path
+define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+
+?>
--- z-push-2.0.6-1616/backend/zarafa/config.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/backend/zarafa/config.php.package 2012-11-04 16:45:42.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/zarafa.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Zarafa backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendZarafa" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+define('MAPI_SERVER', 'file:///var/run/zarafa');
+
+?>
--- z-push-2.0.6-1616/backend/imap.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/imap.php.package 2012-11-04 17:17:30.000000000 +0100
@@ -43,6 +43,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the IMAP backend's own config file
+require_once("backend/imap/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/maildir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/maildir.php.package 2012-11-04 17:17:47.000000000 +0100
@@ -53,6 +53,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the Maildir backend's own config file
+require_once("backend/maildir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/vcarddir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/vcarddir.php.package 2012-11-04 17:18:06.000000000 +0100
@@ -40,6 +40,10 @@
*
* Consult LICENSE file for details
************************************************/
+
+// Include the vCard directory backend's own config file
+require_once("backend/vcarddir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
class BackendVCardDir extends BackendDiff {
--- z-push-2.0.6-1616/backend/zarafa/zarafa.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/zarafa/zarafa.php.package 2012-11-04 18:34:46.000000000 +0100
@@ -45,6 +45,9 @@
* Consult LICENSE file for details
*************************************************/
+// Include the Zarafa backend's own config file
+require_once("backend/zarafa/config.php");
+
// include PHP-MAPI classes
include_once('backend/zarafa/mapi/mapi.util.php');
include_once('backend/zarafa/mapi/mapidefs.php');
--- z-push-2.0.6-1616/lib/core/zpush.php 2012-06-02 07:03:16.000000000 +0200
+++ z-push-2.0.6-1616/lib/core/zpush.php.package 2012-11-04 18:30:42.000000000 +0100
@@ -439,6 +439,21 @@
if (!isset(ZPush::$backend)) {
// Initialize our backend
$ourBackend = @constant('BACKEND_PROVIDER');
+
+ // Some admin-friendly guessing if no backend has been configured
+ if (empty($ourBackend)) {
+ if (file_exists(REAL_BASE_PATH . "backend/zarafa/"))
+ $ourBackend = "BackendZarafa";
+ elseif (file_exists(REAL_BASE_PATH . "backend/imap/"))
+ $ourBackend = "BackendIMAP";
+ elseif (file_exists(REAL_BASE_PATH . "backend/maildir/"))
+ $ourBackend = "BackendMaildir";
+ elseif (file_exists(REAL_BASE_PATH . "backend/vcarddir/"))
+ $ourBackend = "BackendVCardDir";
+ else
+ throw new FatalMisconfigurationException("No backend provider has been configured. Check configuration!");
+ }
+
self::IncludeBackend($ourBackend);
if (class_exists($ourBackend))
--- z-push-2.0.6-1616/z-push-admin.php 2012-07-21 17:20:52.000000000 +0200
+++ z-push-2.0.6-1616/z-push-admin.php.package 2012-11-04 15:16:15.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
include('lib/core/stateobject.php');
@@ -102,8 +106,6 @@
/************************************************
* MAIN
*/
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
- set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
try {
ZPush::CheckConfig();
ZPushAdminCLI::CheckEnv();
--- z-push-2.0.6-1616/z-push-top.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/z-push-top.php.package 2012-11-08 21:38:01.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/exceptions/exceptions.php');
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
@@ -60,7 +64,6 @@
* MAIN
*/
declare(ticks = 1);
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
try {
ZPush::CheckConfig();
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/z-push/F-16/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- .cvsignore 8 Nov 2012 21:57:01 -0000 1.9
+++ .cvsignore 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,2 +1,2 @@
-z-push-2.0.5-1541.tar.gz
+z-push-2.0.6-1616.tar.gz
z-push-permission.pdf
Index: sources
===================================================================
RCS file: /cvs/free/rpms/z-push/F-16/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- sources 8 Nov 2012 21:57:01 -0000 1.9
+++ sources 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,2 +1,2 @@
-b6f3fdf6bb1f3022f2ae354490562387 z-push-2.0.5-1541.tar.gz
+3473446c5c894402400675234df857c6 z-push-2.0.6-1616.tar.gz
0d25be91b27fe7ebab16ed593c9fbf48 z-push-permission.pdf
Index: z-push.spec
===================================================================
RCS file: /cvs/free/rpms/z-push/F-16/z-push.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- z-push.spec 8 Nov 2012 21:57:01 -0000 1.9
+++ z-push.spec 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,8 +1,8 @@
-%global svnrevision 1541
+%global svnrevision 1616
Summary: ActiveSync over-the-air implementation for mobile syncing
Name: z-push
-Version: 2.0.5
+Version: 2.0.6
Release: 1%{?dist}
License: AGPLv3 with exceptions
Group: Applications/Productivity
@@ -12,7 +12,7 @@
Source2: z-push-README.FEDORA
Source3: z-push.conf
Source4: z-push.logrotate
-Patch0: z-push-2.0.5-package.patch
+Patch0: z-push-2.0.6-package.patch
Requires: httpd, php-iconv, php-sysvsem, php-sysvshm
Requires: coreutils, bash, grep, less, php-pcntl
# Bug: php53 from RHEL 5 does not provide php (#717158)
@@ -101,8 +101,7 @@
%prep
%setup -q -n %{name}-%{version}-%{svnrevision}
-%patch0 -p1 -b .package
-touch -c -r config.php{.package,} config.*.php backend/zarafa/config.php
+%patch0 -p1
%build
@@ -142,7 +141,7 @@
install -D -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
# Remove all unwanted files and directories
-rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{INSTALL,LICENSE,backend/kolab,{.,*,*/*}/*.package}
+rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{INSTALL,LICENSE,backend/kolab}
# Copy permission and README for later usage
cp -pf %{SOURCE1} permission.pdf
@@ -201,6 +200,9 @@
%{_datadir}/%{name}/backend/zarafa/
%changelog
+* Thu Dec 06 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.6-1
+- Upgrade to 2.0.6
+
* Thu Nov 08 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.5-1
- Upgrade to 2.0.5
--- z-push-2.0.5-package.patch DELETED ---
11 years, 11 months
rpms/z-push/EL-5 z-push-2.0.6-package.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 sources, 1.9, 1.10 z-push.spec, 1.10, 1.11 z-push-2.0.5-package.patch, 1.1, NONE
by Robert Scheck
Author: robert
Update of /cvs/free/rpms/z-push/EL-5
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv14067/EL-5
Modified Files:
.cvsignore sources z-push.spec
Added Files:
z-push-2.0.6-package.patch
Removed Files:
z-push-2.0.5-package.patch
Log Message:
Upgrade to 2.0.6
z-push-2.0.6-package.patch:
backend/imap.php | 3 +
backend/maildir.php | 3 +
backend/vcarddir.php | 4 ++
backend/zarafa/config.php | 52 ++++++++++++++++++++++++++++++
backend/zarafa/zarafa.php | 3 +
config.imap.php | 79 ++++++++++++++++++++++++++++++++++++++++++++++
config.maildir.php | 55 ++++++++++++++++++++++++++++++++
config.php | 66 +++++++++-----------------------------
config.vcarddir.php | 52 ++++++++++++++++++++++++++++++
lib/core/zpush.php | 15 ++++++++
z-push-admin.php | 6 ++-
z-push-top.php | 5 ++
12 files changed, 291 insertions(+), 52 deletions(-)
--- NEW FILE z-push-2.0.6-package.patch ---
Patch by Robert Scheck <robert(a)fedoraproject.org> for z-push >= 2.0.6, which changes the
original paths from Z-Push upstream to Fedora compliant ones. Additionally, it splits up
the large configuration file for the multiple data backend providers to allow a much more
flexible RPM packaging.
--- z-push-2.0.6-1616/config.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/config.php.package 2012-11-08 21:34:01.000000000 +0100
@@ -157,57 +157,25 @@
// default: 100 - value used if mobile does not limit amount of items
define('SYNC_MAX_ITEMS', 100);
+
/**********************************************************************************
* Backend settings
+ *
+ * Z-Push supports currently the data backend providers IMAP, Maildir, vCard directory,
+ * Zarafa and a mixture by the combined one. Ensure that the used backend is installed
+ * and proper configured as well:
+ * BackendIMAP - configure /etc/z-push/imap.php (provided by z-push-imap)
+ * BackendMaildir - configure /etc/z-push/maildir.php (provided by z-push-maildir)
+ * BackendVCardDir - configure /etc/z-push/vcarddir.php (provided by z-push-vcarddir)
+ * BackendZarafa - configure /etc/z-push/zarafa.php (provided by z-push-zarafa)
+ * BackendCombined - configure /etc/z-push/combined.php (provided by z-push-combined)
+ * and of course the wanted (at least two) other backend providers
+ * If only one data backend provider has been installed, that one is used by default.
+ * In case of multiple installed data backend providers, Zarafa is preferred over IMAP
+ * over Maildir over vCard directory. The combined backend is never choosen by default.
*/
- // The data providers that we are using (see configuration below)
- define('BACKEND_PROVIDER', "BackendZarafa");
-
-
- // ************************
- // BackendZarafa settings
- // ************************
- // Defines the server to which we want to connect
- define('MAPI_SERVER', 'file:///var/run/zarafa');
-
-
- // ************************
- // BackendIMAP settings
- // ************************
- // Defines the server to which we want to connect
- 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
- // '@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 false - as attachment)
- define('IMAP_INLINE_FORWARD', false);
- // use imap_mail() to send emails (default) - if false mail() is used
- define('IMAP_USE_IMAPMAIL', true);
- /* BEGIN fmbiete's contribution r1527, ZP-319 */
- // list of folders we want to exclude from sync. Names, or part of it, separated by |
- // example: dovecot.sieve|archive|spam
- define('IMAP_EXCLUDED_FOLDERS', '');
- /* END fmbiete's contribution r1527, ZP-319 */
-
-
- // ************************
- // BackendMaildir settings
- // ************************
- define('MAILDIR_BASE', '/tmp');
- define('MAILDIR_SUBDIR', 'Maildir');
-
- // **********************
- // BackendVCardDir settings
- // **********************
- define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+ // The data provider that we are using
+ define('BACKEND_PROVIDER', '');
/**********************************************************************************
@@ -216,7 +184,7 @@
* Alternative backend to perform SEARCH requests (GAL search)
* By default the main Backend defines the preferred search functionality.
* If set, the Search Provider will always be preferred.
- * Use 'BackendSearchLDAP' to search in a LDAP directory (see backend/searchldap/config.php)
+ * Use 'BackendSearchLDAP' to search in a LDAP directory (see /etc/zarafa/searchldap.php)
*/
define('SEARCH_PROVIDER', '');
// Time in seconds for the server search. Setting it too high might result in timeout.
--- z-push-2.0.6-1616/config.imap.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.imap.php.package 2012-11-04 16:45:03.000000000 +0100
@@ -0,0 +1,79 @@
+<?php
+/***********************************************
+* File : /etc/z-push/imap.php
+* Project : Z-Push
+* Descr : configuration file for the
+* IMAP backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendIMAP" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+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
+// '@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 false - as attachment)
+define('IMAP_INLINE_FORWARD', false);
+
+// use imap_mail() to send emails (default) - if false mail() is used
+define('IMAP_USE_IMAPMAIL', true);
+
+/* BEGIN fmbiete's contribution r1527, ZP-319 */
+// list of folders we want to exclude from sync. Names, or part of it, separated by |
+// example: dovecot.sieve|archive|spam
+define('IMAP_EXCLUDED_FOLDERS', '');
+/* END fmbiete's contribution r1527, ZP-319 */
+
+?>
--- z-push-2.0.6-1616/config.maildir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.maildir.php.package 2012-11-04 16:46:24.000000000 +0100
@@ -0,0 +1,55 @@
+<?php
+/***********************************************
+* File : /etc/z-push/maildir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Maildir backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendMaildir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the Maildir base path
+define('MAILDIR_BASE', '/tmp');
+
+// Defines the name of the Maildir
+define('MAILDIR_SUBDIR', 'Maildir');
+
+?>
--- z-push-2.0.6-1616/config.vcarddir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.vcarddir.php.package 2012-11-04 16:46:55.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/vcarddir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* vCard directory backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendVCardDir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the vCard directory path
+define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+
+?>
--- z-push-2.0.6-1616/backend/zarafa/config.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/backend/zarafa/config.php.package 2012-11-04 16:45:42.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/zarafa.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Zarafa backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendZarafa" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+define('MAPI_SERVER', 'file:///var/run/zarafa');
+
+?>
--- z-push-2.0.6-1616/backend/imap.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/imap.php.package 2012-11-04 17:17:30.000000000 +0100
@@ -43,6 +43,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the IMAP backend's own config file
+require_once("backend/imap/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/maildir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/maildir.php.package 2012-11-04 17:17:47.000000000 +0100
@@ -53,6 +53,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the Maildir backend's own config file
+require_once("backend/maildir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/vcarddir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/vcarddir.php.package 2012-11-04 17:18:06.000000000 +0100
@@ -40,6 +40,10 @@
*
* Consult LICENSE file for details
************************************************/
+
+// Include the vCard directory backend's own config file
+require_once("backend/vcarddir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
class BackendVCardDir extends BackendDiff {
--- z-push-2.0.6-1616/backend/zarafa/zarafa.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/zarafa/zarafa.php.package 2012-11-04 18:34:46.000000000 +0100
@@ -45,6 +45,9 @@
* Consult LICENSE file for details
*************************************************/
+// Include the Zarafa backend's own config file
+require_once("backend/zarafa/config.php");
+
// include PHP-MAPI classes
include_once('backend/zarafa/mapi/mapi.util.php');
include_once('backend/zarafa/mapi/mapidefs.php');
--- z-push-2.0.6-1616/lib/core/zpush.php 2012-06-02 07:03:16.000000000 +0200
+++ z-push-2.0.6-1616/lib/core/zpush.php.package 2012-11-04 18:30:42.000000000 +0100
@@ -439,6 +439,21 @@
if (!isset(ZPush::$backend)) {
// Initialize our backend
$ourBackend = @constant('BACKEND_PROVIDER');
+
+ // Some admin-friendly guessing if no backend has been configured
+ if (empty($ourBackend)) {
+ if (file_exists(REAL_BASE_PATH . "backend/zarafa/"))
+ $ourBackend = "BackendZarafa";
+ elseif (file_exists(REAL_BASE_PATH . "backend/imap/"))
+ $ourBackend = "BackendIMAP";
+ elseif (file_exists(REAL_BASE_PATH . "backend/maildir/"))
+ $ourBackend = "BackendMaildir";
+ elseif (file_exists(REAL_BASE_PATH . "backend/vcarddir/"))
+ $ourBackend = "BackendVCardDir";
+ else
+ throw new FatalMisconfigurationException("No backend provider has been configured. Check configuration!");
+ }
+
self::IncludeBackend($ourBackend);
if (class_exists($ourBackend))
--- z-push-2.0.6-1616/z-push-admin.php 2012-07-21 17:20:52.000000000 +0200
+++ z-push-2.0.6-1616/z-push-admin.php.package 2012-11-04 15:16:15.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
include('lib/core/stateobject.php');
@@ -102,8 +106,6 @@
/************************************************
* MAIN
*/
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
- set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
try {
ZPush::CheckConfig();
ZPushAdminCLI::CheckEnv();
--- z-push-2.0.6-1616/z-push-top.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/z-push-top.php.package 2012-11-08 21:38:01.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/exceptions/exceptions.php');
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
@@ -60,7 +64,6 @@
* MAIN
*/
declare(ticks = 1);
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
try {
ZPush::CheckConfig();
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/z-push/EL-5/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- .cvsignore 8 Nov 2012 21:57:56 -0000 1.9
+++ .cvsignore 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,2 +1,2 @@
-z-push-2.0.5-1541.tar.gz
+z-push-2.0.6-1616.tar.gz
z-push-permission.pdf
Index: sources
===================================================================
RCS file: /cvs/free/rpms/z-push/EL-5/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- sources 8 Nov 2012 21:57:57 -0000 1.9
+++ sources 6 Dec 2012 22:00:10 -0000 1.10
@@ -1,2 +1,2 @@
-b6f3fdf6bb1f3022f2ae354490562387 z-push-2.0.5-1541.tar.gz
+3473446c5c894402400675234df857c6 z-push-2.0.6-1616.tar.gz
0d25be91b27fe7ebab16ed593c9fbf48 z-push-permission.pdf
Index: z-push.spec
===================================================================
RCS file: /cvs/free/rpms/z-push/EL-5/z-push.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- z-push.spec 8 Nov 2012 22:19:28 -0000 1.10
+++ z-push.spec 6 Dec 2012 22:00:10 -0000 1.11
@@ -1,8 +1,8 @@
-%global svnrevision 1541
+%global svnrevision 1616
Summary: ActiveSync over-the-air implementation for mobile syncing
Name: z-push
-Version: 2.0.5
+Version: 2.0.6
Release: 1%{?dist}
License: AGPLv3 with exceptions
Group: Applications/Productivity
@@ -12,7 +12,7 @@
Source2: z-push-README.FEDORA
Source3: z-push.conf
Source4: z-push.logrotate
-Patch0: z-push-2.0.5-package.patch
+Patch0: z-push-2.0.6-package.patch
Requires: httpd, php-iconv, php-sysvsem, php-sysvshm
Requires: coreutils, bash, grep, less, php-pcntl
# Bug: php53 from RHEL 5 does not provide php (#717158)
@@ -200,6 +200,9 @@
%{_datadir}/%{name}/backend/zarafa/
%changelog
+* Thu Dec 06 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.6-1
+- Upgrade to 2.0.6
+
* Thu Nov 08 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.5-1
- Upgrade to 2.0.5
--- z-push-2.0.5-package.patch DELETED ---
11 years, 11 months
rpms/z-push/devel z-push-2.0.6-package.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 sources, 1.9, 1.10 z-push.spec, 1.10, 1.11 z-push-2.0.5-package.patch, 1.1, NONE
by Robert Scheck
Author: robert
Update of /cvs/free/rpms/z-push/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv14067/devel
Modified Files:
.cvsignore sources z-push.spec
Added Files:
z-push-2.0.6-package.patch
Removed Files:
z-push-2.0.5-package.patch
Log Message:
Upgrade to 2.0.6
z-push-2.0.6-package.patch:
backend/imap.php | 3 +
backend/maildir.php | 3 +
backend/vcarddir.php | 4 ++
backend/zarafa/config.php | 52 ++++++++++++++++++++++++++++++
backend/zarafa/zarafa.php | 3 +
config.imap.php | 79 ++++++++++++++++++++++++++++++++++++++++++++++
config.maildir.php | 55 ++++++++++++++++++++++++++++++++
config.php | 66 +++++++++-----------------------------
config.vcarddir.php | 52 ++++++++++++++++++++++++++++++
lib/core/zpush.php | 15 ++++++++
z-push-admin.php | 6 ++-
z-push-top.php | 5 ++
12 files changed, 291 insertions(+), 52 deletions(-)
--- NEW FILE z-push-2.0.6-package.patch ---
Patch by Robert Scheck <robert(a)fedoraproject.org> for z-push >= 2.0.6, which changes the
original paths from Z-Push upstream to Fedora compliant ones. Additionally, it splits up
the large configuration file for the multiple data backend providers to allow a much more
flexible RPM packaging.
--- z-push-2.0.6-1616/config.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/config.php.package 2012-11-08 21:34:01.000000000 +0100
@@ -157,57 +157,25 @@
// default: 100 - value used if mobile does not limit amount of items
define('SYNC_MAX_ITEMS', 100);
+
/**********************************************************************************
* Backend settings
+ *
+ * Z-Push supports currently the data backend providers IMAP, Maildir, vCard directory,
+ * Zarafa and a mixture by the combined one. Ensure that the used backend is installed
+ * and proper configured as well:
+ * BackendIMAP - configure /etc/z-push/imap.php (provided by z-push-imap)
+ * BackendMaildir - configure /etc/z-push/maildir.php (provided by z-push-maildir)
+ * BackendVCardDir - configure /etc/z-push/vcarddir.php (provided by z-push-vcarddir)
+ * BackendZarafa - configure /etc/z-push/zarafa.php (provided by z-push-zarafa)
+ * BackendCombined - configure /etc/z-push/combined.php (provided by z-push-combined)
+ * and of course the wanted (at least two) other backend providers
+ * If only one data backend provider has been installed, that one is used by default.
+ * In case of multiple installed data backend providers, Zarafa is preferred over IMAP
+ * over Maildir over vCard directory. The combined backend is never choosen by default.
*/
- // The data providers that we are using (see configuration below)
- define('BACKEND_PROVIDER', "BackendZarafa");
-
-
- // ************************
- // BackendZarafa settings
- // ************************
- // Defines the server to which we want to connect
- define('MAPI_SERVER', 'file:///var/run/zarafa');
-
-
- // ************************
- // BackendIMAP settings
- // ************************
- // Defines the server to which we want to connect
- 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
- // '@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 false - as attachment)
- define('IMAP_INLINE_FORWARD', false);
- // use imap_mail() to send emails (default) - if false mail() is used
- define('IMAP_USE_IMAPMAIL', true);
- /* BEGIN fmbiete's contribution r1527, ZP-319 */
- // list of folders we want to exclude from sync. Names, or part of it, separated by |
- // example: dovecot.sieve|archive|spam
- define('IMAP_EXCLUDED_FOLDERS', '');
- /* END fmbiete's contribution r1527, ZP-319 */
-
-
- // ************************
- // BackendMaildir settings
- // ************************
- define('MAILDIR_BASE', '/tmp');
- define('MAILDIR_SUBDIR', 'Maildir');
-
- // **********************
- // BackendVCardDir settings
- // **********************
- define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+ // The data provider that we are using
+ define('BACKEND_PROVIDER', '');
/**********************************************************************************
@@ -216,7 +184,7 @@
* Alternative backend to perform SEARCH requests (GAL search)
* By default the main Backend defines the preferred search functionality.
* If set, the Search Provider will always be preferred.
- * Use 'BackendSearchLDAP' to search in a LDAP directory (see backend/searchldap/config.php)
+ * Use 'BackendSearchLDAP' to search in a LDAP directory (see /etc/zarafa/searchldap.php)
*/
define('SEARCH_PROVIDER', '');
// Time in seconds for the server search. Setting it too high might result in timeout.
--- z-push-2.0.6-1616/config.imap.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.imap.php.package 2012-11-04 16:45:03.000000000 +0100
@@ -0,0 +1,79 @@
+<?php
+/***********************************************
+* File : /etc/z-push/imap.php
+* Project : Z-Push
+* Descr : configuration file for the
+* IMAP backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendIMAP" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+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
+// '@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 false - as attachment)
+define('IMAP_INLINE_FORWARD', false);
+
+// use imap_mail() to send emails (default) - if false mail() is used
+define('IMAP_USE_IMAPMAIL', true);
+
+/* BEGIN fmbiete's contribution r1527, ZP-319 */
+// list of folders we want to exclude from sync. Names, or part of it, separated by |
+// example: dovecot.sieve|archive|spam
+define('IMAP_EXCLUDED_FOLDERS', '');
+/* END fmbiete's contribution r1527, ZP-319 */
+
+?>
--- z-push-2.0.6-1616/config.maildir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.maildir.php.package 2012-11-04 16:46:24.000000000 +0100
@@ -0,0 +1,55 @@
+<?php
+/***********************************************
+* File : /etc/z-push/maildir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Maildir backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendMaildir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the Maildir base path
+define('MAILDIR_BASE', '/tmp');
+
+// Defines the name of the Maildir
+define('MAILDIR_SUBDIR', 'Maildir');
+
+?>
--- z-push-2.0.6-1616/config.vcarddir.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/config.vcarddir.php.package 2012-11-04 16:46:55.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/vcarddir.php
+* Project : Z-Push
+* Descr : configuration file for the
+* vCard directory backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendVCardDir" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the vCard directory path
+define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
+
+?>
--- z-push-2.0.6-1616/backend/zarafa/config.php 1970-01-01 01:00:00.000000000 +0100
+++ z-push-2.0.6-1616/backend/zarafa/config.php.package 2012-11-04 16:45:42.000000000 +0100
@@ -0,0 +1,52 @@
+<?php
+/***********************************************
+* File : /etc/z-push/zarafa.php
+* Project : Z-Push
+* Descr : configuration file for the
+* Zarafa backend.
+*
+* Created : 01.10.2007
+*
+* Copyright 2007 - 2012 Zarafa Deutschland GmbH
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License, version 3,
+* as published by the Free Software Foundation with the following additional
+* term according to sec. 7:
+*
+* According to sec. 7 of the GNU Affero General Public License, version 3,
+* the terms of the AGPL are supplemented with the following terms:
+*
+* "Zarafa" is a registered trademark of Zarafa B.V.
+* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
+* The licensing of the Program under the AGPL does not imply a trademark license.
+* Therefore any rights, title and interest in our trademarks remain entirely with us.
+*
+* However, if you propagate an unmodified version of the Program you are
+* allowed to use the term "Z-Push" to indicate that you distribute the Program.
+* Furthermore you may use our trademarks where it is necessary to indicate
+* the intended purpose of a product or service provided you use it in accordance
+* with honest practices in industrial or commercial matters.
+* If you want to propagate modified versions of the Program under the name "Z-Push",
+* you may only do so if you have a written permission by Zarafa Deutschland GmbH
+* (to acquire a permission please contact Zarafa at trademark(a)zarafa.com).
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* Consult LICENSE file for details
+************************************************/
+
+// Please do not forget to configure "BACKEND_PROVIDER" in /etc/z-push/config.php to
+// either "BackendZarafa" or "BackendCombined", if more than one data backend provider
+// has been installed!
+
+// Defines the server to which we want to connect
+define('MAPI_SERVER', 'file:///var/run/zarafa');
+
+?>
--- z-push-2.0.6-1616/backend/imap.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/imap.php.package 2012-11-04 17:17:30.000000000 +0100
@@ -43,6 +43,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the IMAP backend's own config file
+require_once("backend/imap/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/maildir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/maildir.php.package 2012-11-04 17:17:47.000000000 +0100
@@ -53,6 +53,9 @@
* Consult LICENSE file for details
************************************************/
+// Include the Maildir backend's own config file
+require_once("backend/maildir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
include_once('include/mimeDecode.php');
require_once('include/z_RFC822.php');
--- z-push-2.0.6-1616/backend/vcarddir.php 2012-02-07 21:24:18.000000000 +0100
+++ z-push-2.0.6-1616/backend/vcarddir.php.package 2012-11-04 17:18:06.000000000 +0100
@@ -40,6 +40,10 @@
*
* Consult LICENSE file for details
************************************************/
+
+// Include the vCard directory backend's own config file
+require_once("backend/vcarddir/config.php");
+
include_once('lib/default/diffbackend/diffbackend.php');
class BackendVCardDir extends BackendDiff {
--- z-push-2.0.6-1616/backend/zarafa/zarafa.php 2012-08-30 21:41:25.000000000 +0200
+++ z-push-2.0.6-1616/backend/zarafa/zarafa.php.package 2012-11-04 18:34:46.000000000 +0100
@@ -45,6 +45,9 @@
* Consult LICENSE file for details
*************************************************/
+// Include the Zarafa backend's own config file
+require_once("backend/zarafa/config.php");
+
// include PHP-MAPI classes
include_once('backend/zarafa/mapi/mapi.util.php');
include_once('backend/zarafa/mapi/mapidefs.php');
--- z-push-2.0.6-1616/lib/core/zpush.php 2012-06-02 07:03:16.000000000 +0200
+++ z-push-2.0.6-1616/lib/core/zpush.php.package 2012-11-04 18:30:42.000000000 +0100
@@ -439,6 +439,21 @@
if (!isset(ZPush::$backend)) {
// Initialize our backend
$ourBackend = @constant('BACKEND_PROVIDER');
+
+ // Some admin-friendly guessing if no backend has been configured
+ if (empty($ourBackend)) {
+ if (file_exists(REAL_BASE_PATH . "backend/zarafa/"))
+ $ourBackend = "BackendZarafa";
+ elseif (file_exists(REAL_BASE_PATH . "backend/imap/"))
+ $ourBackend = "BackendIMAP";
+ elseif (file_exists(REAL_BASE_PATH . "backend/maildir/"))
+ $ourBackend = "BackendMaildir";
+ elseif (file_exists(REAL_BASE_PATH . "backend/vcarddir/"))
+ $ourBackend = "BackendVCardDir";
+ else
+ throw new FatalMisconfigurationException("No backend provider has been configured. Check configuration!");
+ }
+
self::IncludeBackend($ourBackend);
if (class_exists($ourBackend))
--- z-push-2.0.6-1616/z-push-admin.php 2012-07-21 17:20:52.000000000 +0200
+++ z-push-2.0.6-1616/z-push-admin.php.package 2012-11-04 15:16:15.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
include('lib/core/stateobject.php');
@@ -102,8 +106,6 @@
/************************************************
* MAIN
*/
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
- set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
try {
ZPush::CheckConfig();
ZPushAdminCLI::CheckEnv();
--- z-push-2.0.6-1616/z-push-top.php 2012-10-17 22:57:36.000000000 +0200
+++ z-push-2.0.6-1616/z-push-top.php.package 2012-11-08 21:38:01.000000000 +0100
@@ -44,6 +44,10 @@
* Consult LICENSE file for details
************************************************/
+// Script stays in /usr/sbin and is not a symlink to /usr/share/z-push
+define('BASE_PATH_CLI', "/usr/share/z-push/");
+set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
+
include('lib/exceptions/exceptions.php');
include('lib/core/zpushdefs.php');
include('lib/core/zpush.php');
@@ -60,7 +64,6 @@
* MAIN
*/
declare(ticks = 1);
- define('BASE_PATH_CLI', dirname(__FILE__) ."/");
try {
ZPush::CheckConfig();
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/z-push/devel/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- .cvsignore 8 Nov 2012 21:38:17 -0000 1.9
+++ .cvsignore 6 Dec 2012 22:00:11 -0000 1.10
@@ -1,2 +1,2 @@
-z-push-2.0.5-1541.tar.gz
+z-push-2.0.6-1616.tar.gz
z-push-permission.pdf
Index: sources
===================================================================
RCS file: /cvs/free/rpms/z-push/devel/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- sources 8 Nov 2012 21:38:17 -0000 1.9
+++ sources 6 Dec 2012 22:00:11 -0000 1.10
@@ -1,2 +1,2 @@
-b6f3fdf6bb1f3022f2ae354490562387 z-push-2.0.5-1541.tar.gz
+3473446c5c894402400675234df857c6 z-push-2.0.6-1616.tar.gz
0d25be91b27fe7ebab16ed593c9fbf48 z-push-permission.pdf
Index: z-push.spec
===================================================================
RCS file: /cvs/free/rpms/z-push/devel/z-push.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- z-push.spec 8 Nov 2012 22:21:33 -0000 1.10
+++ z-push.spec 6 Dec 2012 22:00:11 -0000 1.11
@@ -1,8 +1,8 @@
-%global svnrevision 1541
+%global svnrevision 1616
Summary: ActiveSync over-the-air implementation for mobile syncing
Name: z-push
-Version: 2.0.5
+Version: 2.0.6
Release: 1%{?dist}
License: AGPLv3 with exceptions
Group: Applications/Productivity
@@ -12,7 +12,7 @@
Source2: z-push-README.FEDORA
Source3: z-push.conf
Source4: z-push.logrotate
-Patch0: z-push-2.0.5-package.patch
+Patch0: z-push-2.0.6-package.patch
Requires: httpd, php-iconv, php-sysvsem, php-sysvshm
Requires: coreutils, bash, grep, less, php-pcntl
# Bug: php53 from RHEL 5 does not provide php (#717158)
@@ -200,6 +200,9 @@
%{_datadir}/%{name}/backend/zarafa/
%changelog
+* Thu Dec 06 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.6-1
+- Upgrade to 2.0.6
+
* Thu Nov 08 2012 Robert Scheck <robert(a)fedoraproject.org> 2.0.5-1
- Upgrade to 2.0.5
--- z-push-2.0.5-package.patch DELETED ---
11 years, 11 months
rpms/motion/F-17 motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch, NONE, 1.1 motion.spec, 1.15, 1.16 sources, 1.9, 1.10
by Tomasz Torcz
Author: ttorcz
Update of /cvs/free/rpms/motion/F-17
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv9133
Modified Files:
motion.spec sources
Added Files:
motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch
Log Message:
* Thu Dec 06 2012 Tomasz Torcz <ttorcz(a)fedoraproject.org> - 3.3.3-trunkREV557.1
- synchronize with F-18 package version:
- newest snapshot
- compatibility with newest ffmpeg
- patch for ARM compilation
motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch:
ffmpeg.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- NEW FILE motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch ---
>From dcb186cb3ad6666d66aba6453031203ba1f6c15a Mon Sep 17 00:00:00 2001
From: Tomasz Torcz <tomek(a)pipebreaker.pl>
Date: Mon, 3 Dec 2012 14:25:50 +0100
Subject: [PATCH] emit asm "emms" only on x86 and amd64 arches
Fixes compilation error on ARM:
armv5tel - Error: bad instruction `emms`
---
ffmpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 1c2ae47..57eeda4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1000,7 +1000,7 @@ void ffmpeg_deinterlace(unsigned char *img, int width, int height)
/* We assume using 'PIX_FMT_YUV420P' always */
avpicture_deinterlace(&picture, &picture, PIX_FMT_YUV420P, width, height);
-#ifndef __SSE_MATH__
+#if !defined(__SSE_MATH__) && (defined(__i386__) || defined(__x86_64__))
__asm__ __volatile__ ( "emms");
#endif
--
1.7.11.7
Index: motion.spec
===================================================================
RCS file: /cvs/free/rpms/motion/F-17/motion.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- motion.spec 28 Feb 2012 11:44:54 -0000 1.15
+++ motion.spec 6 Dec 2012 20:01:38 -0000 1.16
@@ -1,12 +1,13 @@
Name: motion
Version: 3.3.0
-Release: trunkREV534%{?dist}.2
+Release: trunkREV557.1%{?dist}
Summary: A motion detection system
Group: Applications/Multimedia
License: GPLv2+
URL: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Patch0: motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libjpeg-devel ffmpeg-devel zlib-devel
@@ -26,6 +27,7 @@
%prep
%setup -q
+%patch0 -p1
%build
%configure --sysconfdir=%{_sysconfdir}/%{name} --without-optimizecpu --with-ffmpeg --without-mysql --without-pgsql
@@ -95,6 +97,12 @@
%attr(0755,root,root) %{_initrddir}/%{name}
%changelog
+* Thu Dec 06 2012 Tomasz Torcz <ttorcz(a)fedoraproject.org> - 3.3.3-trunkREV557.1
+- synchronize with F-18 package version:
+ - newest snapshot
+ - compatibility with newest ffmpeg
+ - patch for ARM compilation
+
* Tue Feb 28 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 3.3.0-trunkREV534.2
- Rebuilt for x264/FFmpeg
Index: sources
===================================================================
RCS file: /cvs/free/rpms/motion/F-17/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- sources 1 Oct 2011 13:03:24 -0000 1.9
+++ sources 6 Dec 2012 20:01:38 -0000 1.10
@@ -1 +1 @@
-ecc497ec9307aef283c1bc0cae3adf4e motion-3.3.0.tar.gz
+a11826f948e0d99120b32123679d5fc5 motion-3.3.0.tar.gz
11 years, 11 months
rpms/xorg-x11-drv-catalyst/F-18 xorg-x11-drv-catalyst.spec,1.10,1.11
by Leigh Scott
Author: leigh123linux
Update of /cvs/nonfree/rpms/xorg-x11-drv-catalyst/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv24156
Modified Files:
xorg-x11-drv-catalyst.spec
Log Message:
* Wed Dec 05 2012 Leigh Scott <leigh123linux(a)googlemail.com> - 12.11-0.3.beta11
- Update to Catalyst 12.11 beta11 (internal version 9.01.8)
- add blacklist file to %{_prefix}/lib/modprobe.d/
Index: xorg-x11-drv-catalyst.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-catalyst/F-18/xorg-x11-drv-catalyst.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- xorg-x11-drv-catalyst.spec 5 Dec 2012 14:38:13 -0000 1.10
+++ xorg-x11-drv-catalyst.spec 5 Dec 2012 14:48:20 -0000 1.11
@@ -404,7 +404,7 @@
%changelog
* Wed Dec 05 2012 Leigh Scott <leigh123linux(a)googlemail.com> - 12.11-0.3.beta11
-- Update to Catalyst 12.11 beta (internal version 9.01.8)
+- Update to Catalyst 12.11 beta11 (internal version 9.01.8)
- add blacklist file to %%{_prefix}/lib/modprobe.d/
* Mon Nov 05 2012 Leigh Scott <leigh123linux(a)googlemail.com> - 12.11-0.2.beta
11 years, 11 months
rpms/catalyst-kmod/F-18 catalyst-kmod.spec,1.20,1.21 sources,1.8,1.9
by Leigh Scott
Author: leigh123linux
Update of /cvs/nonfree/rpms/catalyst-kmod/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv24035
Modified Files:
catalyst-kmod.spec sources
Log Message:
* Wed Dec 05 2012 Leigh Scott <leigh123linux(a)googlemail.com> - 12.11-0.2.beta11
- Update to Catalyst 12.11 beta11 (internal version 9.01.8)
Index: catalyst-kmod.spec
===================================================================
RCS file: /cvs/nonfree/rpms/catalyst-kmod/F-18/catalyst-kmod.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- catalyst-kmod.spec 25 Nov 2012 22:09:25 -0000 1.20
+++ catalyst-kmod.spec 5 Dec 2012 14:47:37 -0000 1.21
@@ -13,7 +13,7 @@
Name: catalyst-kmod
Version: 12.11
-Release: 0.1.beta%{?dist}.2
+Release: 0.2.beta11%{?dist}
# Taken over by kmodtool
Summary: AMD display driver kernel module
Group: System Environment/Kernel
@@ -97,6 +97,9 @@
%changelog
+* Wed Dec 05 2012 Leigh Scott <leigh123linux(a)googlemail.com> - 12.11-0.2.beta11
+- Update to Catalyst 12.11 beta11 (internal version 9.01.8)
+
* Sun Nov 25 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 12.11-0.1.beta.2
- Rebuilt for current f18 kernel
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/catalyst-kmod/F-18/sources,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- sources 27 Oct 2012 01:04:56 -0000 1.8
+++ sources 5 Dec 2012 14:47:38 -0000 1.9
@@ -1 +1 @@
-9dcbe7641bae850c0b58b34e5f2c1306 catalyst-kmod-data-12.11.tar.bz2
+7d65830286cc5ebb007a8941accfb5fd catalyst-kmod-data-12.11.tar.bz2
11 years, 11 months
rpms/xorg-x11-drv-catalyst/F-18 blacklist-radeon.conf, 1.2, 1.3 .cvsignore, 1.8, 1.9 sources, 1.8, 1.9 xorg-x11-drv-catalyst.spec, 1.9, 1.10
by Leigh Scott
Author: leigh123linux
Update of /cvs/nonfree/rpms/xorg-x11-drv-catalyst/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv23723
Modified Files:
.cvsignore sources xorg-x11-drv-catalyst.spec
Added Files:
blacklist-radeon.conf
Log Message:
* Wed Dec 05 2012 Leigh Scott <leigh123linux(a)googlemail.com> - 12.11-0.3.beta11
- Update to Catalyst 12.11 beta (internal version 9.01.8)
- add blacklist file to %{_prefix}/lib/modprobe.d/
Index: blacklist-radeon.conf
===================================================================
RCS file: blacklist-radeon.conf
diff -N blacklist-radeon.conf
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ blacklist-radeon.conf 5 Dec 2012 14:38:13 -0000 1.3
@@ -0,0 +1,4 @@
+# RPM Fusion blacklist for radeon driver - you need to run as root:
+# dracut -f /boot/initramfs-$(uname -r).img $(uname -r)
+# if radeon is loaded despite this file.
+blacklist radeon
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-catalyst/F-18/.cvsignore,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- .cvsignore 27 Oct 2012 00:57:55 -0000 1.8
+++ .cvsignore 5 Dec 2012 14:38:13 -0000 1.9
@@ -3,3 +3,4 @@
amd-driver-installer-12-9-beta-x86.x86_64.zip
amd-driver-installer-catalyst-12.10-x86.x86_64.zip
amd-driver-installer-catalyst-12.11-beta-x86.x86_64.zip
+amd-driver-installer-catalyst-12.11-beta11-x86.x86_64.zip
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-catalyst/F-18/sources,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- sources 27 Oct 2012 00:57:55 -0000 1.8
+++ sources 5 Dec 2012 14:38:13 -0000 1.9
@@ -1,2 +1,2 @@
b8f56bc55aa70cb19dd12857fdc184cc xvba-sdk-0.74-404001.tar.gz
-ccc6ff5a522b680b9a40a33304e8c8e5 amd-driver-installer-catalyst-12.11-beta-x86.x86_64.zip
+f9661807df829c5398aeae5f9fd5ffea amd-driver-installer-catalyst-12.11-beta11-x86.x86_64.zip
Index: xorg-x11-drv-catalyst.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-catalyst/F-18/xorg-x11-drv-catalyst.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- xorg-x11-drv-catalyst.spec 5 Nov 2012 20:46:59 -0000 1.9
+++ xorg-x11-drv-catalyst.spec 5 Dec 2012 14:38:13 -0000 1.10
@@ -1,16 +1,16 @@
%global atilibdir %{_libdir}/catalyst
-%global amdrun amd-driver-installer-catalyst-12.11-beta-x86.x86_64.run
+%global amdrun amd-driver-installer-catalyst-12.11-beta11-x86.x86_64.run
%global debug_package %{nil}
%global __strip /bin/true
Name: xorg-x11-drv-catalyst
Version: 12.11
-Release: 0.2.beta%{?dist}
+Release: 0.3.beta11%{?dist}
Summary: AMD's proprietary driver for ATI graphic cards
Group: User Interface/X Hardware Support
License: Redistributable, no modification permitted
URL: http://www.ati.com/support/drivers/linux/radeon-linux.html
-Source0: http://www2.ati.com/drivers/beta/amd-driver-installer-catalyst-12.11-beta...
+Source0: http://www2.ati.com/drivers/beta/amd-driver-installer-catalyst-12.11-beta...
Source1: http://developer.amd.com/downloads/xvba-sdk-0.74-404001.tar.gz
Source2: catalyst-README.Fedora
Source3: amdcccle.desktop
@@ -20,6 +20,7 @@
Source7: catalyst-a-lid-aticonfig
Source8: 00-catalyst-modulepath.conf
Source9: 01-catalyst-videodriver.conf
+Source10: blacklist-radeon.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -293,6 +294,10 @@
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
echo "%{atilibdir}" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/catalyst-%{_lib}.conf
+#Blacklist radeon
+install -m 0755 -d $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d/
+install -p -m 0644 %{SOURCE10} $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d/
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -343,6 +348,7 @@
%dir %{_sysconfdir}/ati/
%doc %{_docdir}/amdcccle/ccc_copyrights.txt
%config(noreplace) %{_sysconfdir}/security/console.apps/amdcccle-su
+%config(noreplace) %{_prefix}/lib/modprobe.d/blacklist-radeon.conf
%config %{_sysconfdir}/X11/xorg.conf.d/*catalyst*.conf
%{_sysconfdir}/ati/atiogl.xml
%{_sysconfdir}/ati/atiapfxx.blb
@@ -397,6 +403,10 @@
%changelog
+* Wed Dec 05 2012 Leigh Scott <leigh123linux(a)googlemail.com> - 12.11-0.3.beta11
+- Update to Catalyst 12.11 beta (internal version 9.01.8)
+- add blacklist file to %%{_prefix}/lib/modprobe.d/
+
* Mon Nov 05 2012 Leigh Scott <leigh123linux(a)googlemail.com> - 12.11-0.2.beta
- update blacklist scriptlets
11 years, 11 months