diff options
Diffstat (limited to 'meta-networking/recipes-support/memcached/memcached_1.6.34.bb')
| -rw-r--r-- | meta-networking/recipes-support/memcached/memcached_1.6.34.bb | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/memcached/memcached_1.6.34.bb b/meta-networking/recipes-support/memcached/memcached_1.6.34.bb new file mode 100644 index 0000000000..e4966857bd --- /dev/null +++ b/meta-networking/recipes-support/memcached/memcached_1.6.34.bb | |||
| @@ -0,0 +1,58 @@ | |||
| 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 pkgconfig | ||
| 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[sha256sum] = "0d5380e2e0a5b4fcef1d89a368a11c4f06686c6017c1fff778b3b4578f0674ec" | ||
| 26 | |||
| 27 | CVE_STATUS[CVE-2022-26635] = "disputed: this is a problem of applications using php-memcached inproperly" | ||
| 28 | |||
| 29 | UPSTREAM_CHECK_URI = "${HOMEPAGE}" | ||
| 30 | |||
| 31 | # set the same COMPATIBLE_HOST as libhugetlbfs | ||
| 32 | COMPATIBLE_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] | ||
| 35 | CFLAGS:append:toolchain-clang = " -Wno-error=unused-but-set-variable" | ||
| 36 | |||
| 37 | python __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 | |||
| 45 | PACKAGECONFIG ??= "" | ||
| 46 | PACKAGECONFIG[hugetlbfs] = "--enable-hugetlbfs, --disable-hugetlbfs, libhugetlbfs" | ||
| 47 | |||
| 48 | inherit update-rc.d | ||
| 49 | |||
| 50 | INITSCRIPT_NAME = "memcached" | ||
| 51 | INITSCRIPT_PARAMS = "defaults" | ||
| 52 | |||
| 53 | do_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 | } | ||
