Hello community,
here is the log from the commit of package libopensync-plugin-sunbird
checked in at Thu Aug 16 00:59:09 CEST 2007.
--------
New Changes file:
--- /dev/null 2006-09-20 18:56:23.000000000 +0200
+++ /mounts/work_src_done/STABLE/libopensync-plugin-sunbird/libopensync-plugin-sunbird.changes 2007-08-15 20:04:12.000000000 +0200
@@ -0,0 +1,42 @@
+-------------------------------------------------------------------
+Wed Aug 15 20:03:35 CEST 2007 - cstender@suse.de
+
+- added libopensync-plugin-sunbird-readonly-fix.diff, which enables
+ synchronization with google-calendar
+
+-------------------------------------------------------------------
+Wed Jun 13 01:25:41 CEST 2007 - ro@suse.de
+
+- added -fgnu89-inline to cflags
+
+-------------------------------------------------------------------
+Thu Mar 29 17:30:32 CEST 2007 - cstender@suse.de
+
+- bumped version to 0.22
+
+-------------------------------------------------------------------
+Mon Nov 6 18:25:00 CET 2006 - cstender@suse.de
+
+- bumped version to 0.20
+
+-------------------------------------------------------------------
+Fri Sep 29 17:46:54 CEST 2006 - cstender@suse.de
+
+- updated to version 0.19
+
+-------------------------------------------------------------------
+Mon Aug 28 12:39:32 CEST 2006 - cstender@suse.de
+
+- updated to version 0.18+svn1233
+ o added initial support for SSL
+
+-------------------------------------------------------------------
+Thu Jul 20 20:04:46 CEST 2006 - olh@suse.de
+
+- remove neon and openssl from requires
+
+-------------------------------------------------------------------
+Thu Jul 6 14:14:03 CEST 2006 - dgollub@suse.de
+
+- initial import of OpenSync plugin sunbird-sync - 0.18_SVN1095
+
New:
----
libopensync-plugin-sunbird-0.22.tar.bz2
libopensync-plugin-sunbird.changes
libopensync-plugin-sunbird-readonly-fix.diff
libopensync-plugin-sunbird.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libopensync-plugin-sunbird.spec ++++++
#
# spec file for package libopensync-plugin-sunbird (Version 0.22)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libopensync-plugin-sunbird
BuildRequires: libopensync-devel neon-devel openssl-devel
URL: http://www.opensync.org
Version: 0.22
Release: 38
Summary: Mozilla Calendar / Sunbird Synchronization Plug-In for OpenSync
License: LGPL v2 or later
Group: Productivity/Other
Autoreqprov: on
Source: %{name}-%{version}.tar.bz2
Patch0: libopensync-plugin-sunbird-readonly-fix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define prefix /usr
%description
This plug-in allows applications using OpenSync to synchronize to and
from Mozilla Calendar / Sunbird.
Additionally install the libopensync package.
Authors:
--------
Markus Meyer
%prep
%setup -q
%patch0
%build
autoreconf -sfi
CFLAGS="$RPM_OPT_FLAGS -fgnu89-inline" ./configure --prefix=%_prefix --libdir=%_libdir --localstatedir=%_localstatedir
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
# only needed for development, and currently there's no package needing it.
rm $RPM_BUILD_ROOT/%{_libdir}/opensync/plugins/sunbird_sync.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_libdir}/opensync/plugins/sunbird_sync.so
%{_datadir}/opensync/defaults/sunbird-sync
%doc AUTHORS COPYING INSTALL ChangeLog NEWS README
%changelog
* Wed Aug 15 2007 - cstender@suse.de
- added libopensync-plugin-sunbird-readonly-fix.diff, which enables
synchronization with google-calendar
* Wed Jun 13 2007 - ro@suse.de
- added -fgnu89-inline to cflags
* Thu Mar 29 2007 - cstender@suse.de
- bumped version to 0.22
* Mon Nov 06 2006 - cstender@suse.de
- bumped version to 0.20
* Fri Sep 29 2006 - cstender@suse.de
- updated to version 0.19
* Mon Aug 28 2006 - cstender@suse.de
- updated to version 0.18+svn1233
o added initial support for SSL
* Thu Jul 20 2006 - olh@suse.de
- remove neon and openssl from requires
* Thu Jul 06 2006 - dgollub@suse.de
- initial import of OpenSync plugin sunbird-sync - 0.18_SVN1095
++++++ libopensync-plugin-sunbird-readonly-fix.diff ++++++
Index: src/sunbird_sync.c
===================================================================
--- src/sunbird_sync.c (Revision 1860)
+++ src/sunbird_sync.c (Revision 2371)
@@ -57,11 +57,10 @@
GString* get_local_path_from_url(plugin_environment* env, const char* url)
{
GString* gstr;
- const char* p = url + strlen(url);
- while (p > url && *p != '/')
- p--;
- gstr = g_string_new(get_datapath(env));
- g_string_append(gstr, p);
+ guint hash;
+ gstr = g_string_new(NULL);
+ hash = g_string_hash(g_string_new(url));
+ g_string_printf(gstr, "%s/%x.ics", get_datapath(env), hash);
return gstr;
}
@@ -106,15 +105,17 @@
if (cfg->typ == TYP_WEBDAV)
{
- int tmpresult;
+ int tmpresult=0;
GString *local_path = get_local_path_from_url(env, cfg->filename->str);
if (upload)
{
- osync_trace(TRACE_INTERNAL, "Uploading %s -> %s",
- local_path->str, cfg->filename->str);
- tmpresult = webdav_upload(local_path->str, cfg->filename->str,
- cfg->username->str, cfg->password->str);
+ if(!cfg->isreadonly){
+ osync_trace(TRACE_INTERNAL, "Uploading %s -> %s",
+ local_path->str, cfg->filename->str);
+ tmpresult = webdav_upload(local_path->str, cfg->filename->str,
+ cfg->username->str, cfg->password->str);
+ }
} else
{
osync_trace(TRACE_INTERNAL, "Downloading %s -> %s",
@@ -569,13 +570,14 @@
strcmp((char*)cur->name, "file")== 0 || strcmp((char*)cur->name, "webdav") == 0))
{
plugin_calendar_config *cfg;
- xmlChar *attr_default, *attr_username, *attr_password;
+ xmlChar *attr_default, *attr_username, *attr_password, *attr_isreadonly;
xmlChar *attr_filename, *attr_deletedaysold;
osync_trace(TRACE_INTERNAL, "reading node of type '%s'", cur->name);
cfg = (plugin_calendar_config*)g_malloc0(sizeof(plugin_calendar_config));
cfg->isdefault = 0;
+ cfg->isreadonly = 0;
cfg->filename = NULL;
cfg->username = NULL;
cfg->password = NULL;
@@ -587,6 +589,7 @@
/* Parse attributes of this node */
attr_default = xmlGetProp(cur, (const xmlChar*)"default");
+ attr_isreadonly = xmlGetProp(cur, (const xmlChar*)"read-only");
attr_username = xmlGetProp(cur, (const xmlChar*)"username");
attr_password = xmlGetProp(cur, (const xmlChar*)"password");
attr_deletedaysold = xmlGetProp(cur, (const xmlChar*)"deletedaysold");
@@ -602,6 +605,13 @@
xmlFree(attr_default);
osync_trace(TRACE_INTERNAL, "set isdefault to %i", cfg->isdefault);
}
+
+ if (attr_isreadonly)
+ {
+ cfg->isreadonly = atoi((char*)attr_isreadonly);
+ xmlFree(attr_isreadonly);
+ osync_trace(TRACE_INTERNAL, "set isreadonly to %i", cfg->isreadonly);
+ }
if (attr_username)
{
Index: src/sunbird_sync.h
===================================================================
--- src/sunbird_sync.h (Revision 1860)
+++ src/sunbird_sync.h (Revision 2371)
@@ -10,6 +10,7 @@
int typ; /* one of CALENDAR_CONFIG_TYP_... */
int isdefault; /* boolean */
int deletedaysold; /* integer, 0=don't delete (default) */
+ int isreadonly; /* don't upload webdav (default false) */
GString* filename;
GString* username; /* can be NULL if not specified */
GString* password; /* can be NULL if not specified */
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org