ports/129975: [new port] deskutils/libopensync-plugin-synce-legacy: SynCE legacy plugin for the OpenSync framework

Alexander Logvinov ports at logvinov.com
Sat Dec 27 16:20:04 UTC 2008


>Number:         129975
>Category:       ports
>Synopsis:       [new port] deskutils/libopensync-plugin-synce-legacy: SynCE legacy plugin for the OpenSync framework
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 27 16:20:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Logvinov
>Release:        FreeBSD 6.4-RELEASE i386
>Organization:
>Environment:

>Description:

This plugin allows applications using OpenSync to synchronise to and from
Windows Mobile 2003 based devices.

WWW: http://www.opensync.org/

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libopensync-plugin-synce-legacy
#	libopensync-plugin-synce-legacy/Makefile
#	libopensync-plugin-synce-legacy/distinfo
#	libopensync-plugin-synce-legacy/pkg-descr
#	libopensync-plugin-synce-legacy/pkg-plist
#	libopensync-plugin-synce-legacy/files
#	libopensync-plugin-synce-legacy/files/patch-src_synce_file.c
#
echo c - libopensync-plugin-synce-legacy
mkdir -p libopensync-plugin-synce-legacy > /dev/null 2>&1
echo x - libopensync-plugin-synce-legacy/Makefile
sed 's/^X//' >libopensync-plugin-synce-legacy/Makefile << '0a6777a4a7d62f989532aef07748f1a8'
X# New ports collection makefile for:	libopensync-plugin-synce-legacy
X# Date created:				19 June 2008
X# Whom:					Alexander Logvinov <ports at logvinov.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libopensync-plugin-synce
XPORTVERSION=	0.22
XCATEGORIES=	deskutils palm
XMASTER_SITES=	http://www.opensync.org/download/releases/${PORTVERSION}/
XPKGNAMESUFFIX=	-legacy
X
XMAINTAINER=	ports at logvinov.com
XCOMMENT=	SynCE legacy plugin for the OpenSync framework
X
XLIB_DEPENDS=	opensync.0:${PORTSDIR}/devel/libopensync022 \
X		rra.0:${PORTSDIR}/palm/synce-librra
X
XUSE_BZIP2=	yes
XGNU_CONFIGURE=	yes
XUSE_GNOME=	glib20 libxml2
X
XCFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
XCONFIGURE_ENV=	CFLAGS="${CFLAGS}" \
X		LDFLAGS="${LDFLAGS}"
X
X.include <bsd.port.mk>
0a6777a4a7d62f989532aef07748f1a8
echo x - libopensync-plugin-synce-legacy/distinfo
sed 's/^X//' >libopensync-plugin-synce-legacy/distinfo << '3230b10948410c3a46c79f74a0e2d7e3'
XMD5 (libopensync-plugin-synce-0.22.tar.bz2) = f325b7dd9f273c46e77fb7b337325880
XSHA256 (libopensync-plugin-synce-0.22.tar.bz2) = 72166c8c6e2a45f38fa260a3eb4920b3f55b3cb4cd04c29d6889b9411e369b57
XSIZE (libopensync-plugin-synce-0.22.tar.bz2) = 240364
3230b10948410c3a46c79f74a0e2d7e3
echo x - libopensync-plugin-synce-legacy/pkg-descr
sed 's/^X//' >libopensync-plugin-synce-legacy/pkg-descr << '57c722f44b76e4e3445a32e5e31d0950'
XThis plugin allows applications using OpenSync to synchronise to and from
XWindows Mobile 2003 based devices.
X
XWWW: http://www.opensync.org/
57c722f44b76e4e3445a32e5e31d0950
echo x - libopensync-plugin-synce-legacy/pkg-plist
sed 's/^X//' >libopensync-plugin-synce-legacy/pkg-plist << 'd00532edbcd71a8db1f01c6315e3bcd3'
Xlib/opensync/plugins/synce_plugin.so
Xlib/opensync/plugins/synce_plugin.la
Xshare/opensync/defaults/synce-plugin
X at dirrmtry lib/opensync/plugins
X at dirrmtry lib/opensync
X at dirrmtry share/opensync/defaults
X at dirrmtry share/opensync
d00532edbcd71a8db1f01c6315e3bcd3
echo c - libopensync-plugin-synce-legacy/files
mkdir -p libopensync-plugin-synce-legacy/files > /dev/null 2>&1
echo x - libopensync-plugin-synce-legacy/files/patch-src_synce_file.c
sed 's/^X//' >libopensync-plugin-synce-legacy/files/patch-src_synce_file.c << 'a47febdebc9dfafd7909dcbfe29ceb1d'
X--- src/synce_file.c.orig	2007-03-27 22:14:24.000000000 +1000
X+++ src/synce_file.c	2008-12-27 23:47:34.000000000 +0900
X@@ -114,7 +114,7 @@
X                   size = CeGetFileSize(h, NULL);
X                   CeCloseHandle(h);
X                 } else size = 0;
X-                hash = g_strdup_printf("%ld-%u", ff->last_mod, size);
X+                hash = g_strdup_printf("%ld-%u", (long)ff->last_mod, size);
X 		osync_change_set_hash(change, hash);
X                 fprintf(stderr, "%s(%s) hash %s\n", __func__, path, hash);
X                 g_free(hash);
X@@ -220,7 +220,8 @@
X 	fileFormat	*ff;
X 	WCHAR		*wfn;
X 	DWORD		wr, e, opt;
X-        char		*p, *s, *fn, *lfn, *str;
X+        char		*p, *fn, *lfn, *str;
X+	const char *s;
X 	OSyncChangeType	ct;
X 
X 	osync_debug("SYNCE-SYNC", 4, "start: %s", __func__);	
X@@ -495,7 +496,7 @@
X                 if (r == 0) {
X                         /* Error */
X                         DWORD	e = CeGetLastError();
X-                        char	*s = synce_strerror(e);
X+                        const char	*s = synce_strerror(e);
X                         osync_context_report_error(ctx, 1, "Error from CeReadFile (%d:%s)",
X                                                    e, s);
X                         CeCloseHandle(h);
X@@ -672,7 +673,7 @@
X 					&cnt, &find_data) == 0) {
X 				/* FIX ME what does failure mean here ? */
X 				e = CeGetLastError();
X-				s = synce_strerror(e);
X+				s = (char*)synce_strerror(e);
X 				fprintf(stderr,
X 					"CeFindAllFiles(%s) : %s",
X 					lfn, s);
X@@ -686,7 +687,7 @@
X 				fprintf(stderr, "Yow create(%s)\n", lfn);
X 				if (CeCreateDirectory(w, NULL) == 0) {
X 					e = CeGetLastError();
X-					s = synce_strerror(e);
X+					s = (char*)synce_strerror(e);
X 					fprintf(stderr,
X 						"CeCreateDirectory(%s) : %s",
X 						lfn, s);
X@@ -707,7 +708,7 @@
X 			CREATE_NEW, FILE_ATTRIBUTE_NORMAL, 0);
X 	if (h == 0) {
X 		e = CeGetLastError();
X-		s = synce_strerror(e);
X+		s = (char*)synce_strerror(e);
X 		fprintf(stderr, "CeCreateFile(%s) : %s", lfn, s);
X 		free(lfn);
X 		return FALSE;
X@@ -719,7 +720,7 @@
X 	DWORD wr;
X 	if (CeWriteFile(h, "Yow", 3, &wr, NULL) == 0) {
X 		e = CeGetLastError();
X-		s = synce_strerror(e);
X+		s = (char*)synce_strerror(e);
X 		fprintf(stderr, "CeWriteFile(%s) : %s", lfn, s);
X 		free(lfn);
X 		return FALSE;
a47febdebc9dfafd7909dcbfe29ceb1d
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list