Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 15 | inherit autotools pkgconfig |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 16 | |
| 17 | DEPENDS += "libevent" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 18 | RDEPENDS:${PN} += "perl perl-module-posix perl-module-autoloader \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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 \ |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 24 | file://0001-Fix-function-protypes.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 25 | " |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 26 | SRC_URI[sha256sum] = "2055e373613d8fc21529aff9f0adce3e23b9ce01ba0478d30e7941d9f2bd1224" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 27 | |
| 28 | # set the same COMPATIBLE_HOST as libhugetlbfs |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 29 | COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64|aarch64|arm).*-linux*" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 30 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 31 | # assoc.c:83:9: error: variable 'depth' set but not used [-Werror,-Wunused-but-set-variable] |
| 32 | CFLAGS:append:toolchain-clang = " -Wno-error=unused-but-set-variable" |
| 33 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 34 | python __anonymous () { |
| 35 | endianness = d.getVar('SITEINFO_ENDIANNESS') |
| 36 | if endianness == 'le': |
| 37 | d.appendVar('EXTRA_OECONF', " ac_cv_c_endian=little") |
| 38 | else: |
| 39 | d.appendVar('EXTRA_OECONF', " ac_cv_c_endian=big") |
| 40 | } |
| 41 | |
| 42 | PACKAGECONFIG ??= "" |
| 43 | PACKAGECONFIG[hugetlbfs] = "--enable-hugetlbfs, --disable-hugetlbfs, libhugetlbfs" |
| 44 | |
| 45 | inherit update-rc.d |
| 46 | |
| 47 | INITSCRIPT_NAME = "memcached" |
| 48 | INITSCRIPT_PARAMS = "defaults" |
| 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | do_install:append() { |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 51 | install -D -m 755 ${S}/scripts/memcached-init ${D}${sysconfdir}/init.d/memcached |
| 52 | mkdir -p ${D}/usr/share/memcached/scripts |
| 53 | install -m 755 ${S}/scripts/memcached-tool ${D}/usr/share/memcached/scripts |
| 54 | install -m 755 ${S}/scripts/start-memcached ${D}/usr/share/memcached/scripts |
| 55 | } |