opam-version: "2.0"
maintainer: "jonathan.ludlam@eu.citrix.com"
authors: [ "Jonathan Ludlam" "David Scott" ]
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception"
homepage: "https://github.com/xapi-project/nbd"
dev-repo: "git+https://github.com/xapi-project/nbd.git"
bug-reports: "https://github.com/xapi-project/nbd/issues"

build: [
  ["./configure" "--prefix" prefix]
  [make]
]
remove: [
  [make "uninstall" "BINDIR=%{bin}%"]
  ["ocamlfind" "remove" "nbd"]
]
depends: [
  "ocaml"
  "ocamlfind"
  "obuild"
  "lwt" {>= "2.4.5" & < "2.6.0"}
  "cstruct" {>= "1.0.1" & < "2.0.0"}
  "cmdliner"
  "type_conv" {build}
  "ocamlbuild" {build}
]
tags: [ "org:mirage" "org:xapi-project" ]
install: [make "install" "BINDIR=%{bin}%"]
synopsis: "Network Block Device (NBD) protocol implementation"
description: """
This library allows applications to export and consume block
devices using the NBD protocol (as used by Linux, qemu etc)"""
url {
  src: "https://github.com/xapi-project/nbd/archive/v1.0.2/nbd-1.0.2.tar.gz"
  checksum: "md5=68c68b823d453968e46ff3276324caee"
}
