blob: 792d223633e75494f6844e98f724cbf784882a0a [file] [log] [blame]
Adriana Kobylak2fae8ec2018-09-24 14:27:15 -05001SUMMARY = "Network Block Device Proxy"
2HOMEPAGE = "https://github.com/openbmc/jsnbd"
Adriana Kobylak2fae8ec2018-09-24 14:27:15 -05003LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENCE;md5=3b83ef96387f14655fc854ddc3c6bd57"
Adriana Kobylak2fae8ec2018-09-24 14:27:15 -05005DEPENDS += "json-c"
6DEPENDS += "udev"
Ed Tanous398aa8a2023-07-27 08:59:25 -07007SRCREV = "9b322cb38172985e67d755660167befe8b650ba6"
Ed Tanous9936f862022-09-19 09:13:20 -07008PV = "1.0+git${SRCPV}"
9PR = "r1"
Adriana Kobylak2fae8ec2018-09-24 14:27:15 -050010
Ed Tanous398aa8a2023-07-27 08:59:25 -070011SRC_URI = " \
Patrick Williams4c4a78d2022-10-13 10:25:55 -050012 git://github.com/openbmc/jsnbd;branch=master;protocol=https \
13 file://state_hook \
14 "
Adriana Kobylak723136d2018-10-03 15:16:29 -050015
Adriana Kobylak2fae8ec2018-09-24 14:27:15 -050016S = "${WORKDIR}/git"
17
Ed Tanous398aa8a2023-07-27 08:59:25 -070018inherit meson pkgconfig
Adriana Kobylak329a8052018-10-24 13:31:40 -050019
Patrick Williams12fc9392021-08-06 09:16:53 -050020do_install:append() {
Adriana Kobylak329a8052018-10-24 13:31:40 -050021 install -d ${D}${sysconfdir}/nbd-proxy/
22 install -m 0644 ${NBD_PROXY_CONFIG_JSON} ${D}${sysconfdir}/nbd-proxy/config.json
Patrick Williams4c4a78d2022-10-13 10:25:55 -050023 install -m 0755 ${WORKDIR}/state_hook ${D}${sysconfdir}/nbd-proxy/state
Adriana Kobylak329a8052018-10-24 13:31:40 -050024}
Ed Tanous9936f862022-09-19 09:13:20 -070025
Patrick Williams4c4a78d2022-10-13 10:25:55 -050026FILES:${PN} += "${sysconfdir}/nbd-proxy/state"
27
Ed Tanous9936f862022-09-19 09:13:20 -070028RDEPENDS:${PN} += "nbd-client"
29
30NBD_PROXY_CONFIG_JSON ??= "${S}/config.sample.json"