1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

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@
This commit is contained in:
Felippe de Meirelles Motta 2013-07-08 21:31:53 +00:00
parent da1e8cf6ab
commit b0f033659e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322540
8 changed files with 146 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,2 @@
SHA256 (ocsync-0.70.7.tar.bz2) = 571c7a822a8e30966c3a7e61a5218b49e8d52e70e8a8ec80d16db786d60bb324
SIZE (ocsync-0.70.7.tar.bz2) = 2108498

View File

@ -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

View File

@ -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})

View File

@ -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;

View File

@ -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/

View File

@ -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%%