From d3b56233582777a069aa30b65137436685fd2a75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 31 May 2011 16:38:39 +0200
Subject: [PATCH] Import
 https://svn.erp5.org/repos/public/slapos/trunk/software_release/nosqltestbed

---
 component/libmemcached/buildout.cfg | 19 +++++++++++++++
 component/memstrike/buildout.cfg    | 36 +++++++++++++++++++++++++++++
 software/nosqltestbed/instance.cfg  | 16 +++++++++++++
 software/nosqltestbed/software.cfg  | 14 +++++++++++
 stack/nosqltestbed.cfg              | 29 +++++++++++++++++++++++
 5 files changed, 114 insertions(+)
 create mode 100644 component/libmemcached/buildout.cfg
 create mode 100644 component/memstrike/buildout.cfg
 create mode 100644 software/nosqltestbed/instance.cfg
 create mode 100644 software/nosqltestbed/software.cfg
 create mode 100644 stack/nosqltestbed.cfg

diff --git a/component/libmemcached/buildout.cfg b/component/libmemcached/buildout.cfg
new file mode 100644
index 0000000000..fed0305a87
--- /dev/null
+++ b/component/libmemcached/buildout.cfg
@@ -0,0 +1,19 @@
+[buildout]
+
+parts =
+  libmemcached
+
+[libmemcached]
+recipe = hexagonit.recipe.cmmi
+url = http://launchpad.net/libmemcached/1.0/0.44/+download/libmemcached-0.44.tar.gz
+md5sum = e6bd825c46fa080b550f90f9001cba8c
+configure-options =
+  --without-docs
+  --without-memcached
+  --without-libgtest-prefix
+  --without-libevent-prefix
+  --without-libinnodb-prefix
+  --without-libsasl-prefix
+  --without-libsasl2-prefix
+
+
diff --git a/component/memstrike/buildout.cfg b/component/memstrike/buildout.cfg
new file mode 100644
index 0000000000..6490710288
--- /dev/null
+++ b/component/memstrike/buildout.cfg
@@ -0,0 +1,36 @@
+[buildout]
+extends =
+  ../libmemcached/buildout.cfg
+  ../git/buildout.cfg
+  ../autoconf/buildout.cfg
+  ../automake/buildout.cfg
+  ../libtool/buildout.cfg
+
+parts =
+  memstrike
+
+[memstrike]
+recipe = hexagonit.recipe.cmmi
+path = ${memstrikesource:location}
+configure-command =
+  ./bootstrap
+  ./configure
+configure-options =
+  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
+  --with-libmemcached=${libmemcached:location}
+environment =
+  PATH =${autoconf:location}/bin:${automake-1.11:location}/bin:${libtool:location}/bin:%(PATH)s
+  LDFLAGS =-Wl,-rpath=${libmemcached:location}/lib
+
+[memstrikesource]
+recipe=plone.recipe.command
+location = ${buildout:parts-directory}/${:_buildout_section_name_} 
+stop-on-error = true
+revision = 39d7a99e8bb7eea6df8b
+command =
+  rm -rf ${:location} &&
+  ${git:location}/bin/git clone --quiet git://github.com/frsyuki/memstrike.git ${:location} &&
+  cd ${:location} &&
+  ${git:location}/bin/git checkout --quiet ${:revision} *
+update-command =
+  echo "Nothing to update"
diff --git a/software/nosqltestbed/instance.cfg b/software/nosqltestbed/instance.cfg
new file mode 100644
index 0000000000..bfee6be371
--- /dev/null
+++ b/software/nosqltestbed/instance.cfg
@@ -0,0 +1,16 @@
+[buildout]
+parts =
+  kumoinstance
+
+eggs-directory = ${buildout:eggs-directory}
+develop-eggs-directory = ${buildout:develop-eggs-directory}
+
+[kumoinstance]
+<=slap_connection
+recipe = slapos.recipe.nosqltestbed
+manager_binary = ${kumo:location}/bin/kumo-manager
+server_binary = ${kumo:location}/bin/kumo-server
+gateway_binary = ${kumo:location}/bin/kumo-gateway
+nosqltester_binary = ${buildout:bin-directory}/nosqltester
+memstrike_binary = ${memstrike:location}/bin/memstrike
+nosqltester_manager_binary = ${buildout:bin-directory}/nosqltester_manager
diff --git a/software/nosqltestbed/software.cfg b/software/nosqltestbed/software.cfg
new file mode 100644
index 0000000000..60e14b5f3d
--- /dev/null
+++ b/software/nosqltestbed/software.cfg
@@ -0,0 +1,14 @@
+[buildout]
+extends =
+  ../../stack/nosqltestbed.cfg
+
+parts =
+  template
+
+[template]
+recipe = slapos.recipe.template
+url = ${:_profile_base_location_}/instance.cfg
+md5sum = 35e9dff34d7345af571f5d051cb01fe2
+output = ${buildout:directory}/template.cfg
+mode = 0644
+
diff --git a/stack/nosqltestbed.cfg b/stack/nosqltestbed.cfg
new file mode 100644
index 0000000000..cd57a8c4e3
--- /dev/null
+++ b/stack/nosqltestbed.cfg
@@ -0,0 +1,29 @@
+[buildout]
+extends =
+  ../component/kumo/buildout.cfg
+  ../component/memstrike/buildout.cfg
+  ../component/lxml-python/buildout.cfg
+
+parts =
+  eggs
+  kumo
+  memstrike
+
+versions = versions
+
+[kumo]
+environment += CXXFLAGS=-DKUMO_IPV6
+
+[eggs]
+recipe = zc.recipe.egg
+eggs =
+  ${lxml-python:egg}
+  slapos.recipe.nosqltestbed
+  slapos.tool.nosqltester
+  slapos.tool.nosqltester_manager
+  slapos.tool.nosqltester_manager.kumo
+
+[versions]
+# Use SlapOS patched zc.buildout
+zc.buildout = 1.5.3-dev-SlapOS-001
+
-- 
2.30.9