diff options
author | George McCollister <george.mccollister@gmail.com> | 2010-11-19 14:17:11 -0600 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-11-23 13:12:54 +0100 |
commit | e60c86a20bf452c403f054a4762166974907ce51 (patch) | |
tree | db22f3612e0f19aac04c92a8453c541c38307da4 /rules | |
parent | 91114cd75aea461a928d7118d0aa09150c471214 (diff) | |
download | ptxdist-e60c86a20bf452c403f054a4762166974907ce51.tar.gz ptxdist-e60c86a20bf452c403f054a4762166974907ce51.tar.xz |
libmemcached: added new packet
I added a new packet libmemcached. A client library for memcached.
Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/libmemcached.in | 36 | ||||
-rw-r--r-- | rules/libmemcached.make | 79 |
2 files changed, 115 insertions, 0 deletions
diff --git a/rules/libmemcached.in b/rules/libmemcached.in new file mode 100644 index 000000000..fa12ba6fc --- /dev/null +++ b/rules/libmemcached.in @@ -0,0 +1,36 @@ +## SECTION=system_libraries + +menuconfig LIBMEMCACHED + tristate + prompt "libmemcached" + help + libmemcached is a C client library for interfacing to a memcached + server. It has been designed to be light on memory usage, thread + safe and to provide full access to server side methods. It also + implements several command line tools: memcat, memflush, memrm, + memstat, and memslap (for load generation). The library has been + designed to allow for different hashing methods on keys, + partitioning by keys, and to use consistent hashing for + distribution. + You can find more information here: http://tangent.org/552/libmemcached.html + + config LIBMEMCACHED_LIBHASHKIT + depends on LIBMEMCACHED + bool + prompt "install libhashkit" + help + If selected libhashkit will be included in the package. + + config LIBMEMCACHED_LIBMEMCACHEDUTIL + depends on LIBMEMCACHED + bool + prompt "install libmemcachedutil" + help + If selected libmemcachedutil will be included in the package. + + config LIBMEMCACHED_LIBMEMCACHEDPROTOCOL + depends on LIBMEMCACHED + bool + prompt "install libmemcachedprotocol" + help + If selected libmemcachedprotocol will be included in the package. diff --git a/rules/libmemcached.make b/rules/libmemcached.make new file mode 100644 index 000000000..0b9103d83 --- /dev/null +++ b/rules/libmemcached.make @@ -0,0 +1,79 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by NovaTech-LLC +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBMEMCACHED) += libmemcached + +# +# Paths and names +# +LIBMEMCACHED_VERSION := 0.44 +LIBMEMCACHED := libmemcached-$(LIBMEMCACHED_VERSION) +LIBMEMCACHED_SUFFIX := tar.gz +LIBMEMCACHED_URL := http://launchpad.net/libmemcached/1.0/$(LIBMEMCACHED_VERSION)/+download/$(LIBMEMCACHED).$(LIBMEMCACHED_SUFFIX) +LIBMEMCACHED_SOURCE := $(SRCDIR)/$(LIBMEMCACHED).$(LIBMEMCACHED_SUFFIX) +LIBMEMCACHED_DIR := $(BUILDDIR)/$(LIBMEMCACHED) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBMEMCACHED_ENV := \ + $(CROSS_ENV) + +#We have libevent but disable it so clients/memslap doesn't build. +#It fails to link because __sync_fetch_and_sub_4 is missing. +LIBMEMCACHED_ENV += ac_cv_libevent=no + +# +# autoconf +# +LIBMEMCACHED_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) \ + --without-memcached \ + --without-docs \ + --disable-libevent \ + --disable-libinnodb \ + --disable-sasl \ + --disable-murmur_hash +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libmemcached.targetinstall: + @$(call targetinfo) + + @$(call install_init, libmemcached) + @$(call install_fixup, libmemcached, PRIORITY, optional) + @$(call install_fixup, libmemcached, SECTION, base) + @$(call install_fixup, libmemcached, AUTHOR, "NovaTech-LLC") + @$(call install_fixup, libmemcached, DESCRIPTION, missing) + + @$(call install_lib, libmemcached, 0, 0, 0644, libmemcached) + +ifdef PTXCONF_LIBMEMCACHED_LIBHASHKIT + @$(call install_lib, libmemcached, 0, 0, 0644, libhashkit) +endif + +ifdef PTXCONF_LIBMEMCACHED_LIBMEMCACHEDUTIL + @$(call install_lib, libmemcached, 0, 0, 0644, libmemcachedutil) +endif + +ifdef PTXCONF_LIBMEMCACHED_LIBMEMCACHEDPROTOCOL + @$(call install_lib, libmemcached, 0, 0, 0644, libmemcachedprotocol) +endif + + @$(call install_finish,libmemcached) + + @$(call touch) + +# vim: syntax=make |