diff options
Diffstat (limited to 'meta-oe/recipes-extended/sanlock/sanlock_3.9.5.bb')
| -rw-r--r-- | meta-oe/recipes-extended/sanlock/sanlock_3.9.5.bb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/sanlock/sanlock_3.9.5.bb b/meta-oe/recipes-extended/sanlock/sanlock_3.9.5.bb new file mode 100644 index 0000000000..10a4db4d57 --- /dev/null +++ b/meta-oe/recipes-extended/sanlock/sanlock_3.9.5.bb | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | SUMMARY = "A shared storage lock manager" | ||
| 2 | DESCRIPTION = "sanlock is a lock manager built on shared storage. Hosts with access \ | ||
| 3 | to the storage can perform locking. An application running on the \ | ||
| 4 | hosts is given a small amount of space on the shared block device or \ | ||
| 5 | file, and uses sanlock for its own application-specific synchronization. \ | ||
| 6 | Internally, the sanlock daemon manages locks using two disk-based \ | ||
| 7 | lease algorithms: delta leases and paxos leases." | ||
| 8 | HOMEPAGE = "https://pagure.io/sanlock" | ||
| 9 | SECTION = "utils" | ||
| 10 | |||
| 11 | LICENSE = "LGPL-2.0-or-later & GPL-2.0-only & GPL-2.0-or-later" | ||
| 12 | LIC_FILES_CHKSUM = "file://README.license;md5=60487bf0bf429d6b5aa72b6d37a0eb22" | ||
| 13 | |||
| 14 | PV .= "+git" | ||
| 15 | |||
| 16 | SRC_URI = "git://pagure.io/sanlock.git;protocol=http;branch=master \ | ||
| 17 | file://0001-sanlock-Replace-cp-a-with-cp-R-no-dereference-preser.patch \ | ||
| 18 | file://0001-add-missing-system-header-string.h.patch \ | ||
| 19 | " | ||
| 20 | SRCREV = "651d101aab40bb75cf348ab667eba04d6d771c21" | ||
| 21 | |||
| 22 | S = "${WORKDIR}/git" | ||
| 23 | |||
| 24 | CVE_STATUS[CVE-2012-5638] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." | ||
| 25 | |||
| 26 | DEPENDS = "libaio util-linux" | ||
| 27 | |||
| 28 | inherit setuptools3 useradd | ||
| 29 | |||
| 30 | SETUPTOOLS_SETUP_PATH = "${S}/python" | ||
| 31 | |||
| 32 | do_compile:prepend () { | ||
| 33 | oe_runmake -C ${S}/wdmd CMD_LDFLAGS="${LDFLAGS}" LIB_LDFLAGS="${LDFLAGS}" | ||
| 34 | oe_runmake -C ${S}/src CMD_LDFLAGS="${LDFLAGS}" LIB_ENTIRE_LDFLAGS="${LDFLAGS}" LIB_CLIENT_LDFLAGS="${LDFLAGS}" | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install:prepend () { | ||
| 38 | oe_runmake -C ${S}/wdmd DESTDIR=${D} LIBDIR=${libdir} install | ||
| 39 | oe_runmake -C ${S}/src DESTDIR=${D} LIBDIR=${libdir} install | ||
| 40 | } | ||
| 41 | |||
| 42 | SANLOCKGROUP ?= "sanlock" | ||
| 43 | SANLOCKUSER ?= "sanlock" | ||
| 44 | USERADD_PACKAGES = "${PN}" | ||
| 45 | GROUPADD_PARAM:${PN} = "--system ${SANLOCKGROUP}" | ||
| 46 | USERADD_PARAM:${PN} = "--system -g ${SANLOCKGROUP} -G disk \ | ||
| 47 | --home-dir /run/${SANLOCKUSER} --no-create-home \ | ||
| 48 | --shell /sbin/nologin ${SANLOCKUSER}" | ||
