aboutsummaryrefslogtreecommitdiff
path: root/net/csync2
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2007-05-30 18:48:50 +0000
committerAaron Dalton <aaron@FreeBSD.org>2007-05-30 18:48:50 +0000
commit5a42f0702e495e6b9d8454e0a9028e6982411a04 (patch)
treedf5cf6f8c072649ed2beefbb70a457dd2e5fc380 /net/csync2
parent4f9587b2f462144a96a427c12c7accc34662522e (diff)
downloadports-5a42f0702e495e6b9d8454e0a9028e6982411a04.tar.gz
ports-5a42f0702e495e6b9d8454e0a9028e6982411a04.zip
Notes
Diffstat (limited to 'net/csync2')
-rw-r--r--net/csync2/Makefile34
-rw-r--r--net/csync2/distinfo3
-rw-r--r--net/csync2/files/patch-getrealfn.c11
-rw-r--r--net/csync2/files/patch-rsync.c11
-rw-r--r--net/csync2/pkg-descr11
-rw-r--r--net/csync2/pkg-message9
6 files changed, 79 insertions, 0 deletions
diff --git a/net/csync2/Makefile b/net/csync2/Makefile
new file mode 100644
index 000000000000..bcd6da5124e6
--- /dev/null
+++ b/net/csync2/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: net/csync2
+# Date created: 16 May 2007
+# Whom: Aaron Dalton <aaron@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= csync2
+PORTVERSION= 1.33
+CATEGORIES= net
+MASTER_SITES= http://oss.linbit.com/csync2/ \
+ http://people.freebsd.org/~aaron/distfiles/
+
+MAINTAINER= aaron@FreeBSD.org
+COMMENT= A cluster synchronization tool
+
+LIB_DEPENDS= rsync.1:${PORTSDIR}/net/librsync \
+ tasn1.3:${PORTSDIR}/security/libtasn1 \
+ gnutls.15:${PORTSDIR}/security/gnutls \
+ sqlite.2:${PORTSDIR}/databases/sqlite2
+
+MAN1= csync2.1
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include"
+CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
+
+PLIST_FILES= sbin/csync2 \
+ sbin/csync2-compare
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/net/csync2/distinfo b/net/csync2/distinfo
new file mode 100644
index 000000000000..4ea969960f03
--- /dev/null
+++ b/net/csync2/distinfo
@@ -0,0 +1,3 @@
+MD5 (csync2-1.33.tar.gz) = e16e3c0f4285439cef09a6b63319a0b0
+SHA256 (csync2-1.33.tar.gz) = 2214adb04358b5d351cac7e13055e1c90f7897b7c0600b922de02ca6b0820651
+SIZE (csync2-1.33.tar.gz) = 218065
diff --git a/net/csync2/files/patch-getrealfn.c b/net/csync2/files/patch-getrealfn.c
new file mode 100644
index 000000000000..b2e9a70a5293
--- /dev/null
+++ b/net/csync2/files/patch-getrealfn.c
@@ -0,0 +1,11 @@
+--- getrealfn.c (revision 384)
++++ getrealfn.c (working copy)
+@@ -27,7 +27,7 @@
+
+ static char *my_get_current_dir_name()
+ {
+-#ifdef __CYGWIN__
++#if defined __CYGWIN__ || defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__
+ char *r = malloc(1024);
+ if (!getcwd(r, 1024))
+ strcpy(r, "/__PATH_TO_LONG__");
diff --git a/net/csync2/files/patch-rsync.c b/net/csync2/files/patch-rsync.c
new file mode 100644
index 000000000000..008f073598a9
--- /dev/null
+++ b/net/csync2/files/patch-rsync.c
@@ -0,0 +1,11 @@
+--- rsync.c.orig Wed May 16 10:59:08 2007
++++ rsync.c Wed May 16 10:59:17 2007
+@@ -82,7 +82,7 @@
+ long size;
+
+ if ( !conn_gets(buffer, 100) || sscanf(buffer, "octet-stream %ld\n", &size) != 1 ) {
+- if (!strcmp(buffer, "ERROR\n")) { errno=ENODATA; return -1; }
++ if (!strcmp(buffer, "ERROR\n")) { errno=EIO; return -1; }
+ csync_fatal("Format-error while receiving data.\n");
+ }
+
diff --git a/net/csync2/pkg-descr b/net/csync2/pkg-descr
new file mode 100644
index 000000000000..3926d6c61c6d
--- /dev/null
+++ b/net/csync2/pkg-descr
@@ -0,0 +1,11 @@
+Csync2 is a cluster synchronization tool. It can be used to keep files on
+multiple hosts in a cluster in sync. Csync2 can handle complex setups with
+much more than just 2 hosts, handle file deletions and can detect
+conflicts.
+
+It is expedient for HA-clusters, HPC-clusters, COWs and server farms. If
+you are looking for a tool to sync your laptop with your workstation, you
+better have a look at Unison (http://www.cis.upenn.edu/~bcpierce/unison/)
+too.
+
+WWW: http://oss.linbit.com/csync2/
diff --git a/net/csync2/pkg-message b/net/csync2/pkg-message
new file mode 100644
index 000000000000..a24f0efb7a2d
--- /dev/null
+++ b/net/csync2/pkg-message
@@ -0,0 +1,9 @@
+***********************************************************************
+
+There is a fair amount of post installation configuration that must be
+done before csync2 will work properly. Please refer to section 3.3 Post
+Installation in the official documentation found at:
+
+http://www.clifford.at/papers/2005/csync2/paper.pdf
+
+***********************************************************************