From f5df08d27c83557ba4a4a306b7af903416780cdd Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 13 Oct 2005 15:00:13 +0000 Subject: Initial import of synce-libsynce-0.9.1: Libsynce is part of the SynCE project. The SynCE library is required to compile (at least) the following parts of the SynCE project: o librapi2 o dccmd --- comms/synce-libsynce/DESCR | 7 +++++++ comms/synce-libsynce/Makefile | 16 ++++++++++++++ comms/synce-libsynce/PLIST | 11 ++++++++++ comms/synce-libsynce/buildlink3.mk | 20 ++++++++++++++++++ comms/synce-libsynce/distinfo | 7 +++++++ comms/synce-libsynce/patches/patch-aa | 39 +++++++++++++++++++++++++++++++++++ comms/synce-libsynce/patches/patch-ab | 13 ++++++++++++ 7 files changed, 113 insertions(+) create mode 100644 comms/synce-libsynce/DESCR create mode 100644 comms/synce-libsynce/Makefile create mode 100644 comms/synce-libsynce/PLIST create mode 100644 comms/synce-libsynce/buildlink3.mk create mode 100644 comms/synce-libsynce/distinfo create mode 100644 comms/synce-libsynce/patches/patch-aa create mode 100644 comms/synce-libsynce/patches/patch-ab (limited to 'comms/synce-libsynce') diff --git a/comms/synce-libsynce/DESCR b/comms/synce-libsynce/DESCR new file mode 100644 index 00000000000..08561fd8658 --- /dev/null +++ b/comms/synce-libsynce/DESCR @@ -0,0 +1,7 @@ +Libsynce is part of the SynCE project. + +The SynCE library is required to compile (at least) the following +parts of the SynCE project: + + o librapi2 + o dccmd diff --git a/comms/synce-libsynce/Makefile b/comms/synce-libsynce/Makefile new file mode 100644 index 00000000000..4a28e56c564 --- /dev/null +++ b/comms/synce-libsynce/Makefile @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/10/13 15:00:13 wiz Exp $ +# + +DISTNAME= synce-libsynce-0.9.1 +CATEGORIES= comms +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=synce/} + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://synce.sourceforge.net/ +COMMENT= SynCE Library + +USE_LIBTOOL= yes +GNU_CONFIGURE= yes + +.include "../../converters/libiconv/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/comms/synce-libsynce/PLIST b/comms/synce-libsynce/PLIST new file mode 100644 index 00000000000..5abac44d179 --- /dev/null +++ b/comms/synce-libsynce/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/13 15:00:13 wiz Exp $ +include/synce.h +include/synce_hash.h +include/synce_ini.h +include/synce_log.h +include/synce_socket.h +include/synce_types.h +include/synce_vector_template.h +lib/libsynce.la +man/man1/synce.1 +share/aclocal/libsynce.m4 diff --git a/comms/synce-libsynce/buildlink3.mk b/comms/synce-libsynce/buildlink3.mk new file mode 100644 index 00000000000..d2abbd51fdf --- /dev/null +++ b/comms/synce-libsynce/buildlink3.mk @@ -0,0 +1,20 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/10/13 15:00:13 wiz Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +SYNCE_LIBSYNCE_BUILDLINK3_MK:= ${SYNCE_LIBSYNCE_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= synce-libsynce +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nsynce-libsynce} +BUILDLINK_PACKAGES+= synce-libsynce + +.if !empty(SYNCE_LIBSYNCE_BUILDLINK3_MK:M+) +BUILDLINK_DEPENDS.synce-libsynce+= synce-libsynce>=0.9.1 +BUILDLINK_PKGSRCDIR.synce-libsynce?= ../../comms/synce-libsynce +.endif # SYNCE_LIBSYNCE_BUILDLINK3_MK + +.include "../../converters/libiconv/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/comms/synce-libsynce/distinfo b/comms/synce-libsynce/distinfo new file mode 100644 index 00000000000..d20377e770c --- /dev/null +++ b/comms/synce-libsynce/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/10/13 15:00:13 wiz Exp $ + +SHA1 (synce-libsynce-0.9.1.tar.gz) = 603930b41fa987fa7e5e709a40360a616eac231c +RMD160 (synce-libsynce-0.9.1.tar.gz) = a8c9d68196dec1b7555f56e8aab622a2817e1cf3 +Size (synce-libsynce-0.9.1.tar.gz) = 356343 bytes +SHA1 (patch-aa) = bec59abf5b271c4f9a92af85a7cd3e3c19833d61 +SHA1 (patch-ab) = 0f36a9f97706e26ae49569dda0d21a42cfdb63ec diff --git a/comms/synce-libsynce/patches/patch-aa b/comms/synce-libsynce/patches/patch-aa new file mode 100644 index 00000000000..87b58c21735 --- /dev/null +++ b/comms/synce-libsynce/patches/patch-aa @@ -0,0 +1,39 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/10/13 15:00:13 wiz Exp $ + +--- lib/wstr.c.orig 2004-01-12 10:33:34.000000000 +0100 ++++ lib/wstr.c +@@ -5,6 +5,7 @@ + #include "synce_config.h" + #include + #include ++#include + + #if HAVE_LOCALE_H + #include +@@ -35,7 +36,7 @@ + #endif + + +-#define wstr_WIDE "UNICODELITTLE" ++#define wstr_WIDE "ucs-2le" + #define wstr_ASCII "ISO_8859-1" + #define wstr_UTF8 "UTF-8" + +@@ -79,7 +80,7 @@ static char* wstr_to_x(LPCWSTR inbuf, co + cd = iconv_open(code, wstr_WIDE); + if (INVALID_ICONV_HANDLE == cd) + { +- wstr_error("iconv_open failed"); ++ wstr_error("iconv_open(%s, %s) failed: %s", code, wstr_WIDE, strerror(errno)); + return NULL; + } + +@@ -147,7 +148,7 @@ static LPWSTR wstr_from_x(const char* in + cd = iconv_open(wstr_WIDE, code); + if (INVALID_ICONV_HANDLE == cd) + { +- wstr_error("iconv_open failed"); ++ wstr_error("iconv_open(%s, %s) failed: %s", code, wstr_WIDE, strerror(errno)); + return NULL; + } + diff --git a/comms/synce-libsynce/patches/patch-ab b/comms/synce-libsynce/patches/patch-ab new file mode 100644 index 00000000000..f87349440c2 --- /dev/null +++ b/comms/synce-libsynce/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/10/13 15:00:13 wiz Exp $ + +--- lib/synce_hash.c.orig 2003-11-04 11:21:20.000000000 +0100 ++++ lib/synce_hash.c +@@ -59,7 +59,7 @@ unsigned s_str_hash(const void* key) + { + unsigned ret_val = 0; + int i; +- const char *string = (const char*)key; ++ const unsigned char *string = (const unsigned char*)key; + + while (*string) + { -- cgit v1.2.3