From af08514ab3622985dff8a1c19f6c334e46cba001 Mon Sep 17 00:00:00 2001 From: Automaton Date: Fri, 21 Dec 2012 23:07:25 +0100 Subject: [PATCH] Import palm/synce-libsynce version 0.14 --- palm/synce-libsynce/Makefile | 45 +++++++++++++++++++ palm/synce-libsynce/distinfo | 2 + .../files/patch-lib-synce_socket.c | 41 +++++++++++++++++ palm/synce-libsynce/pkg-descr | 5 +++ palm/synce-libsynce/pkg-plist | 13 ++++++ 5 files changed, 106 insertions(+) create mode 100644 palm/synce-libsynce/Makefile create mode 100644 palm/synce-libsynce/distinfo create mode 100644 palm/synce-libsynce/files/patch-lib-synce_socket.c create mode 100644 palm/synce-libsynce/pkg-descr create mode 100644 palm/synce-libsynce/pkg-plist diff --git a/palm/synce-libsynce/Makefile b/palm/synce-libsynce/Makefile new file mode 100644 index 00000000000..2575f0cae2b --- /dev/null +++ b/palm/synce-libsynce/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: synce-libsynce +# Date created: 14 June 2003 +# Whom: Sam Lawrance +# +# $FreeBSD: ports/palm/synce-libsynce/Makefile,v 1.26 2012/11/17 06:00:44 svnexp Exp $ + +PORTNAME= libsynce +PORTVERSION= 0.14 +CATEGORIES= palm +MASTER_SITES= SF/synce/SynCE/${PORTVERSION} +PKGNAMEPREFIX= synce- + +MAINTAINER= webmaster@kibab.com +COMMENT= Library to support communication with WinCE devices + +LIB_DEPENDS= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \ + hal.1:${PORTSDIR}/sysutils/hal + +GNU_CONFIGURE= yes +USE_AUTOTOOLS= libtool +USE_ICONV= yes +USE_GNOME= gnomehack +CONFIGURE_ARGS+= --with-libiconv-prefix="${LOCALBASE}" \ + --enable-dccm-file-support=no \ + --enable-hal-support=yes \ + --enable-odccm-support=no + +MAN3= synce_info_new.3 wstrlen.3 wstrcpy.3 wstrdup.3 \ + synce_get_directory.3 synce_get_connection_filename.3 \ + synce_strerror.3 wstr_to_ascii.3 time_fields_from_filetime.3 \ + date_from_tm.3 synce_error.3 synce_info_destroy.3 \ + synce_get_subdirectory.3 synce_get_script_directory.3 \ + synce_set_connection_filename.3 wstr_to_current.3 \ + synce_set_default_connection_filename.3 wstr_to_utf8.3 \ + wstr_from_ascii.3 wstr_from_utf8.3 wstr_from_current.3 \ + wstr_free_string.3 wstr_append.3 wstr_equal.3 \ + time_fields_to_filetime.3 date_to_tm.3 synce_warning.3 \ + synce_info.3 synce_debug.3 synce_trace.3 \ + synce_warning_unless.3 synce_log_set_level.3 \ + synce_log_use_syslog.3 +MAN7= synce.7 + +USE_LDCONFIG= yes + +.include diff --git a/palm/synce-libsynce/distinfo b/palm/synce-libsynce/distinfo new file mode 100644 index 00000000000..59755043ea9 --- /dev/null +++ b/palm/synce-libsynce/distinfo @@ -0,0 +1,2 @@ +SHA256 (libsynce-0.14.tar.gz) = a1522495b0dd73a006d95d61e5eec2149e16f77d8cf06c3b3ed1960d7c6c4350 +SIZE (libsynce-0.14.tar.gz) = 372404 diff --git a/palm/synce-libsynce/files/patch-lib-synce_socket.c b/palm/synce-libsynce/files/patch-lib-synce_socket.c new file mode 100644 index 00000000000..5ef26601a3f --- /dev/null +++ b/palm/synce-libsynce/files/patch-lib-synce_socket.c @@ -0,0 +1,41 @@ +--- lib/synce_socket.c.orig Thu Sep 14 17:38:41 2006 ++++ lib/synce_socket.c Fri Jan 26 01:18:32 2007 +@@ -138,32 +138,31 @@ + + bool synce_socket_connect_proxy(SynceSocket* syncesock, const char* remoteIpAddress) + { ++ char *path; ++ char socketPath[256]; ++ struct sockaddr_un proxyaddr; ++ size_t size; ++ + synce_socket_close(syncesock); + + if (!synce_socket_create_proxy(syncesock)) + goto fail; + + +- char *path; +- + if (!synce_get_subdirectory("rapi2", &path)) { + goto fail; + } + +- char socketPath[256]; +- + strncpy(socketPath, path, 256); + strncat(socketPath, "/", 256 - strlen(socketPath)); + strncat(socketPath, remoteIpAddress, 256 - strlen(socketPath)); + + free(path); + +- struct sockaddr_un proxyaddr; +- + proxyaddr.sun_family = AF_LOCAL; + strncpy(proxyaddr.sun_path, socketPath, sizeof(proxyaddr.sun_path)); + +- size_t size = (offsetof (struct sockaddr_un, sun_path) + strlen(proxyaddr.sun_path) + 1); ++ size = (offsetof (struct sockaddr_un, sun_path) + strlen(proxyaddr.sun_path) + 1); + + if (connect(syncesock->fd, (struct sockaddr *) &proxyaddr, size) < 0) + goto fail; diff --git a/palm/synce-libsynce/pkg-descr b/palm/synce-libsynce/pkg-descr new file mode 100644 index 00000000000..66ddf9202b3 --- /dev/null +++ b/palm/synce-libsynce/pkg-descr @@ -0,0 +1,5 @@ +SynCE is a project for connecting to devices running Windows CE or Pocket PC. +Libsynce provides common functions needed for communication with a Windows CE +device. + +WWW: http://synce.sourceforge.net/ diff --git a/palm/synce-libsynce/pkg-plist b/palm/synce-libsynce/pkg-plist new file mode 100644 index 00000000000..f9d65d8f1bd --- /dev/null +++ b/palm/synce-libsynce/pkg-plist @@ -0,0 +1,13 @@ +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 +include/synce_sys_error.h +lib/libsynce.so +lib/libsynce.la +lib/libsynce.a +lib/libsynce.so.0 +libdata/pkgconfig/libsynce.pc -- 2.41.0