Bug 178946

Summary: New port: net/owncloud-csync, a library for mirall, an Owncloud sync client.
Product: Ports & Packages Reporter: Gleb Popov <arrowd>
Component: Individual Port(s)Assignee: Felippe de Meirelles Motta <lippe>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.shar
none
owncloud-csync.shar none

Description Gleb Popov freebsd_committer freebsd_triage 2013-05-24 12:30:00 UTC

Fix: Patch attached with submission follows:
Comment 1 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2013-07-03 21:52:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lippe

I'll take it.
Comment 2 Gleb Popov freebsd_committer freebsd_triage 2013-07-04 12:17:04 UTC
On Wed, Jul 3, 2013 at 10:58 PM, Felippe de Meirelles Motta <
lippe@freebsd.org> wrote:

> Please consider this shar file.
>

Works for me.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-07-08 22:32:08 UTC
Author: lippe
Date: Mon Jul  8 21:31:53 2013
New Revision: 322540
URL: http://svnweb.freebsd.org/changeset/ports/322540

Log:
  Csync is a lightweight utility to synchronize files between two directories on
  a system or between multiple systems.
  
  It synchronizes bidirectionally and allows the user to keep two copies of files
  and directories in sync. csync uses widely adopted protocols, such as smb or
  sftp, so that there is no need for a server component. It is a user-level
  program which means you do not to be a superuser or administrator.
  
  WWW: http://owncloud.org/sync-clients/
  
  PR:		ports/178946, ports/177900
  Submitted by:	arrowdodger <6yearold@gmail.com>
  Reviewed by:	lippe@

Added:
  head/net/owncloud-csync/
  head/net/owncloud-csync/Makefile   (contents, props changed)
  head/net/owncloud-csync/distinfo   (contents, props changed)
  head/net/owncloud-csync/files/
  head/net/owncloud-csync/files/patch-enodata   (contents, props changed)
  head/net/owncloud-csync/files/patch-src-std-CMakeLists.txt   (contents, props changed)
  head/net/owncloud-csync/files/patch-src-std-c_string.c   (contents, props changed)
  head/net/owncloud-csync/pkg-descr   (contents, props changed)
  head/net/owncloud-csync/pkg-plist   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Mon Jul  8 21:28:28 2013	(r322539)
+++ head/net/Makefile	Mon Jul  8 21:31:53 2013	(r322540)
@@ -498,6 +498,7 @@
     SUBDIR += osrtspproxy
     SUBDIR += ossp-sa
     SUBDIR += ostinato
+    SUBDIR += owncloud-csync
     SUBDIR += p5-AddressBook
     SUBDIR += p5-Amazon-SQS-Simple
     SUBDIR += p5-AnyEvent-MPRPC

Added: head/net/owncloud-csync/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/owncloud-csync/Makefile	Mon Jul  8 21:31:53 2013	(r322540)
@@ -0,0 +1,36 @@
+# Created by: arrowdodger <6yearold@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	owncloud-csync
+PORTVERSION=	0.70.7
+CATEGORIES=	net kde
+MASTER_SITES=	http://download.owncloud.com/download/
+DISTNAME=	ocsync-${PORTVERSION}
+
+MAINTAINER=	6yearold@gmail.com
+COMMENT=	A csync fork for Owncloud
+
+LICENSE=	GPLv2
+
+LIB_DEPENDS=	iconv:${PORTSDIR}/converters/libiconv \
+		iniparser:${PORTSDIR}/devel/iniparser \
+		smbclient:${PORTSDIR}/net/samba-libsmbclient \
+		ssh:${PORTSDIR}/security/libssh \
+		neon:${PORTSDIR}/www/neon29
+
+USES=	cmake:outsource
+USE_BZIP2=	yes
+USE_PKGCONFIG=	build
+USE_SQLITE=	yes
+CMAKE_ARGS+=	-DWITH_LOG4C=NO \
+		-DMAN_INSTALL_DIR=${MANPREFIX}/man
+
+MAN1=		ocsync.1
+
+USE_LDCONFIG=	yes
+MAKE_JOBS_SAFE=	yes
+
+DOCSDIR=	/usr/local/share/doc/ocsync
+ETCDIR=		/usr/local/etc/ocsync
+
+.include <bsd.port.mk>

Added: head/net/owncloud-csync/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/owncloud-csync/distinfo	Mon Jul  8 21:31:53 2013	(r322540)
@@ -0,0 +1,2 @@
+SHA256 (ocsync-0.70.7.tar.bz2) = 571c7a822a8e30966c3a7e61a5218b49e8d52e70e8a8ec80d16db786d60bb324
+SIZE (ocsync-0.70.7.tar.bz2) = 2108498

Added: head/net/owncloud-csync/files/patch-enodata
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/owncloud-csync/files/patch-enodata	Mon Jul  8 21:31:53 2013	(r322540)
@@ -0,0 +1,27 @@
+From 199d6a1b07f8ce5d8009518b61b57768061d65b5 Mon Sep 17 00:00:00 2001
+From: arrowdodger <6yearold@gmail.com>
+Date: Tue, 19 Feb 2013 11:37:10 +0400
+Subject: [PATCH] Fix build for FreeBSD.
+
+---
+ src/std/c_private.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git src/std/c_private.h src/std/c_private.h
+index 2b1c6a3..bacd179 100644
+--- src/std/c_private.h
++++ src/std/c_private.h
+@@ -32,6 +32,10 @@
+ #endif
+ 
+ 
++#ifdef __FreeBSD__
++#define ENODATA 0
++#endif
++
+ #ifdef _WIN32
+ #define EDQUOT 0
+ #define ENODATA 0
+-- 
+1.8.1.3
+

Added: head/net/owncloud-csync/files/patch-src-std-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/owncloud-csync/files/patch-src-std-CMakeLists.txt	Mon Jul  8 21:31:53 2013	(r322540)
@@ -0,0 +1,10 @@
+--- src/std/_CMakeLists.txt	2013-02-20 20:39:16.000000000 +0400
++++ src/std/CMakeLists.txt	2013-03-16 14:16:52.896920438 +0400
+@@ -31,6 +31,7 @@
+ include_directories(
+   ${CSTDLIB_PUBLIC_INCLUDE_DIRS}
+   ${CSTDLIB_PRIVATE_INCLUDE_DIRS}
++  ${ICONV_INCLUDE_DIR}
+ )
+ 
+ add_library(${CSTDLIB_LIBRARY} STATIC ${cstdlib_SRCS})

Added: head/net/owncloud-csync/files/patch-src-std-c_string.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/owncloud-csync/files/patch-src-std-c_string.c	Mon Jul  8 21:31:53 2013	(r322540)
@@ -0,0 +1,11 @@
+--- src/std/_c_string.c	2013-02-20 20:39:16.000000000 +0400
++++ src/std/c_string.c	2013-03-16 14:19:04.313916478 +0400
+@@ -83,7 +83,7 @@
+ 
+ static char *c_iconv(const char* str, enum iconv_direction dir)
+ {
+-  char *in = (char*)str;
++  const char *in = (char*)str;
+   size_t size;
+   size_t outsize;
+   char *out;

Added: head/net/owncloud-csync/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/owncloud-csync/pkg-descr	Mon Jul  8 21:31:53 2013	(r322540)
@@ -0,0 +1,9 @@
+Csync is a lightweight utility to synchronize files between two directories on
+a system or between multiple systems.
+
+It synchronizes bidirectionally and allows the user to keep two copies of files
+and directories in sync. csync uses widely adopted protocols, such as smb or
+sftp, so that there is no need for a server component. It is a user-level
+program which means you do not to be a superuser or administrator.
+
+WWW: http://owncloud.org/sync-clients/

Added: head/net/owncloud-csync/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/owncloud-csync/pkg-plist	Mon Jul  8 21:31:53 2013	(r322540)
@@ -0,0 +1,50 @@
+bin/ocsync
+%%ETCDIR%%/ocsync.conf
+%%ETCDIR%%/ocsync_exclude.conf
+%%DOCSDIR%%/userguide/csync.html
+%%DOCSDIR%%/userguide/images/icons/README
+%%DOCSDIR%%/userguide/images/icons/callouts/1.png
+%%DOCSDIR%%/userguide/images/icons/callouts/10.png
+%%DOCSDIR%%/userguide/images/icons/callouts/11.png
+%%DOCSDIR%%/userguide/images/icons/callouts/12.png
+%%DOCSDIR%%/userguide/images/icons/callouts/13.png
+%%DOCSDIR%%/userguide/images/icons/callouts/14.png
+%%DOCSDIR%%/userguide/images/icons/callouts/15.png
+%%DOCSDIR%%/userguide/images/icons/callouts/2.png
+%%DOCSDIR%%/userguide/images/icons/callouts/3.png
+%%DOCSDIR%%/userguide/images/icons/callouts/4.png
+%%DOCSDIR%%/userguide/images/icons/callouts/5.png
+%%DOCSDIR%%/userguide/images/icons/callouts/6.png
+%%DOCSDIR%%/userguide/images/icons/callouts/7.png
+%%DOCSDIR%%/userguide/images/icons/callouts/8.png
+%%DOCSDIR%%/userguide/images/icons/callouts/9.png
+%%DOCSDIR%%/userguide/images/icons/caution.png
+%%DOCSDIR%%/userguide/images/icons/example.png
+%%DOCSDIR%%/userguide/images/icons/home.png
+%%DOCSDIR%%/userguide/images/icons/important.png
+%%DOCSDIR%%/userguide/images/icons/next.png
+%%DOCSDIR%%/userguide/images/icons/note.png
+%%DOCSDIR%%/userguide/images/icons/prev.png
+%%DOCSDIR%%/userguide/images/icons/tip.png
+%%DOCSDIR%%/userguide/images/icons/up.png
+%%DOCSDIR%%/userguide/images/icons/warning.png
+include/ocsync/csync.h
+include/ocsync/csync_vio.h
+include/ocsync/csync_vio_file_stat.h
+include/ocsync/csync_vio_handle.h
+include/ocsync/csync_vio_method.h
+include/ocsync/csync_vio_module.h
+lib/libocsync.so
+lib/libocsync.so.0
+lib/libocsync.so.0.2.0
+lib/ocsync-0/ocsync_owncloud.so
+lib/ocsync-0/ocsync_sftp.so
+lib/ocsync-0/ocsync_smb.so
+@dirrm lib/ocsync-0
+@dirrm include/ocsync
+@dirrmtry %%ETCDIR%%
+@dirrm %%DOCSDIR%%/userguide/images/icons/callouts
+@dirrm %%DOCSDIR%%/userguide/images/icons
+@dirrm %%DOCSDIR%%/userguide/images
+@dirrm %%DOCSDIR%%/userguide
+@dirrmtry %%DOCSDIR%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2013-07-08 22:33:21 UTC
State Changed
From-To: open->closed

Committed. Thanks!