I added a new packet memcached. Signed-off-by: George McCollister <[email protected]> --- .../0001-Switch-AC_RUN-to-AC_LINK.patch | 41 +++++++++++++ patches/memcached-1.4.4/autogen.sh | 1 + patches/memcached-1.4.4/series | 1 + rules/memcached.in | 11 ++++ rules/memcached.make | 60 ++++++++++++++++++++ 5 files changed, 114 insertions(+), 0 deletions(-) create mode 100644 patches/memcached-1.4.4/0001-Switch-AC_RUN-to-AC_LINK.patch create mode 120000 patches/memcached-1.4.4/autogen.sh 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/0001-Switch-AC_RUN-to-AC_LINK.patch b/patches/memcached-1.4.4/0001-Switch-AC_RUN-to-AC_LINK.patch new file mode 100644 index 0000000..feef3a7 --- /dev/null +++ b/patches/memcached-1.4.4/0001-Switch-AC_RUN-to-AC_LINK.patch @@ -0,0 +1,41 @@ +From 5543dba0d43c52e758630f069e385c36a06a3376 Mon Sep 17 00:00:00 2001 +From: George McCollister <[email protected]> +Date: Wed, 17 Nov 2010 10:57:25 -0600 +Subject: [PATCH] Switch AC_RUN to AC_LINK + +AC_RUN checks fail when cross compiling, switched them to AC_LINK. +Signed-off-by: George McCollister <[email protected]> +--- + configure.ac | 5 +++-- + 1 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 6298d2d..00dc8c4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -44,11 +44,12 @@ AC_DEFUN([DETECT_SUNCC], + [ + SUNCC="no" + AC_MSG_CHECKING([for Sun cc in use]) +- AC_RUN_IFELSE( ++ AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([], [dnl + #ifdef __SUNPRO_C + return 0; + #else ++#error not sun cc + return 1; + #endif + ]) +@@ -356,7 +357,7 @@ AC_DEFUN([AC_C_HTONLL], + [ + AC_MSG_CHECKING([for htonll]) + have_htoll="no" +- AC_RUN_IFELSE([ ++ AC_LINK_IFELSE([ + AC_LANG_PROGRAM([ + #include <sys/types.h> + #include <netinet/in.h> +-- +1.6.4.2 + 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/series b/patches/memcached-1.4.4/series new file mode 100644 index 0000000..879874f --- /dev/null +++ b/patches/memcached-1.4.4/series @@ -0,0 +1 @@ +0001-Switch-AC_RUN-to-AC_LINK.patch 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..1aba666 --- /dev/null +++ b/rules/memcached.make @@ -0,0 +1,60 @@ +# -*-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 := $(CROSS_ENV) + +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, PRIORITY, optional) + @$(call install_fixup, memcached, SECTION, base) + @$(call install_fixup, memcached, AUTHOR,"NovaTech-LLC") + @$(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]
