Adriana Kobylak | 2fae8ec | 2018-09-24 14:27:15 -0500 | [diff] [blame] | 1 | SUMMARY = "Network Block Device Proxy" |
| 2 | HOMEPAGE = "https://github.com/openbmc/jsnbd" |
Adriana Kobylak | 2fae8ec | 2018-09-24 14:27:15 -0500 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENCE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
Adriana Kobylak | 2fae8ec | 2018-09-24 14:27:15 -0500 | [diff] [blame] | 5 | DEPENDS += "json-c" |
| 6 | DEPENDS += "udev" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 7 | SRCREV = "3ebe3dadd3f550d20080c8bb14dee113e322eb61" |
| 8 | PV = "1.0+git${SRCPV}" |
| 9 | PR = "r1" |
Adriana Kobylak | 2fae8ec | 2018-09-24 14:27:15 -0500 | [diff] [blame] | 10 | |
Patrick Williams | 4c4a78d | 2022-10-13 10:25:55 -0500 | [diff] [blame^] | 11 | SRC_URI = "\ |
| 12 | git://github.com/openbmc/jsnbd;branch=master;protocol=https \ |
| 13 | file://state_hook \ |
| 14 | " |
Adriana Kobylak | 723136d | 2018-10-03 15:16:29 -0500 | [diff] [blame] | 15 | |
Adriana Kobylak | 2fae8ec | 2018-09-24 14:27:15 -0500 | [diff] [blame] | 16 | S = "${WORKDIR}/git" |
| 17 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 18 | inherit autotools pkgconfig |
Adriana Kobylak | 329a805 | 2018-10-24 13:31:40 -0500 | [diff] [blame] | 19 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 20 | do_install:append() { |
Adriana Kobylak | 329a805 | 2018-10-24 13:31:40 -0500 | [diff] [blame] | 21 | install -d ${D}${sysconfdir}/nbd-proxy/ |
| 22 | install -m 0644 ${NBD_PROXY_CONFIG_JSON} ${D}${sysconfdir}/nbd-proxy/config.json |
Patrick Williams | 4c4a78d | 2022-10-13 10:25:55 -0500 | [diff] [blame^] | 23 | install -m 0755 ${WORKDIR}/state_hook ${D}${sysconfdir}/nbd-proxy/state |
Adriana Kobylak | 329a805 | 2018-10-24 13:31:40 -0500 | [diff] [blame] | 24 | } |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 25 | |
Patrick Williams | 4c4a78d | 2022-10-13 10:25:55 -0500 | [diff] [blame^] | 26 | FILES:${PN} += "${sysconfdir}/nbd-proxy/state" |
| 27 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 28 | RDEPENDS:${PN} += "nbd-client" |
| 29 | |
| 30 | NBD_PROXY_CONFIG_JSON ??= "${S}/config.sample.json" |