summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2007-05-23 12:44:40 +0000
committermarkd <markd@pkgsrc.org>2007-05-23 12:44:40 +0000
commit14c44c0ac429a673e277c9b9d806171ac5f82590 (patch)
treec2a8078a0933a262d83341c4bb2ab63720b9eb01
parent2ded32e2a3b008a59b17f0a986d6d3459b405391 (diff)
downloadpkgsrc-14c44c0ac429a673e277c9b9d806171ac5f82590.tar.gz
Initial import libopensync version 0.22
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.
-rw-r--r--comms/libopensync/DESCR6
-rw-r--r--comms/libopensync/Makefile26
-rw-r--r--comms/libopensync/PLIST55
-rw-r--r--comms/libopensync/buildlink3.mk23
-rw-r--r--comms/libopensync/distinfo6
-rw-r--r--comms/libopensync/patches/patch-aa62
6 files changed, 178 insertions, 0 deletions
diff --git a/comms/libopensync/DESCR b/comms/libopensync/DESCR
new file mode 100644
index 00000000000..bf4ebd8fa74
--- /dev/null
+++ b/comms/libopensync/DESCR
@@ -0,0 +1,6 @@
+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.
diff --git a/comms/libopensync/Makefile b/comms/libopensync/Makefile
new file mode 100644
index 00000000000..89a9b9e6c7e
--- /dev/null
+++ b/comms/libopensync/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/23 12:44:40 markd Exp $
+#
+
+DISTNAME= libopensync-0.22
+CATEGORIES= comms
+MASTER_SITES= http://www.opensync.org/attachment/wiki/download/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.opensync.org/
+COMMENT= Platform independent synchronization framework
+
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+
+DISTURL=${MASTER_SITES}${DISTNAME}${EXTRACT_SUFX}?format=raw
+pre-fetch:
+ ${TEST} -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} || \
+ (cd ${DISTDIR} && ${FETCH_CMD} -o ${DISTNAME}${EXTRACT_SUFX} ${DISTURL:Q})
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/comms/libopensync/PLIST b/comms/libopensync/PLIST
new file mode 100644
index 00000000000..aecb9e33d9e
--- /dev/null
+++ b/comms/libopensync/PLIST
@@ -0,0 +1,55 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/23 12:44:40 markd Exp $
+bin/osyncbinary
+bin/osyncdump
+bin/osyncplugin
+bin/osyncstress
+bin/osynctest
+include/opensync-1.0/opensync/file.h
+include/opensync-1.0/opensync/opensync-xml-contact.h
+include/opensync-1.0/opensync/opensync.h
+include/opensync-1.0/opensync/opensync_anchor.h
+include/opensync-1.0/opensync/opensync_change.h
+include/opensync-1.0/opensync/opensync_changecmds.h
+include/opensync-1.0/opensync/opensync_context.h
+include/opensync-1.0/opensync/opensync_convert.h
+include/opensync-1.0/opensync/opensync_convreg.h
+include/opensync-1.0/opensync/opensync_debug.h
+include/opensync-1.0/opensync/opensync_env.h
+include/opensync-1.0/opensync/opensync_error.h
+include/opensync-1.0/opensync/opensync_filter.h
+include/opensync-1.0/opensync/opensync_group.h
+include/opensync-1.0/opensync/opensync_hashtable.h
+include/opensync-1.0/opensync/opensync_member.h
+include/opensync-1.0/opensync/opensync_plugin.h
+include/opensync-1.0/opensync/opensync_serializer.h
+include/opensync-1.0/opensync/opensync_time.h
+include/opensync-1.0/opensync/opensync_xml.h
+include/opensync-1.0/opensync/xml-support.h
+include/opensync-1.0/osengine/engine.h
+include/opensync-1.0/osengine/osengine_debug.h
+include/opensync-1.0/osengine/osengine_engine.h
+include/opensync-1.0/osengine/osengine_mapping.h
+include/opensync-1.0/osengine/osengine_status.h
+lib/libopensync-xml.la
+lib/libopensync.la
+lib/libosengine.la
+lib/opensync/formats/contact.la
+lib/opensync/formats/data.la
+lib/opensync/formats/event.la
+lib/opensync/formats/file.la
+lib/opensync/formats/note.la
+lib/opensync/formats/todo.la
+lib/opensync/formats/xml-evolution.la
+lib/opensync/formats/xml-kde.la
+lib/opensync/formats/xml-vcal.la
+lib/opensync/formats/xml-vcard.la
+lib/opensync/formats/xml-vnote.la
+lib/opensync/formats/xmldoc.la
+lib/pkgconfig/opensync-1.0.pc
+lib/pkgconfig/osengine-1.0.pc
+libexec/osplugin
+@dirrm lib/opensync/formats
+@dirrm lib/opensync
+@dirrm include/opensync-1.0/osengine
+@dirrm include/opensync-1.0/opensync
+@dirrm include/opensync-1.0
diff --git a/comms/libopensync/buildlink3.mk b/comms/libopensync/buildlink3.mk
new file mode 100644
index 00000000000..e837729dab9
--- /dev/null
+++ b/comms/libopensync/buildlink3.mk
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/05/23 12:44:40 markd Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBOPENSYNC_BUILDLINK3_MK:= ${LIBOPENSYNC_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= libopensync
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibopensync}
+BUILDLINK_PACKAGES+= libopensync
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libopensync
+
+.if ${LIBOPENSYNC_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.libopensync+= libopensync>=0.22
+BUILDLINK_PKGSRCDIR.libopensync?= ../../mcs/libopensync
+.endif # LIBOPENSYNC_BUILDLINK3_MK
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/comms/libopensync/distinfo b/comms/libopensync/distinfo
new file mode 100644
index 00000000000..27465a643b1
--- /dev/null
+++ b/comms/libopensync/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/05/23 12:44:40 markd Exp $
+
+SHA1 (libopensync-0.22.tar.bz2) = 47860a8c6621aa89fbff2af2517787747af7cc30
+RMD160 (libopensync-0.22.tar.bz2) = a1e9715d037a7c474b80d609e6c96a24cbb6692f
+Size (libopensync-0.22.tar.bz2) = 489978 bytes
+SHA1 (patch-aa) = 9940ffc5dd7fabfb0291a12254451286a9ed3e00
diff --git a/comms/libopensync/patches/patch-aa b/comms/libopensync/patches/patch-aa
new file mode 100644
index 00000000000..948c3a87218
--- /dev/null
+++ b/comms/libopensync/patches/patch-aa
@@ -0,0 +1,62 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/05/23 12:44:40 markd Exp $
+
+--- formats/vformats-xml/vformat.c.orig 2007-03-27 23:49:27.000000000 +1200
++++ formats/vformats-xml/vformat.c
+@@ -236,7 +236,7 @@ static void _read_attribute_value_add (V
+ if (charset) {
+
+ cd = iconv_open("UTF-8", charset->str);
+-#ifdef SOLARIS
++#if defined(SOLARIS) || defined(__NetBSD__)
+ if (iconv(cd, (const char**)&inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) {
+ #else
+ if (iconv(cd, &inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) {
+@@ -264,7 +264,7 @@ static void _read_attribute_value_add (V
+
+ /* because inbuf is not UTF-8, we think it is ISO-8859-1 */
+ cd = iconv_open("UTF-8", "ISO-8859-1");
+-#ifdef SOLARIS
++#if defined(SOLARIS) || defined(__NetBSD__)
+ if (iconv(cd, (const char**)&inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) {
+ #else
+ if (iconv(cd, &inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) {
+@@ -302,8 +302,8 @@ static void _read_attribute_value (VForm
+ if ((a = *(++lp)) == '\0') break;
+ if ((b = *(++lp)) == '\0') break;
+
+- if (isalnum(a)) {
+- if (isalnum(b)) {
++ if (isalnum((int)a)) {
++ if (isalnum((int)b)) {
+ /* e.g. ...N=C3=BCrnberg\r\n
+ * ^^^
+ */
+@@ -317,7 +317,7 @@ static void _read_attribute_value (VForm
+ * ^
+ */
+ char *tmplp = lp;
+- if (*(++tmplp) == '\r' && *(++tmplp) == '\n' && isalnum(*(++tmplp))) {
++ if (*(++tmplp) == '\r' && *(++tmplp) == '\n' && isalnum((int)*(++tmplp))) {
+ x1 = a;
+ x2 = *tmplp;
+ lp = tmplp;
+@@ -336,7 +336,7 @@ static void _read_attribute_value (VForm
+ c = *(++tmplp);
+ d = *(++tmplp);
+ e = *(++tmplp);
+- if (b == '\r' && c == '\n' && isalnum(d) && isalnum(e)) {
++ if (b == '\r' && c == '\n' && isalnum((int)d) && isalnum((int)e)) {
+ x1 = d;
+ x2 = e;
+ lp = tmplp;
+@@ -357,8 +357,8 @@ static void _read_attribute_value (VForm
+ if (x1 && x2) {
+ char c;
+
+- a = tolower (x1);
+- b = tolower (x2);
++ a = tolower ((int)x1);
++ b = tolower ((int)x2);
+
+ c = (((a>='a'?a-'a'+10:a-'0')&0x0f) << 4)
+ | ((b>='a'?b-'a'+10:b-'0')&0x0f);