opam-version: "2.0"
maintainer:   "anil@recoil.org"
homepage:     "https://github.com/mirage/mirage-tcpip"
dev-repo: "git+https://github.com/mirage/mirage-tcpip.git"
bug-reports:  "https://github.com/mirage/mirage-tcpip/issues"
authors: [
  "Anil Madhavapeddy"
  "Balraj Singh"
  "Richard Mortier"
  "Nicolas Ojeda Bar"
  "Thomas Gazagnaire"
]
tags: ["org:mirage"]

build: [
  [
    "./configure"
    "--prefix"
    prefix
    "--%{mirage-flow+alcotest:enable}%-tests"
    "--%{mirage-xen:enable}%-xen"
  ]
  [make]
  [make "test"] {with-test}
]
install: [make "install"]
remove: ["ocamlfind" "remove" "tcpip"]
depends: [
  "ocaml" {>= "4.01.0"}
  "ocamlfind" {build}
  "cstruct" {>= "1.0.1" & <= "1.9.0"}
  "type_conv"
  "mirage-types-lwt" {>= "2.2.0" & < "2.6.0"}
  "mirage-unix" {>= "1.1.0" & <= "2.6.0"}
  "mirage-console" {< "2.2.0"}
  "mirage-clock-unix" {>= "1.0.0" & < "1.2.0"}
  "mirage-net-unix" {>= "1.1.0" & < "2.3.0"}
  "ipaddr" {>= "2.2.0" & < "3.0.0"}
  "mirage-profile" {< "0.8.0"}
  "mirage-flow" {with-test & < "2.0.0"}
  "alcotest" {with-test}
  "ocamlbuild" {build}
]
depopts: [
  "mirage-xen"
]
conflicts: [
  "lwt" {>= "3.0.0"}
  "mirage-xen" {>= "6.0.0"}
]
synopsis: "Userlevel TCP/IP stack"
description: """
The library provides a networking stack for the MirageOS
library operating system that supports IPv4, IPv6, ARPv4,
DHCPv4 and TCP/IP."""
flags: light-uninstall
url {
  src: "https://github.com/mirage/mirage-tcpip/archive/v2.4.2.tar.gz"
  checksum: "md5=a0806a884441de94a5c2cb904ecae229"
}
