summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/recipes-connectivity/jsnbd/jsnbd_git.bb
blob: 3c202cc3548e03a70ebe0765f309d8a21c92f431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
SUMMARY = "Network Block Device Proxy"
HOMEPAGE = "https://github.com/openbmc/jsnbd"
PR = "r1"
PV = "1.0+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENCE;md5=3b83ef96387f14655fc854ddc3c6bd57"

inherit autotools pkgconfig

DEPENDS += "json-c"
DEPENDS += "udev"

RDEPENDS_${PN} += "nbd-client"

S = "${WORKDIR}/git"

SRC_URI = "git://scm.raptorcs.com/scm/git/jsnbd;protocol=https"
SRCREV = "d5b9857609401e3cf9c53b111134a6aab8e4573c"

NBD_PROXY_CONFIG_JSON ??= "${S}/config.sample.json"

do_install_append() {
    install -d ${D}${sysconfdir}/nbd-proxy/
    install -m 0644 ${NBD_PROXY_CONFIG_JSON} ${D}${sysconfdir}/nbd-proxy/config.json
}
OpenPOWER on IntegriCloud