From 49851b1190307524014e2645105b902657c46038 Mon Sep 17 00:00:00 2001 From: Kevin Baker Date: Sat, 9 Feb 2013 05:02:47 +0000 Subject: redis: add new recipe for redis-2.6.9 A recipe for Redis 2.6.9, an advanced key-value store. Needed some patching of Makefiles and deps to get it to work with OE. OE Specific configuration: This is built to override MALLOC and use libc's malloc instead of the provided jemalloc or tcmalloc that weren't building correctly. Also the default savepoint setting was updated in the default redis.conf to tune for a small embedded system. Known Bug: redis-cli eats all the input on a serial port - watch out when using the serial console with redis-cli. see https://github.com/antirez/linenoise/issues/38 Tested with Yocto "Danny" / armv7a. Signed-off-by: Kevin Baker Signed-off-by: Martin Jansa --- meta-oe/recipes-extended/redis/redis_2.6.9.bb | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta-oe/recipes-extended/redis/redis_2.6.9.bb (limited to 'meta-oe/recipes-extended/redis/redis_2.6.9.bb') diff --git a/meta-oe/recipes-extended/redis/redis_2.6.9.bb b/meta-oe/recipes-extended/redis/redis_2.6.9.bb new file mode 100644 index 000000000..f6818ee51 --- /dev/null +++ b/meta-oe/recipes-extended/redis/redis_2.6.9.bb @@ -0,0 +1,36 @@ +SUMMARY = "Redis key-value store" +DESCRIPTION = "Redis is an open source, advanced key-value store." +HOMEPAGE = "http://redis.io" +SECTION = "libs" +LICENSE = "BSD" +LIC_FILES_CHKSUM="file://COPYING;md5=673e0ac66aac758f8f2140c6fc7947d2" + +SRC_URI = "http://redis.googlecode.com/files/redis-${PV}.tar.gz \ + file://hiredis-use-default-CC-if-it-is-set.patch \ + file://lua-update-Makefile-to-use-environment-build-setting.patch \ + file://oe-use-libc-malloc.patch \ + file://redis.conf \ + file://init-redis-server \ + " + +inherit update-rc.d + +INITSCRIPT_NAME = "redis-server" +INITSCRIPT_PARAMS = "defaults 87" + +SRC_URI[md5sum] = "5093fb7c5f763e828c857daf260665bc" +SRC_URI[sha256sum] = "4d967eff2038aebea33875d17e85ed67179df6505df68529a622f7836d1c7489" + +do_install() { + export PREFIX=${D}/${prefix} + oe_runmake install + + install -d ${D}/${sysconfdir}/redis + install -m 0755 ${WORKDIR}/redis.conf ${D}/${sysconfdir}/redis/redis.conf + + install -d ${D}/${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/init-redis-server ${D}/${sysconfdir}/init.d/redis-server + + install -d ${D}/var/lib/redis/ +} + -- cgit v1.2.3-54-g00ecf