Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "Redis key-value store" |
| 2 | DESCRIPTION = "Redis is an open source, advanced key-value store." |
| 3 | HOMEPAGE = "http://redis.io" |
| 4 | SECTION = "libs" |
| 5 | LICENSE = "BSD" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=3c01b49fed4df1a79843688fa3f7b9d6" |
| 7 | DEPENDS = "" |
| 8 | |
| 9 | SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ |
| 10 | file://hiredis-use-default-CC-if-it-is-set.patch \ |
| 11 | file://lua-update-Makefile-to-use-environment-build-setting.patch \ |
| 12 | file://oe-use-libc-malloc.patch \ |
| 13 | file://redis.conf \ |
| 14 | file://init-redis-server \ |
| 15 | " |
| 16 | SRC_URI[md5sum] = "87be8867447f62524b584813e5a7bd14" |
| 17 | SRC_URI[sha256sum] = "93e422c0d584623601f89b956045be158889ebe594478a2c24e1bf218495633f" |
| 18 | |
| 19 | inherit autotools-brokensep update-rc.d |
| 20 | |
| 21 | do_install() { |
| 22 | export PREFIX=${D}/${prefix} |
| 23 | oe_runmake install |
| 24 | install -d ${D}/${sysconfdir}/redis |
| 25 | install -m 0644 ${WORKDIR}/redis.conf ${D}/${sysconfdir}/redis/redis.conf |
| 26 | install -d ${D}/${sysconfdir}/init.d |
| 27 | install -m 0755 ${WORKDIR}/init-redis-server ${D}/${sysconfdir}/init.d/redis-server |
| 28 | install -d ${D}/var/lib/redis/ |
| 29 | } |
| 30 | |
| 31 | CONFFILES_${PN} = "${sysconfdir}/redis/redis.conf" |
| 32 | |
| 33 | INITSCRIPT_NAME = "redis-server" |
| 34 | INITSCRIPT_PARAMS = "defaults 87" |