summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/sanlock/sanlock_3.8.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/sanlock/sanlock_3.8.3.bb')
-rw-r--r--meta-oe/recipes-extended/sanlock/sanlock_3.8.3.bb45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/sanlock/sanlock_3.8.3.bb b/meta-oe/recipes-extended/sanlock/sanlock_3.8.3.bb
new file mode 100644
index 0000000000..e8b2e37212
--- /dev/null
+++ b/meta-oe/recipes-extended/sanlock/sanlock_3.8.3.bb
@@ -0,0 +1,45 @@
1SUMMARY = "A shared storage lock manager"
2DESCRIPTION = "sanlock is a lock manager built on shared storage. Hosts with access \
3to the storage can perform locking. An application running on the \
4hosts is given a small amount of space on the shared block device or \
5file, and uses sanlock for its own application-specific synchronization. \
6Internally, the sanlock daemon manages locks using two disk-based \
7lease algorithms: delta leases and paxos leases."
8HOMEPAGE = "https://pagure.io/sanlock"
9SECTION = "utils"
10
11LICENSE = "LGPLv2+ & GPLv2 & GPLv2+"
12LIC_FILES_CHKSUM = "file://../README.license;md5=60487bf0bf429d6b5aa72b6d37a0eb22"
13
14PV .= "+git${SRCPV}"
15
16SRC_URI = "git://pagure.io/sanlock.git;protocol=http \
17 file://0001-sanlock-Replace-cp-a-with-cp-R-no-dereference-preser.patch;patchdir=../ \
18 "
19SRCREV = "3a750fed849405c745dcb7b4ceb85f662c53d8d0"
20
21S = "${WORKDIR}/git/python"
22
23DEPENDS = "libaio util-linux"
24
25inherit distutils3 useradd
26
27do_configure[noexec] = "1"
28
29do_compile_prepend () {
30 oe_runmake -C ${S}/../wdmd CMD_LDFLAGS="${LDFLAGS}" LIB_LDFLAGS="${LDFLAGS}"
31 oe_runmake -C ${S}/../src CMD_LDFLAGS="${LDFLAGS}" LIB_ENTIRE_LDFLAGS="${LDFLAGS}" LIB_CLIENT_LDFLAGS="${LDFLAGS}"
32}
33
34do_install_prepend () {
35 oe_runmake -C ${S}/../wdmd DESTDIR=${D} LIBDIR=${libdir} install
36 oe_runmake -C ${S}/../src DESTDIR=${D} LIBDIR=${libdir} install
37}
38
39SANLOCKGROUP ?= "sanlock"
40SANLOCKUSER ?= "sanlock"
41USERADD_PACKAGES = "${PN}"
42GROUPADD_PARAM_${PN} = "--system ${SANLOCKGROUP}"
43USERADD_PARAM_${PN} = "--system -g ${SANLOCKGROUP} -G disk \
44 --home-dir /run/${SANLOCKUSER} --no-create-home \
45 --shell /sbin/nologin ${SANLOCKUSER}"