summaryrefslogtreecommitdiffstats
path: root/cluster
diff options
context:
space:
mode:
authorVlad Glagolev2011-01-15 07:40:26 +0300
committerVlad Glagolev2011-01-15 07:40:26 +0300
commit5d62eda50e17aa406234e60663daeb7e9f051202 (patch)
treefb18bd91dc6196f107b4f53ddcbc01c284fc9a46 /cluster
parent8041e408497805a4b6b60ff143ff49cad8302f69 (diff)
csync2: new spell, cluster synchronization tool, 2nd generation
Diffstat (limited to 'cluster')
-rwxr-xr-xcluster/csync2/BUILD3
-rwxr-xr-xcluster/csync2/DEPENDS11
-rwxr-xr-xcluster/csync2/DETAILS17
-rw-r--r--cluster/csync2/HISTORY3
-rwxr-xr-xcluster/csync2/PRE_BUILD7
-rw-r--r--cluster/csync2/configure.patch11
-rw-r--r--cluster/csync2/services1
-rwxr-xr-xcluster/csync2/xinetd.d/csync213
8 files changed, 66 insertions, 0 deletions
diff --git a/cluster/csync2/BUILD b/cluster/csync2/BUILD
new file mode 100755
index 0000000000..36d36a6946
--- /dev/null
+++ b/cluster/csync2/BUILD
@@ -0,0 +1,3 @@
+OPTS="--sysconfdir=$INSTALL_ROOT/etc/csync2 $OPTS" &&
+
+default_build
diff --git a/cluster/csync2/DEPENDS b/cluster/csync2/DEPENDS
new file mode 100755
index 0000000000..618d944640
--- /dev/null
+++ b/cluster/csync2/DEPENDS
@@ -0,0 +1,11 @@
+depends sqlite2 &&
+depends librsync &&
+
+optional_depends gnutls \
+ "--enable-gnutls" \
+ "--disable-gnutls" \
+ "for network traffic encryption" &&
+
+if is_depends_enabled $SPELL gnutls; then
+ depends libtasn1
+fi
diff --git a/cluster/csync2/DETAILS b/cluster/csync2/DETAILS
new file mode 100755
index 0000000000..bad4e372c9
--- /dev/null
+++ b/cluster/csync2/DETAILS
@@ -0,0 +1,17 @@
+ SPELL=csync2
+ VERSION=1.34
+ SOURCE=$SPELL-$VERSION.tar.gz
+ SOURCE_URL[0]=http://oss.linbit.com/$SPELL/$SOURCE
+ SOURCE_HASH=sha512:a24154446740f3362c10a23d526c29e96292f2ad56a9ed2f11ca0a6d7afed3730d0e96f8ebc2c6cdcc17031aa0e368f6ba93084ad3cf5f4828fbc279e6f004d8
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE=http://oss.linbit.com/csync2/
+ LICENSE[0]=GPL
+ ENTERED=20110114
+ SHORT="cluster synchronization tool, 2nd generation"
+cat << EOF
+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.
+EOF
diff --git a/cluster/csync2/HISTORY b/cluster/csync2/HISTORY
new file mode 100644
index 0000000000..39a5cf7ae3
--- /dev/null
+++ b/cluster/csync2/HISTORY
@@ -0,0 +1,3 @@
+2010-01-14 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS, DEPENDS, {PRE_,}BUILD, xinetd.d, services, configure.patch:
+ spell created
diff --git a/cluster/csync2/PRE_BUILD b/cluster/csync2/PRE_BUILD
new file mode 100755
index 0000000000..d404b69786
--- /dev/null
+++ b/cluster/csync2/PRE_BUILD
@@ -0,0 +1,7 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+if is_depends_enabled $SPELL gnutls; then
+ patch -p0 < "$SPELL_DIRECTORY/configure.patch" &&
+ autoreconf -i
+fi
diff --git a/cluster/csync2/configure.patch b/cluster/csync2/configure.patch
new file mode 100644
index 0000000000..acfe4cc749
--- /dev/null
+++ b/cluster/csync2/configure.patch
@@ -0,0 +1,11 @@
+--- configure.ac.orig 2007-07-25 01:04:19.000000000 +0400
++++ configure.ac 2011-01-14 03:24:10.930926931 +0300
+@@ -60,7 +60,7 @@
+ then
+
+ # Check for gnuTLS.
+- AM_PATH_LIBGNUTLS(1.0.0, , [ AC_MSG_ERROR([[gnutls not found; install gnutls, gnutls-openssl and libtasn1 packages for your system or run configure with --disable-gnutls]]) ])
++ PKG_CHECK_MODULES(gnutls, gnutls >= 1.0.0, , [ AC_MSG_ERROR([[gnutls not found; install gnutls, gnutls-openssl and libtasn1 packages for your system or run configure with --disable-gnutls]]) ])
+
+ # This is a bloody hack for fedora core
+ CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
diff --git a/cluster/csync2/services b/cluster/csync2/services
new file mode 100644
index 0000000000..6069f964b7
--- /dev/null
+++ b/cluster/csync2/services
@@ -0,0 +1 @@
+csync2 30865/tcp
diff --git a/cluster/csync2/xinetd.d/csync2 b/cluster/csync2/xinetd.d/csync2
new file mode 100755
index 0000000000..cce6415dcb
--- /dev/null
+++ b/cluster/csync2/xinetd.d/csync2
@@ -0,0 +1,13 @@
+service csync2
+{
+ flags = REUSE
+ socket_type = stream
+ wait = no
+ user = root
+ group = root
+ server = /usr/sbin/csync2
+ server_args = -i
+ #log_on_failure = USERID
+ disable = no
+ #only_from = 192.168.199.3 192.168.199.4
+}