Import libopensync-0.31

OpenSync is a synchronization framework that is platform and
distribution independent. It consists of a powerful sync-engine and
several plugins that can be used to connect to devices.
OpenSync is very flexible and capable of synchronizing any type of data,
including contacts, calendar, tasks, notes and files.


Note that it is still a development version. But it's better to have
this in-tree now so that one can port the different sync plugins as they
come out. Also it will ease integration with other apps (i.e kdepim).

"as long as it doesn't break kdepim" espie@
This commit is contained in:
ajacoutot 2007-09-30 09:37:53 +00:00
parent 41177f30fd
commit fc6e4c720a
10 changed files with 266 additions and 0 deletions

View File

@ -0,0 +1,41 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/09/30 09:37:53 ajacoutot Exp $
COMMENT= data synchronization framework
DISTNAME= libopensync-0.31
SHARED_LIBS += opensync 1.0
CATEGORIES= devel comms
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://www.opensync.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.obsd.fr/OpenBSD/distfiles/
WANTLIB= c pthread
BUILD_DEPENDS= :scons-*:devel/scons
LIB_DEPENDS= sqlite3.>=8::databases/sqlite3 \
xml2.>=9::textproc/libxml \
glib-2.0.>=1200,gmodule-2.0.>=1200,gthread-2.0.>=1200::devel/glib2
NO_REGRESS= Yes
do-build:
@${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} \
CC=${CC} CXX=${CXX} APPEND_CCFLAGS="${CFLAGS}" \
prefix=${PREFIX} debug=0
do-install:
@${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} install \
DESTDIR=${WRKINST}
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libopensync-0.31.tar.bz2) = yvT9GxdPSGO6easHSimwVA==
RMD160 (libopensync-0.31.tar.bz2) = pGbILBt9wQEk5yCQNfAgMUJtYn4=
SHA1 (libopensync-0.31.tar.bz2) = jz2TC189PQjdlHco4oxs9J6Snng=
SHA256 (libopensync-0.31.tar.bz2) = vbquKnDiAu6Q5q9QDyLz3oFFmhywRFwGaO7t8CDXI6M=
SIZE (libopensync-0.31.tar.bz2) = 862176

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-build_linux_osync_build_py,v 1.1.1.1 2007/09/30 09:37:53 ajacoutot Exp $
--- build/linux/osync_build.py.orig Wed Jun 20 21:48:30 2007
+++ build/linux/osync_build.py Sat Sep 29 14:13:47 2007
@@ -37,7 +37,7 @@ def check(env, config):
env = conf.Finish()
env.Append(CCFLAGS = r'-DHAVE_CONFIG_H')
env.Append(CCFLAGS = r'-I.')
- env.Append(CCFLAGS = [r'-Wall', r'-Werror', r'-O2'])
+ env.Append(CCFLAGS = [r'-Wall', r'-Werror'])
if env['debug'] == 1:
env.Append(CCFLAGS = r'-g3')

View File

@ -0,0 +1,64 @@
$OpenBSD: patch-build_osync_support_py,v 1.1.1.1 2007/09/30 09:37:53 ajacoutot Exp $
--- build/osync_support.py.orig Thu Jun 21 14:38:39 2007
+++ build/osync_support.py Sat Sep 29 15:44:10 2007
@@ -16,46 +16,9 @@ def CheckPKG(context, name):
def SelectBuildDir(build_dir, platform=None):
- # if no platform is specified, then default to sys.platform
- if not(platform):
- platform = sys.platform
-
- print "Looking for build directory for platform '%s'" % platform
-
- # setup where we start looking at first
- test_dir = build_dir + os.sep + platform
default_dir = build_dir + os.sep + 'linux'
+ target_dir = default_dir
-
- # we look for a directory named exactly after the
- # platform so that very specific builds can be done
- if os.path.exists(test_dir):
- # make sure it is a directory
- target_dir = test_dir
- else:
- print "Exact match not found, finding closest guess"
-
- # looks like there isn't an exact match
- # find the closest matching directory
- dirs = os.listdir(build_dir)
- found_match = 0
- for dir in dirs:
- if platform.find(dir) != -1:
- # found a match (hopefully the right one)
- target_dir = build_dir + os.sep + dir
- found_match = 1
- break
- if not(found_match):
- print "No match found, looking for 'default' directory"
- # looks like this platform isn't available
- # try the default target
- if os.path.exists(default_dir):
- target_dir = default_dir
- else:
- # bad, nothing is available, tell the user
- print "No build directories found for your platform '%s'" % platform
- return None
-
print "Found directory %s, will build there" % target_dir
return target_dir
@@ -287,12 +250,9 @@ def install_shlib(env, destination, lib):
shlib_install_post_action = None
if platform == 'posix':
- shlib_post_action = [ 'rm -f $TARGET',
- 'ln -s ${SOURCE.file} $TARGET' ]
shlib_post_action_output_re = [
'%s\\.[0-9\\.]*$' % re.escape(shlib_suffix),
shlib_suffix ]
- shlib_install_post_action = shlib_post_action
shlib_install_post_action_output_re = shlib_post_action_output_re
ilib = env.Install(destination,lib)

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-opensync-1_0_pc_in,v 1.1.1.1 2007/09/30 09:37:53 ajacoutot Exp $
--- opensync-1.0.pc.in.orig Sun Sep 30 10:11:54 2007
+++ opensync-1.0.pc.in Sun Sep 30 10:12:52 2007
@@ -14,4 +14,4 @@ Name: opensync
Description: OpenSync synchronization framework
Version: @VERSION@
Libs: -L${libdir} -lopensync
-Cflags: -I${includedir}/opensync-1.0
+Cflags: -I${includedir}/glib-2.0 -I${includedir}/opensync-1.0

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-opensync_SConscript,v 1.1.1.1 2007/09/30 09:37:53 ajacoutot Exp $
--- opensync/SConscript.orig Sat Jul 7 20:29:23 2007
+++ opensync/SConscript Sat Sep 29 15:13:52 2007
@@ -146,7 +146,7 @@ engine/opensync_status.h
Libraries = r"""
glib-2.0
-gthread-2.0
+gthread-2.0 pthread
gmodule-2.0
libxml2
sqlite3
@@ -154,7 +154,7 @@ sqlite3
#libopensync = env.SharedLibrary('opensync', Split(sources), LIBS = Split(Libraries))
libopensync = env.build_shlib('opensync', Split(sources),
- vnum="%d.%d.%d" % (config["major"], config["minor"], config["micro"]),
+ vnum="%d.%d" % (config["major"], config["minor"]),
LIBS = Split(Libraries))
env.Prepend(LIBPATH = '#opensync')

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-osengine-1_0_pc_in,v 1.1.1.1 2007/09/30 09:37:53 ajacoutot Exp $
--- osengine-1.0.pc.in.orig Thu Feb 3 16:25:48 2005
+++ osengine-1.0.pc.in Sun Sep 30 10:15:13 2007
@@ -7,4 +7,4 @@ Name: osengine
Description: OpenSync sync engine
Version: @VERSION@
Libs: -L${libdir} -losengine
-Cflags: -I${includedir}/opensync-1.0
+Cflags: -I${includedir}/glib-2.0 -I${includedir}/opensync-1.0

View File

@ -0,0 +1,5 @@
OpenSync is a synchronization framework that is platform and
distribution independent. It consists of a powerful sync-engine and
several plugins that can be used to connect to devices.
OpenSync is very flexible and capable of synchronizing any type of data,
including contacts, calendar, tasks, notes and files.

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2007/09/30 09:37:53 ajacoutot Exp $
@lib lib/libopensync.so.${LIBopensync_VERSION}
lib/opensync/formats/libdata.so
lib/opensync/formats/libfile.so
lib/opensync/formats/libxmlformat-doc.so
lib/opensync/formats/libxmlformat.so

View File

@ -0,0 +1,94 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/09/30 09:37:53 ajacoutot Exp $
%%SHARED%%
bin/osplugin
bin/osyncbinary
bin/osyncdump
include/opensync-1.0/
include/opensync-1.0/opensync/
include/opensync-1.0/opensync/archive/
include/opensync-1.0/opensync/archive/opensync_archive.h
include/opensync-1.0/opensync/data/
include/opensync-1.0/opensync/data/opensync_change.h
include/opensync-1.0/opensync/data/opensync_data.h
include/opensync-1.0/opensync/engine/
include/opensync-1.0/opensync/engine/opensync_engine.h
include/opensync-1.0/opensync/engine/opensync_obj_engine.h
include/opensync-1.0/opensync/engine/opensync_status.h
include/opensync-1.0/opensync/file.h
include/opensync-1.0/opensync/format/
include/opensync-1.0/opensync/format/opensync_converter.h
include/opensync-1.0/opensync/format/opensync_filter.h
include/opensync-1.0/opensync/format/opensync_format_env.h
include/opensync-1.0/opensync/format/opensync_objformat.h
include/opensync-1.0/opensync/format/opensync_time.h
include/opensync-1.0/opensync/group/
include/opensync-1.0/opensync/group/opensync_group.h
include/opensync-1.0/opensync/group/opensync_group_env.h
include/opensync-1.0/opensync/group/opensync_member.h
include/opensync-1.0/opensync/helper/
include/opensync-1.0/opensync/helper/opensync_anchor.h
include/opensync-1.0/opensync/helper/opensync_hashtable.h
include/opensync-1.0/opensync/ipc/
include/opensync-1.0/opensync/ipc/opensync_message.h
include/opensync-1.0/opensync/ipc/opensync_queue.h
include/opensync-1.0/opensync/ipc/opensync_serializer.h
include/opensync-1.0/opensync/mapping/
include/opensync-1.0/opensync/mapping/opensync_mapping.h
include/opensync-1.0/opensync/mapping/opensync_mapping_entry.h
include/opensync-1.0/opensync/mapping/opensync_mapping_table.h
include/opensync-1.0/opensync/mapping/opensync_mapping_view.h
include/opensync-1.0/opensync/merger/
include/opensync-1.0/opensync/merger/opensync_capabilities.h
include/opensync-1.0/opensync/merger/opensync_capability.h
include/opensync-1.0/opensync/merger/opensync_merger.h
include/opensync-1.0/opensync/merger/opensync_xmlfield.h
include/opensync-1.0/opensync/merger/opensync_xmlfieldlist.h
include/opensync-1.0/opensync/merger/opensync_xmlformat.h
include/opensync-1.0/opensync/opensync-archive.h
include/opensync-1.0/opensync/opensync-client.h
include/opensync-1.0/opensync/opensync-context.h
include/opensync-1.0/opensync/opensync-data.h
include/opensync-1.0/opensync/opensync-engine.h
include/opensync-1.0/opensync/opensync-error.h
include/opensync-1.0/opensync/opensync-format.h
include/opensync-1.0/opensync/opensync-group.h
include/opensync-1.0/opensync/opensync-helper.h
include/opensync-1.0/opensync/opensync-ipc.h
include/opensync-1.0/opensync/opensync-mapping.h
include/opensync-1.0/opensync/opensync-merger.h
include/opensync-1.0/opensync/opensync-module.h
include/opensync-1.0/opensync/opensync-plugin.h
include/opensync-1.0/opensync/opensync-serializer.h
include/opensync-1.0/opensync/opensync-support.h
include/opensync-1.0/opensync/opensync-time.h
include/opensync-1.0/opensync/opensync-version.h
include/opensync-1.0/opensync/opensync.h
include/opensync-1.0/opensync/opensync_list.h
include/opensync-1.0/opensync/opensync_xml.h
include/opensync-1.0/opensync/plugin/
include/opensync-1.0/opensync/plugin/opensync_plugin.h
include/opensync-1.0/opensync/plugin/opensync_plugin_env.h
include/opensync-1.0/opensync/plugin/opensync_plugin_info.h
include/opensync-1.0/opensync/plugin/opensync_sink.h
include/opensync-1.0/opensync/version/
include/opensync-1.0/opensync/version/opensync_version.h
lib/opensync/
lib/opensync/formats/
lib/pkgconfig/
lib/pkgconfig/opensync-1.0.pc
lib/pkgconfig/osengine-1.0.pc
share/opensync/
share/opensync/capabilities/
share/opensync/capabilities/file-sync.xml
share/opensync/capabilities/syncml-nokia-7650.xml
share/opensync/descriptions/
share/opensync/descriptions/miscellaneous.xml
share/opensync/descriptions/syncml-nokia.xml
share/opensync/schemas/
share/opensync/schemas/descriptions.xsd
share/opensync/schemas/xmlformat-calendar.xsd
share/opensync/schemas/xmlformat-common.xsd
share/opensync/schemas/xmlformat-contact.xsd
share/opensync/schemas/xmlformat-event.xsd
share/opensync/schemas/xmlformat-note.xsd
share/opensync/schemas/xmlformat-todo.xsd