All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] Add nbdkit to extend backend possibilities of nbd.
@ 2020-04-08 23:39 Przemyslaw Czarnowski
  2020-04-09  6:53 ` [oe] " Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Przemyslaw Czarnowski @ 2020-04-08 23:39 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Przemyslaw Czarnowski

Nbdkit uses plugins to add more sources of data for nbd client.
Nbdkit can also spawn nbd-client, uses unix or network socket to
communicate with client, uses different plugins to serve data for nbd
device eg. curl, file, custom plugins in many languages (perl, python)
and some others.

Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
---
 .../recipes-support/nbdkit/nbdkit_git.bb      | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 meta-networking/recipes-support/nbdkit/nbdkit_git.bb

diff --git a/meta-networking/recipes-support/nbdkit/nbdkit_git.bb b/meta-networking/recipes-support/nbdkit/nbdkit_git.bb
new file mode 100644
index 000000000..5f03bf823
--- /dev/null
+++ b/meta-networking/recipes-support/nbdkit/nbdkit_git.bb
@@ -0,0 +1,41 @@
+SUMMARY = "nbdkit is a toolkit for creating NBD servers."
+DESCRIPTION = "NBD — Network Block Device — is a protocol \
+for accessing Block Devices (hard disks and disk-like things) \
+over a Network. \
+\
+nbdkit is a toolkit for creating NBD servers."
+
+HOMEPAGE = "https://github.com/libguestfs/nbdkit"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4332a97808994cf2133a65b6c6f33eaf"
+
+SRC_URI = "git://github.com/libguestfs/nbdkit.git;protocol=https"
+
+PV = "1.19.6+git${SRCPV}"
+SRCREV = "257561bc9f2f01eb9f21686bcec4b863d17a26c4"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "curl xz e2fsprogs zlib"
+
+inherit pkgconfig python3native perlnative autotools
+# needed as nbdkit does not support build in external directory
+inherit autotools-brokensep
+
+# Those are required to build standalone
+EXTRA_OECONF = " --without-libvirt --without-libguestfs --disable-perl"
+
+# Disable some extended support (not desired for small embedded systems)
+#EXTRA_OECONF += " --disable-python"
+#EXTRA_OECONF += " --disable-ocaml"
+#EXTRA_OECONF += " --disable-rust"
+#EXTRA_OECONF += " --disable-ruby"
+#EXTRA_OECONF += " --disable-tcl"
+#EXTRA_OECONF += " --disable-lua"
+#EXTRA_OECONF += " --disable-vddk"
+
+do_install_append() {
+    rm -f ${D}/usr/share/bash-completion/completions/nbdkit
+    rmdir ${D}/usr/share/bash-completion/completions
+    rmdir ${D}/usr/share/bash-completion
+}
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-04-11 22:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-08 23:39 [PATCH v2] Add nbdkit to extend backend possibilities of nbd Przemyslaw Czarnowski
2020-04-09  6:53 ` [oe] " Khem Raj
2020-04-10 10:17   ` przemyslaw.hawrylewicz.czarnowski
2020-04-11 22:26     ` [oe] " Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.