summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/memcached/memcached_1.6.38.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/memcached/memcached_1.6.38.bb')
-rw-r--r--meta-networking/recipes-support/memcached/memcached_1.6.38.bb58
1 files changed, 58 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/memcached/memcached_1.6.38.bb b/meta-networking/recipes-support/memcached/memcached_1.6.38.bb
new file mode 100644
index 0000000000..9799b55a09
--- /dev/null
+++ b/meta-networking/recipes-support/memcached/memcached_1.6.38.bb
@@ -0,0 +1,58 @@
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
16
17DEPENDS += "libevent"
18RDEPENDS:${PN} += "perl perl-module-posix perl-module-autoloader \
19 perl-module-tie-hash bash \
20 "
21
22SRC_URI = "http://www.memcached.org/files/${BP}.tar.gz \
23 file://memcached-add-hugetlbfs-check.patch \
24 "
25SRC_URI[sha256sum] = "334d792294e37738796b5b03375c47bb6db283b1152e2ea4ccb720152dd17c66"
26
27CVE_STATUS[CVE-2022-26635] = "disputed: this is a problem of applications using php-memcached inproperly"
28
29UPSTREAM_CHECK_URI = "${HOMEPAGE}"
30
31# set the same COMPATIBLE_HOST as libhugetlbfs
32COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64|aarch64|arm).*-linux*"
33
34# assoc.c:83:9: error: variable 'depth' set but not used [-Werror,-Wunused-but-set-variable]
35CFLAGS:append:toolchain-clang = " -Wno-error=unused-but-set-variable"
36
37python __anonymous () {
38 endianness = d.getVar('SITEINFO_ENDIANNESS')
39 if endianness == 'le':
40 d.appendVar('EXTRA_OECONF', " ac_cv_c_endian=little")
41 else:
42 d.appendVar('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
53do_install:append() {
54 install -D -m 755 ${S}/scripts/memcached-init ${D}${sysconfdir}/init.d/memcached
55 mkdir -p ${D}/usr/share/memcached/scripts
56 install -m 755 ${S}/scripts/memcached-tool ${D}/usr/share/memcached/scripts
57 install -m 755 ${S}/scripts/start-memcached ${D}/usr/share/memcached/scripts
58}