I added a new packet memcached. Signed-off-by: George McCollister <[email protected]> --- patches/memcached-1.4.4/autogen.sh | 1 + patches/memcached-1.4.4/configure_ac.diff | 62 ++++++++++++++++++++++++++++ patches/memcached-1.4.4/series | 1 + rules/memcached.in | 11 +++++ rules/memcached.make | 63 +++++++++++++++++++++++++++++ 5 files changed, 138 insertions(+), 0 deletions(-) create mode 120000 patches/memcached-1.4.4/autogen.sh create mode 100644 patches/memcached-1.4.4/configure_ac.diff create mode 100644 patches/memcached-1.4.4/series create mode 100644 rules/memcached.in create mode 100644 rules/memcached.make
diff --git a/patches/memcached-1.4.4/autogen.sh b/patches/memcached-1.4.4/autogen.sh new file mode 120000 index 0000000..9f8a4cb --- /dev/null +++ b/patches/memcached-1.4.4/autogen.sh @@ -0,0 +1 @@ +../autogen.sh \ No newline at end of file diff --git a/patches/memcached-1.4.4/configure_ac.diff b/patches/memcached-1.4.4/configure_ac.diff new file mode 100644 index 0000000..93d206f --- /dev/null +++ b/patches/memcached-1.4.4/configure_ac.diff @@ -0,0 +1,62 @@ +diff -Naur memcached-1.4.4/configure.ac memcached-1.4.4.new/configure.ac +--- memcached-1.4.4/configure.ac 2009-11-24 18:40:29.000000000 -0600 ++++ memcached-1.4.4.new/configure.ac 2010-11-08 13:27:43.000000000 -0600 +@@ -34,36 +34,6 @@ + + DETECT_ICC([], []) + +-dnl ********************************************************************** +-dnl DETECT_SUNCC ([ACTION-IF-YES], [ACTION-IF-NO]) +-dnl +-dnl check if this is the Sun Studio compiler, and if so run the ACTION-IF-YES +-dnl sets the $SUNCC variable to "yes" or "no" +-dnl ********************************************************************** +-AC_DEFUN([DETECT_SUNCC], +-[ +- SUNCC="no" +- AC_MSG_CHECKING([for Sun cc in use]) +- AC_RUN_IFELSE( +- [AC_LANG_PROGRAM([], [dnl +-#ifdef __SUNPRO_C +- return 0; +-#else +- return 1; +-#endif +- ]) +- ],[ +- AC_MSG_RESULT([yes]) +- [$1] +- SUNCC="yes" +- ], [ +- AC_MSG_RESULT([no]) +- [$2] +- ]) +-]) +- +-DETECT_SUNCC([CFLAGS="-mt $CFLAGS"], []) +- + if test "$ICC" = "no"; then + AC_PROG_CC_C99 + fi +@@ -356,21 +326,6 @@ + [ + AC_MSG_CHECKING([for htonll]) + have_htoll="no" +- AC_RUN_IFELSE([ +- AC_LANG_PROGRAM([ +-#include <sys/types.h> +-#include <netinet/in.h> +-#ifdef HAVE_INTTYPES_H +-#include <inttypes.h> */ +-#endif +- ], [ +- return htonll(0); +- ]) +- ], [ +- have_htoll="yes" +- AC_DEFINE([HAVE_HTONLL], [1], [Have ntohll]) +- ]) +- + AC_MSG_RESULT([$have_htoll]) + ]) + diff --git a/patches/memcached-1.4.4/series b/patches/memcached-1.4.4/series new file mode 100644 index 0000000..aad7c7e --- /dev/null +++ b/patches/memcached-1.4.4/series @@ -0,0 +1 @@ +configure_ac.diff diff --git a/rules/memcached.in b/rules/memcached.in new file mode 100644 index 0000000..fba71c6 --- /dev/null +++ b/rules/memcached.in @@ -0,0 +1,11 @@ +## SECTION=networking + +config MEMCACHED + tristate + select LIBEVENT + prompt "memcached" + help + Memcached is an in-memory key-value store for small chunks of + arbitrary data (strings, objects) from results of database calls, + API calls, or page rendering. + diff --git a/rules/memcached.make b/rules/memcached.make new file mode 100644 index 0000000..a44e081 --- /dev/null +++ b/rules/memcached.make @@ -0,0 +1,63 @@ +# -*-makefile-*- +# +# Copyright (C) 2009 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_MEMCACHED) += memcached + +# +# Paths and names +# +MEMCACHED_VERSION := 1.4.4 +MEMCACHED := memcached-$(MEMCACHED_VERSION) +MEMCACHED_SUFFIX := tar.gz +MEMCACHED_URL := http://memcached.googlecode.com/files/$(MEMCACHED).$(MEMCACHED_SUFFIX) +MEMCACHED_SOURCE := $(SRCDIR)/$(MEMCACHED).$(MEMCACHED_SUFFIX) +MEMCACHED_DIR := $(BUILDDIR)/$(MEMCACHED) +MEMCACHED_DEP := libevent + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +MEMCACHED_ENV += CPPFLAGS="$(CROSS_CPPFLAGS)" LDFLAGS="$(CROSS_LDFLAGS)" + +ifdef PTXCONF_ENDIAN_LITTLE + MEMCACHED_ENV += ac_cv_c_endian=little +else + MEMCACHED_ENV += ac_cv_c_endian=big +endif +MEMCACHED_ENV += ac_cv_c_alignment=need + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/memcached.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, memcached) + @$(call install_fixup,memcached,PACKAGE,memcached) + @$(call install_fixup,memcached,PRIORITY,optional) + @$(call install_fixup,memcached,VERSION,$(MEMCACHED_VERSION)) + @$(call install_fixup,memcached,SECTION,base) + @$(call install_fixup,memcached,AUTHOR,"NovaTech-LLC") + @$(call install_fixup,memcached,DEPENDS,"$(MEMCACHED_DEP)") + @$(call install_fixup,memcached,DESCRIPTION,missing) + + @$(call install_copy, memcached, 0, 0, 0755, -, /usr/bin/memcached) + @$(call install_copy, memcached, 0, 0, 0700, /var/run/memcached) + + @$(call install_finish,memcached) + + @$(call touch) + +# vim: syntax=make -- 1.6.4.2 -- ptxdist mailing list [email protected]
