summaryrefslogtreecommitdiffstats
path: root/recipes-support/memcached/memcached_1.6.41.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/memcached/memcached_1.6.41.bb')
-rw-r--r--recipes-support/memcached/memcached_1.6.41.bb70
1 files changed, 70 insertions, 0 deletions
diff --git a/recipes-support/memcached/memcached_1.6.41.bb b/recipes-support/memcached/memcached_1.6.41.bb
new file mode 100644
index 0000000..b030ef1
--- /dev/null
+++ b/recipes-support/memcached/memcached_1.6.41.bb
@@ -0,0 +1,70 @@
1SUMMARY = "A high-performance memory object caching system"
2DESCRIPTION = "\
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."
9SECTION = "web"
10HOMEPAGE = "http://memcached.org/"
11LICENSE = "BSD-3-Clause"
12
13LIC_FILES_CHKSUM = "file://COPYING;md5=7e5ded7363d335e1bb18013ca08046ff"
14
15inherit autotools pkgconfig systemd
16
17DEPENDS += "libevent"
18RDEPENDS:${PN} += "\
19 bash \
20 perl \
21 perl-module-posix \
22 perl-module-autoloader \
23 perl-module-tie-hash \
24 "
25
26SRC_URI = "http://www.memcached.org/files/${BP}.tar.gz \
27 file://memcached-add-hugetlbfs-check.patch \
28 file://memcached-config.txt \
29 "
30
31SRC_URI[md5sum] = "a9eb0848f052a5c0d18b4a314807dd5c"
32SRC_URI[sha256sum] = "e097073c156eeff9e12655b054f446d57374cfba5c132dcdbe7fac64e728286a"
33
34# set the same COMPATIBLE_HOST as libhugetlbfs
35COMPATIBLE_HOST = '(i.86|x86_64|powerpc|powerpc64|arm).*-linux'
36
37python __anonymous () {
38 endianness = d.getVar('SITEINFO_ENDIANNESS', True)
39 if endianness == 'le':
40 d.setVar('EXTRA_OECONF', "ac_cv_c_endian=little")
41 else:
42 d.setVar('EXTRA_OECONF', "ac_cv_c_endian=big")
43}
44
45PACKAGECONFIG ??= ""
46PACKAGECONFIG[hugetlbfs] = "--enable-hugetlbfs, --disable-hugetlbfs, libhugetlbfs"
47
48inherit update-rc.d
49
50INITSCRIPT_NAME = "memcached"
51INITSCRIPT_PARAMS = "defaults"
52
53SYSTEMD_PACKAGES = "memcached"
54SYSTEMD_SERVICE:${PN} = "memcached.service"
55
56do_install:append() {
57 install -D -m 755 ${S}/scripts/memcached-init ${D}${sysconfdir}/init.d/memcached
58
59 mkdir -p ${D}/usr/share/memcached/scripts
60 install -m 755 ${S}/scripts/memcached-tool ${D}/usr/share/memcached/scripts
61 install -m 755 ${S}/scripts/start-memcached ${D}/usr/share/memcached/scripts
62
63 install -d ${D}/${sysconfdir}/default
64 install -m 600 ${UNPACKDIR}/memcached-config.txt ${D}/${sysconfdir}/default/memcached
65
66 install -d ${D}/${systemd_system_unitdir}
67 install -m 644 ${S}/scripts/memcached.service ${D}/${systemd_system_unitdir}/.
68 sed -e "s@^EnvironmentFile=.*@EnvironmentFile=${sysconfdir}/default/memcached@" \
69 -i ${D}/${systemd_system_unitdir}/memcached.service
70}