opam-version: "2.0"
synopsis: "QubesOS firewall ruleset handling library"
maintainer:   "team@robur.io"
authors:      ["Robur.coop"]
homepage:     "https://github.com/roburio/ocaml-pf"
bug-reports:  "https://github.com/roburio/ocaml-pf/issues"
dev-repo:     "git+https://github.com/roburio/ocaml-pf.git#just-qubes"
doc:          "https://roburio.github.io/ocaml-pf/just-qubes/"
license:      "AGPL-3"
tags: "org:mirage"

build: [
  [ "dune" "subst"] {pinned}
  [ "dune" "build" "-p" name "-j" jobs ]
  [ "dune" "runtest" "-p" name "-j" jobs ] {with-test}
]

depends: [
  "dune"
  "ocaml" { >= "4.07.0" }
  "cstruct"   { >= "3.3.0" }
  "angstrom"  { >= "0.12.1" & < "0.14.0"}
  "fmt"       { >= "0.8.4" }
  "logs"      { >= "0.6.2" }
  "rresult"   { >= "0.5.0" }
  "uri"       { >= "1.9.5" }
  "ipaddr"    { >= "2.8.0" }
  "bisect_ppx" { >= "1.4.1" }
  "alcotest" { with-test }
  "afl-persistent" { with-test }
]
description: """
pf-qubes provides a parser for the QubesOS (>=4.0) firewall ruleset syntax.
"""
url {
  src:
    "https://github.com/roburio/ocaml-pf/releases/download/v0.1.0/pf-qubes-v0.1.0.tbz"
  checksum: [
    "sha256=30064f5dc4bd5f53df0e30085c48ab1ac8a5987c760effd68ef432de1afb0b06"
    "sha512=59c4bd27a54fad2ba45d0aacb2217fd358011e4cec302b951ece1a8f150d57ef4571d6f7c8fbaed4e3ad05a41bd5b17dd2f21dbbf6bb1bdd14ddb4f2c4795e6e"
  ]
}
