this repo has no description
1opam-version: "2.0"
2synopsis: "Libbpf bindings"
3description: "Wrapped libbpf api's for writing BPF user programs in OCaml"
4maintainer: ["Lee Koon Wen"]
5authors: ["Lee Koon Wen"]
6license: ["ISC" "BSD-3-Clause"]
7tags: ["bindings" "bpf" "libbpf"]
8homepage: "https://github.com/koonwen/ocaml-libbpf"
9doc: "https://koonwen.github.io/ocaml-libbpf"
10bug-reports: "https://github.com/koonwen/ocaml-libbpf/issues"
11depends: [
12 "ocaml" {>= "4.08"}
13 "dune" {>= "3.13"}
14 "ctypes" {>= "0.22.0"}
15 "ppx_deriving"
16 "ppx_expect"
17 "conf-libbpf"
18 "conf-clang"
19 "conf-bpftool"
20 "odoc" {with-doc}
21]
22build: [
23 ["dune" "subst"] {dev}
24 [
25 "dune"
26 "build"
27 "-p"
28 name
29 "-j"
30 jobs
31 "@install"
32 "@runtest" {with-test}
33 "@doc" {with-doc}
34 ]
35]
36dev-repo: "git+https://github.com/koonwen/ocaml-libbpf.git"
37# eBPF features by kernel version https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md
38# Fix to kernel >= 6.1 to provide bound BPF map types
39available: [ os = "linux" &
40 (( os-distribution = "debian" & os-version >= "12" ) # Linux 6.1 & Libbpf 1.1.0
41 |( os-distribution = "ubuntu" & os-version >= "23.04" ) # Linux 6.2 & Libbpf 1.1.0
42 |( os-distribution = "fedora" & os-version >= "38" )) # Linux 6.2 & Libbpf 1.1.0
43 ]
44url {
45 src:
46 "https://github.com/koonwen/ocaml-libbpf/releases/download/v0.1.0/libbpf-0.1.0.tbz"
47 checksum: [
48 "sha256=c0b543a2628f4c27d2eaaefb1b8c0cc81ef56a2437de44e540770a9a689ab1fe"
49 "sha512=1ff0b508123c131df16cf53ca43681a9d5b2120ffbb7409e264be11ca37ae74057acc7121d9811fb8eeb5ab224a71d11af50498e28fe367d6a21d29011a937e5"
50 ]
51}
52x-commit-hash: "c7ac4c7ff9f2aa23c374a619990c0bdd78976102"