diff options
Diffstat (limited to 'meta-networking/recipes-support/memcached/memcached_1.5.7.bb')
-rw-r--r-- | meta-networking/recipes-support/memcached/memcached_1.5.7.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/memcached/memcached_1.5.7.bb b/meta-networking/recipes-support/memcached/memcached_1.5.7.bb new file mode 100644 index 0000000000..0703e7c59a --- /dev/null +++ b/meta-networking/recipes-support/memcached/memcached_1.5.7.bb | |||
@@ -0,0 +1,52 @@ | |||
1 | SUMMARY = "A high-performance memory object caching system" | ||
2 | DESCRIPTION = "\ | ||
3 | memcached optimizes specific high-load serving applications that are designed \ | ||
4 | to take advantage of its versatile no-locking memory access system. Clients \ | ||
5 | are available in several different programming languages, to suit the needs \ | ||
6 | of the specific application. Traditionally this has been used in mod_perl \ | ||
7 | apps to avoid storing large chunks of data in Apache memory, and to share \ | ||
8 | this burden across several machines." | ||
9 | SECTION = "web" | ||
10 | HOMEPAGE = "http://memcached.org/" | ||
11 | LICENSE = "BSD-3-Clause" | ||
12 | |||
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=7e5ded7363d335e1bb18013ca08046ff" | ||
14 | |||
15 | inherit autotools | ||
16 | |||
17 | DEPENDS += "libevent" | ||
18 | RDEPENDS_${PN} += "perl perl-module-posix perl-module-autoloader \ | ||
19 | perl-module-tie-hash bash \ | ||
20 | " | ||
21 | |||
22 | SRC_URI = "http://www.memcached.org/files/${BP}.tar.gz \ | ||
23 | file://memcached-add-hugetlbfs-check.patch \ | ||
24 | " | ||
25 | SRC_URI[md5sum] = "07feaa900181c66753f9b060f40f24aa" | ||
26 | SRC_URI[sha256sum] = "5bb706a8fc7ae7461a6788eaddd85e4a4e84e952d3a80c21926342c2838f4e46" | ||
27 | |||
28 | # set the same COMPATIBLE_HOST as libhugetlbfs | ||
29 | COMPATIBLE_HOST = '(i.86|x86_64|powerpc|powerpc64|arm).*-linux' | ||
30 | |||
31 | python __anonymous () { | ||
32 | endianness = d.getVar('SITEINFO_ENDIANNESS') | ||
33 | if endianness == 'le': | ||
34 | d.appendVar('EXTRA_OECONF', " ac_cv_c_endian=little") | ||
35 | else: | ||
36 | d.appendVar('EXTRA_OECONF', " ac_cv_c_endian=big") | ||
37 | } | ||
38 | |||
39 | PACKAGECONFIG ??= "" | ||
40 | PACKAGECONFIG[hugetlbfs] = "--enable-hugetlbfs, --disable-hugetlbfs, libhugetlbfs" | ||
41 | |||
42 | inherit update-rc.d | ||
43 | |||
44 | INITSCRIPT_NAME = "memcached" | ||
45 | INITSCRIPT_PARAMS = "defaults" | ||
46 | |||
47 | do_install_append() { | ||
48 | install -D -m 755 ${S}/scripts/memcached-init ${D}${sysconfdir}/init.d/memcached | ||
49 | mkdir -p ${D}/usr/share/memcached/scripts | ||
50 | install -m 755 ${S}/scripts/memcached-tool ${D}/usr/share/memcached/scripts | ||
51 | install -m 755 ${S}/scripts/start-memcached ${D}/usr/share/memcached/scripts | ||
52 | } | ||