summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-support/memcached/memcached_1.5.3.bb
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2017-12-01 15:13:09 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-12-01 21:46:35 -0500
commitee1c631b92752742d89b311f4774d7017a946d54 (patch)
tree2aa15fc54ae82e1e842418ea7d687d953bee600e /meta-openstack/recipes-support/memcached/memcached_1.5.3.bb
parent1d73ebe570177695a8aa0a846e63747a26068aea (diff)
downloadmeta-cloud-services-ee1c631b92752742d89b311f4774d7017a946d54.tar.gz
memcached: uprev to v1.5.3
Incorporate updates in the recipe found in meta-networking and add support for systemd. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-support/memcached/memcached_1.5.3.bb')
-rw-r--r--meta-openstack/recipes-support/memcached/memcached_1.5.3.bb70
1 files changed, 70 insertions, 0 deletions
diff --git a/meta-openstack/recipes-support/memcached/memcached_1.5.3.bb b/meta-openstack/recipes-support/memcached/memcached_1.5.3.bb
new file mode 100644
index 0000000..b2d776b
--- /dev/null
+++ b/meta-openstack/recipes-support/memcached/memcached_1.5.3.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 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] = "263819baf411388b3f72700a3212d4e2"
32SRC_URI[sha256sum] = "258cc3ddb7613685465acfd0215f827220a3bbdd167fd2c080632105b2d2f3ce"
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 ${WORKDIR}/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}