Permalink
Browse files

Add the libmemcache HG repository and build it locally.

This should reduce the dependency-hunting nightmare that users experience on
OS X 10.5 and probably a lot of other platforms: Just sync the libmemcached
library and the memcached gem, build and install them together.
  • Loading branch information...
1 parent 9d500b9 commit eebf0e895e5aad16fd54d4b2b222131902d21c64 @antifuchs antifuchs committed Nov 14, 2008
Showing 360 changed files with 17,283 additions and 1 deletion.
View
@@ -0,0 +1,3 @@
+pkg/*
+ext/libmemcache.*
+ext/libmemcache/*
View
@@ -0,0 +1,3 @@
+[submodule "ext/memcache"]
+ path = ext/memcache
+ url = http://consoleninja.net/code/memcached/memcached.git
View
148 Manifest
@@ -1,7 +1,155 @@
BENCHMARKS
CHANGELOG
COMPATIBILITY
+ext/build-libmemcached.sh
ext/extconf.rb
+ext/libmemcached-src
+ext/libmemcached-src/AUTHORS
+ext/libmemcached-src/ChangeLog
+ext/libmemcached-src/clients
+ext/libmemcached-src/clients/client_options.h
+ext/libmemcached-src/clients/execute.c
+ext/libmemcached-src/clients/execute.h
+ext/libmemcached-src/clients/generator.c
+ext/libmemcached-src/clients/generator.h
+ext/libmemcached-src/clients/Makefile.am
+ext/libmemcached-src/clients/memcat.c
+ext/libmemcached-src/clients/memcp.c
+ext/libmemcached-src/clients/memerror.c
+ext/libmemcached-src/clients/memflush.c
+ext/libmemcached-src/clients/memrm.c
+ext/libmemcached-src/clients/memslap.c
+ext/libmemcached-src/clients/memstat.c
+ext/libmemcached-src/clients/utilities.c
+ext/libmemcached-src/clients/utilities.h
+ext/libmemcached-src/config
+ext/libmemcached-src/config/64bit.m4
+ext/libmemcached-src/config/bootstrap
+ext/libmemcached-src/config/byteorder.m4
+ext/libmemcached-src/config/debug.m4
+ext/libmemcached-src/config/dtrace.m4
+ext/libmemcached-src/config/pod2man.m4
+ext/libmemcached-src/config/protocol_binary.m4
+ext/libmemcached-src/configure.ac
+ext/libmemcached-src/COPYING
+ext/libmemcached-src/docs
+ext/libmemcached-src/docs/libmemcached.pod
+ext/libmemcached-src/docs/libmemcached_examples.pod
+ext/libmemcached-src/docs/Makefile.am
+ext/libmemcached-src/docs/memcached_auto.pod
+ext/libmemcached-src/docs/memcached_behavior.pod
+ext/libmemcached-src/docs/memcached_callback.pod
+ext/libmemcached-src/docs/memcached_create.pod
+ext/libmemcached-src/docs/memcached_delete.pod
+ext/libmemcached-src/docs/memcached_flush.pod
+ext/libmemcached-src/docs/memcached_get.pod
+ext/libmemcached-src/docs/memcached_quit.pod
+ext/libmemcached-src/docs/memcached_result_st.pod
+ext/libmemcached-src/docs/memcached_server_st.pod
+ext/libmemcached-src/docs/memcached_servers.pod
+ext/libmemcached-src/docs/memcached_set.pod
+ext/libmemcached-src/docs/memcached_stats.pod
+ext/libmemcached-src/docs/memcached_strerror.pod
+ext/libmemcached-src/docs/memcached_verbosity.pod
+ext/libmemcached-src/docs/memcached_version.pod
+ext/libmemcached-src/docs/memcat.pod
+ext/libmemcached-src/docs/memcp.pod
+ext/libmemcached-src/docs/memerror.pod
+ext/libmemcached-src/docs/memflush.pod
+ext/libmemcached-src/docs/memrm.pod
+ext/libmemcached-src/docs/memslap.pod
+ext/libmemcached-src/docs/memstat.pod
+ext/libmemcached-src/libmemcached
+ext/libmemcached-src/libmemcached/byteorder.c
+ext/libmemcached-src/libmemcached/common.h
+ext/libmemcached-src/libmemcached/crc.c
+ext/libmemcached-src/libmemcached/hsieh_hash.c
+ext/libmemcached-src/libmemcached/jenkins_hash.c
+ext/libmemcached-src/libmemcached/libmemcached_probes.d
+ext/libmemcached-src/libmemcached/libmemcached_probes.h
+ext/libmemcached-src/libmemcached/Makefile.am
+ext/libmemcached-src/libmemcached/md5.c
+ext/libmemcached-src/libmemcached/memcached
+ext/libmemcached-src/libmemcached/memcached/protocol_binary.h
+ext/libmemcached-src/libmemcached/memcached/README.txt
+ext/libmemcached-src/libmemcached/memcached.c
+ext/libmemcached-src/libmemcached/memcached.h
+ext/libmemcached-src/libmemcached/memcached.hh
+ext/libmemcached-src/libmemcached/memcached_auto.c
+ext/libmemcached-src/libmemcached/memcached_behavior.c
+ext/libmemcached-src/libmemcached/memcached_callback.c
+ext/libmemcached-src/libmemcached/memcached_connect.c
+ext/libmemcached-src/libmemcached/memcached_constants.h
+ext/libmemcached-src/libmemcached/memcached_delete.c
+ext/libmemcached-src/libmemcached/memcached_do.c
+ext/libmemcached-src/libmemcached/memcached_fetch.c
+ext/libmemcached-src/libmemcached/memcached_fetch_execute.c
+ext/libmemcached-src/libmemcached/memcached_flush.c
+ext/libmemcached-src/libmemcached/memcached_get.c
+ext/libmemcached-src/libmemcached/memcached_get.h
+ext/libmemcached-src/libmemcached/memcached_hash.c
+ext/libmemcached-src/libmemcached/memcached_hosts.c
+ext/libmemcached-src/libmemcached/memcached_io.c
+ext/libmemcached-src/libmemcached/memcached_io.h
+ext/libmemcached-src/libmemcached/memcached_key.c
+ext/libmemcached-src/libmemcached/memcached_parse.c
+ext/libmemcached-src/libmemcached/memcached_purge.c
+ext/libmemcached-src/libmemcached/memcached_quit.c
+ext/libmemcached-src/libmemcached/memcached_response.c
+ext/libmemcached-src/libmemcached/memcached_result.c
+ext/libmemcached-src/libmemcached/memcached_result.h
+ext/libmemcached-src/libmemcached/memcached_server.c
+ext/libmemcached-src/libmemcached/memcached_server.h
+ext/libmemcached-src/libmemcached/memcached_stats.c
+ext/libmemcached-src/libmemcached/memcached_storage.c
+ext/libmemcached-src/libmemcached/memcached_storage.h
+ext/libmemcached-src/libmemcached/memcached_strerror.c
+ext/libmemcached-src/libmemcached/memcached_string.c
+ext/libmemcached-src/libmemcached/memcached_string.h
+ext/libmemcached-src/libmemcached/memcached_types.h
+ext/libmemcached-src/libmemcached/memcached_verbosity.c
+ext/libmemcached-src/libmemcached/memcached_version.c
+ext/libmemcached-src/libmemcached/memcached_watchpoint.h
+ext/libmemcached-src/libmemcached/murmur_hash.c
+ext/libmemcached-src/Makefile.am
+ext/libmemcached-src/NEWS
+ext/libmemcached-src/README
+ext/libmemcached-src/README.FIRST
+ext/libmemcached-src/support
+ext/libmemcached-src/support/libmemcached.pc.in
+ext/libmemcached-src/support/libmemcached.spec.in
+ext/libmemcached-src/support/Makefile.am
+ext/libmemcached-src/support/set_benchmark.sh
+ext/libmemcached-src/tests
+ext/libmemcached-src/tests/atomsmasher.c
+ext/libmemcached-src/tests/function.c
+ext/libmemcached-src/tests/ketama_test_cases.h
+ext/libmemcached-src/tests/Makefile.am
+ext/libmemcached-src/tests/output.res
+ext/libmemcached-src/tests/output2.res
+ext/libmemcached-src/tests/plus.cpp
+ext/libmemcached-src/tests/r
+ext/libmemcached-src/tests/r/memcat.res
+ext/libmemcached-src/tests/r/memcp.res
+ext/libmemcached-src/tests/r/memrm.res
+ext/libmemcached-src/tests/r/memslap.res
+ext/libmemcached-src/tests/r/memstat.res
+ext/libmemcached-src/tests/server.c
+ext/libmemcached-src/tests/server.h
+ext/libmemcached-src/tests/start.c
+ext/libmemcached-src/tests/t
+ext/libmemcached-src/tests/t/memcat.test
+ext/libmemcached-src/tests/t/memcp.test
+ext/libmemcached-src/tests/t/memrm.test
+ext/libmemcached-src/tests/t/memslap.test
+ext/libmemcached-src/tests/t/memstat.test
+ext/libmemcached-src/tests/test.c
+ext/libmemcached-src/tests/test.h
+ext/libmemcached-src/tests/udp.c
+ext/libmemcached-src/THANKS
+ext/libmemcached-src/TODO
+ext/pkgconfig
+ext/pkgconfig/libmemcached.pc
ext/rlibmemcached.i
ext/rlibmemcached_wrap.c
lib/memcached/behaviors.rb
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+cd libmemcached-src
+./config/bootstrap
+./configure --prefix=`pwd`/unused --libdir=`pwd`/.. --includedir=`pwd`/..
+make && make install
View
@@ -1,9 +1,20 @@
require 'mkmf'
+additional_include=""
+additional_libdir=""
+
+unless ENV['NO_MEMCACHE_BUILD']
+ puts "building memcache"
+ base=File.dirname(__FILE__)
+ $stdout.write `cd #{base} && ./build-libmemcached.sh`
+ additional_include=" -I./libmemcache-include"
+ additional_libdir=" -L./libmemcache-lib"
+end
+
if ENV['SWIG']
puts "running SWIG"
- $stdout.write `swig -I/opt/local/include -ruby -autorename rlibmemcached.i`
+ $stdout.write `swig -I/opt/local/include #{additional_include} #{additional_libdir} -ruby -autorename rlibmemcached.i`
end
if `uname -sp` == "Darwin i386\n"
Binary file not shown.
@@ -0,0 +1 @@
+default
@@ -0,0 +1,7 @@
+562ac6bf346adb7357115df127f02cb0284ffdde 568
+062ae7f4824e35cd76479ad6abea25a37b2c795b binary
+831dd42370aa27144b36041b15e3202c5cab3266 multi
+562ac6bf346adb7357115df127f02cb0284ffdde default
+9cbb58b05ba3f9ba7935dd810f32cb108fd9a51d head
+066ab7b9a349b4c2d416760437b370311d8da23a replication
+6169d8d15cd1e616b82dab88c73c20ffdd82bf41 timbunce
Binary file not shown.
@@ -0,0 +1,2 @@
+[paths]
+default = http://hg.tangent.org/libmemcached/
@@ -0,0 +1,2 @@
+revlogv1
+store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
+default
No changes.
@@ -0,0 +1,74 @@
+# Exact paths to config junk
+^INSTALL$
+^aclocal.m4$
+^configure$
+^config/(config.guess|config.sub|depcomp|install-sh|ltmain.sh|missing)$
+^config.(log|status)$
+^libtool$
+^autom4te.cache$
+^libmemcached/(libmemcached_config.h(.in)?|stamp-h1)$
+^libmemcached/libmemcached_config.h.in$
+^stamp-h1$
+^lib/libmemcachedPlus.la$
+^tests/testplus$
+
+
+# Build artifacts
+^libmemcached/libmemcached.la$
+^clients/mem(cat|cp|flush|rm|slap|stat|error)$
+^tests/testapp$
+.(deps|libs)/*$
+.cmp$
+autom4te.cache/*$
+.(gz|cmp|tar|rpm|srpm)$
+support/libmemcached.pc$
+support/libmemcached.spec$
+docs/pod2htmd.tmp
+docs/pod2htmi.tmp
+libmemcached/memcachedplus.loT
+tests/atomsmasher
+tests/startservers
+tests/stopservers
+tests/udptest
+
+
+
+Makefile(.in)?$
+.(deps|libs)$
+\.l?o$
+
+# Generated man files
+\.1$
+\.3$
+
+# Merged files
+\.orig$
+
+#HTML files
+docs/libmemcached/default.css
+docs/libmemcached/memcached.html
+docs/libmemcached/memcached_auto.html
+docs/libmemcached/memcached_behavior.html
+docs/libmemcached/memcached_callback.html
+docs/libmemcached/memcached_create.html
+docs/libmemcached/memcached_delete.html
+docs/libmemcached/memcached_examples.html
+docs/libmemcached/memcached_flush.html
+docs/libmemcached/memcached_get.html
+docs/libmemcached/memcached_quit.html
+docs/libmemcached/memcached_result_st.html
+docs/libmemcached/memcached_server_st.html
+docs/libmemcached/memcached_servers.html
+docs/libmemcached/memcached_set.html
+docs/libmemcached/memcached_stats.html
+docs/libmemcached/memcached_strerror.html
+docs/libmemcached/memcached_verbosity.html
+docs/libmemcached/memcached_version.html
+docs/libmemcached/memcat.html
+docs/libmemcached/memcp.html
+docs/libmemcached/memerror.html
+docs/libmemcached/memflush.html
+docs/libmemcached/memrm.html
+docs/libmemcached/memslap.html
+docs/libmemcached/memstat.html
+
@@ -0,0 +1,20 @@
+72b98d8bc30ed2f88fa317cdf6880f90b592b00d 0.2
+51d5149b2db0ad224b588db3a73297bb0d4d11d2 0.3
+45bd6abd7821ee9d2ee090788691a21387f69c79 0.4
+76a1ddcb86f3bb3c6ede6057acfa96ac963863b7 0.5
+3a8499f79e65086967fee72676aa4d38e47f0d99 0_7
+0e18bfea2fef5162b42f636afefe81816eb40fde 0.8
+3edd680dcb59aaf45389f3e12de72972ae765df1 0.10
+8d16fe8ee085aef545b779bac27c2e8404ba2771 .11
+e550601786217c5fcb740da61767f8833dede150 0.13
+8763368afb473418e15a16639d937cdf2c21d8c6 0.14
+40f415f71362190581f7d14ebcebe9a010e85d9b 0.15
+d3a0f78ca6124dabff3df4411724fdbfe64c370f 0.16
+bd5bdc38d529706753d843519e9e0dd3d6f58986 0.17
+d7bc34e6a9e0222e3444b95b22591cb40e3a1318 0.18
+ea32e958361ce1889815213d85dcbe1d89131356 0.19
+9f8a8e3976c5987474e2535ef82c6766546fdf3a .20
+fe3c45a3a97f52f070bdd20abd890a38591df035 0.21
+55e4cd5cda1db97871ff9cbe13878b25231f7260 0.22
+58900f15f36b2398aa807dc7a8ae81937b7c73c8 .23
+86b581b9fdb84691a1cd7633d3ad7a2c67b7b402 .23
@@ -0,0 +1,6 @@
+Brian Aker, brian@tangent.org -- Client Library, Tools
+Mark Atwood, -- Tools, Docs
+Patrick Galbraith, -- C++ Interface
+Tim Bunce, -- Docs
+Trond Norbye, trond.norbye@sun.com -- Binary protocol
+Yin Chen, -- Ketama Work
@@ -0,0 +1,32 @@
+Software License Agreement (BSD License)
+
+Copyright (c) 2007, TangentOrg (Brian Aker)
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above
+copyright notice, this list of conditions and the following disclaimer
+in the documentation and/or other materials provided with the
+distribution.
+
+ * Neither the name of TangentOrg nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Oops, something went wrong.

0 comments on commit eebf0e8

Please sign in to comment.