ovpn router goes mirage4

This commit is contained in:
Hannes Mehnert 2022-08-29 20:07:22 +02:00
parent 4831384b5f
commit 18bae7ab32
3 changed files with 63 additions and 45 deletions

View file

@ -1,43 +0,0 @@
# Generated by ./config.exe configure -t hvt --allocation-policy=best-fit (2022-01-09 14:17:00-00:00).
opam-version: "2.0"
name: "mirage-unikernel-ovpn_router-hvt"
depends: [ "arp" { >= "3.0.0" & < "4.0.0"}
"ethernet" { >= "3.0.0" & < "4.0.0"}
"functoria-runtime"
"logs"
"logs-syslog" { >= "0.3.0"}
"lwt"
"mirage" {build & >= "3.10.0" & < "3.11.0"}
"mirage-block-solo5" { >= "0.6.1" & < "0.7.0"}
"mirage-bootvar-solo5" { >= "0.6.0" & < "0.7.0"}
"mirage-clock-freestanding" { >= "3.0.0" & < "5.0.0"}
"mirage-console-solo5" { >= "0.6.1" & < "0.7.0"}
"mirage-crypto-rng-mirage" { >= "0.8.0" & < "0.11.0"}
"mirage-kv"
"mirage-logs" { >= "1.2.0" & < "2.0.0"}
"mirage-monitoring"
"mirage-net-solo5" { >= "0.6.1" & < "0.7.0"}
"mirage-runtime" { >= "3.10.0" & >= "3.8.0" & < "3.11.0"}
"mirage-solo5" { >= "0.6.1" & < "0.7.0"}
"mirage-types" { >= "3.10.0" & < "3.11.0"}
"mirage-types-lwt" { >= "3.10.0" & < "3.11.0"}
"ocaml" {build & >= "4.08.0"}
"ocamlbuild" {build}
"ocamlfind" {build}
"openvpn"
"solo5-bindings-hvt" { >= "0.6.0" & < "0.7.0"}
"tcpip" { >= "7.0.0" & < "8.0.0"}
]
maintainer: "dummy"
authors: "dummy"
homepage: "dummy"
bug-reports: "dummy"
dev-repo: "git+https://example.com/nonexistent"
build: [ "sh" "-exc" "cd mirage-router && mirage configure -t hvt --allocation-policy=best-fit && mirage build" ]
synopsis: "An OpenVPN router unikernel, the configuration is stored on a block device, reports metrics to influx"
install: [
[ "cp" "mirage-router/ovpn_router.hvt" "%{bin}%/ovpn_router.hvt" ]
[ "strip" "%{bin}%/ovpn_router.hvt" ]
[ "cp" "mirage-router/ovpn_router.hvt" "%{prefix}%/ovpn_router.hvt.debug" ]
]
url { src: "git+https://github.com/roburio/openvpn.git#robur" }

View file

@ -0,0 +1,61 @@
# Generated by mirage.v4.2.1
opam-version: "2.0"
maintainer: "dummy"
authors: "dummy"
homepage: "dummy"
bug-reports: "dummy"
dev-repo: "git://dummy"
synopsis: "An OpenVPN router unikernel, the configuration is stored on a block device, reports metrics to influx"
build: ["sh" "-exc" "cd mirage-router/ && mirage build"]
install: [
[ "cp" "mirage-router/dist/ovpn-router.hvt" "%{bin}%/ovpn-router.hvt" ]
[ "strip" "%{bin}%/ovpn_router.hvt" ]
[ "cp" "mirage-router/dist/ovpn_router.hvt" "%{prefix}%/ovpn_router.hvt.debug" ]
]
depends: [
"arp" { ?monorepo & >= "3.0.0" & < "4.0.0" }
"ethernet" { ?monorepo & >= "3.0.0" & < "4.0.0" }
"logs" { ?monorepo }
"logs-syslog" { ?monorepo & >= "0.3.0" }
"lwt" { ?monorepo }
"mirage" { build & >= "4.2.0" & < "4.3.0" }
"mirage-block-solo5" { ?monorepo & >= "0.8.0" & < "0.9.0" }
"mirage-bootvar-solo5" { ?monorepo & >= "0.6.0" & < "0.7.0" }
"mirage-clock-solo5" { ?monorepo & >= "4.2.0" & < "5.0.0" }
"mirage-console-solo5" { ?monorepo & >= "0.8.0" & < "0.9.0" }
"mirage-crypto-rng-mirage" { ?monorepo & >= "0.8.0" & < "0.11.0" }
"mirage-kv" { ?monorepo }
"mirage-logs" { ?monorepo & >= "1.2.0" & < "2.0.0" }
"mirage-monitoring" { ?monorepo }
"mirage-net-solo5" { ?monorepo & >= "0.8.0" & < "0.9.0" }
"mirage-random" { ?monorepo & >= "3.0.0" & < "4.0.0" }
"mirage-runtime" { ?monorepo & >= "3.8.0" & >= "4.2.0" & < "4.3.0" }
"mirage-solo5" { ?monorepo & >= "0.9.0" & < "0.10.0" }
"mirage-time" { ?monorepo }
"ocaml" { build & >= "4.08.0" }
"ocaml-solo5" { build & >= "0.8.1" & < "0.9.0" }
"opam-monorepo" { build & >= "0.3.2" }
"openvpn" { ?monorepo }
"tcpip" { ?monorepo & >= "7.0.0" & < "8.0.0" }
]
x-mirage-opam-lock-location: "mirage-router/mirage/ovpn-router-hvt.opam.locked"
x-mirage-configure: ["sh" "-exc" "cd mirage-router/ && mirage configure -t hvt --allocation-policy=best-fit --context ./mirage/context --no-extra-repo"]
x-mirage-pre-build: [make "-Cmirage-router/" "lock" "depext-lockfile" "pull"]
x-mirage-extra-repo: [
["opam-overlays" "https://github.com/dune-universe/opam-overlays.git"]
["mirage-overlays" "https://github.com/dune-universe/mirage-opam-overlays.git"]]
x-opam-monorepo-opam-provided: ["mirage"
"ocaml""ocaml-solo5"
"opam-monorepo"]
url { src: "git+https://github.com/roburio/openvpn.git#robur" }

View file

@ -25,7 +25,7 @@ depends: [
"angstrom" { >= "0.14.0" } "angstrom" { >= "0.14.0" }
"cstruct" { >= "6.0.0" } "cstruct" { >= "6.0.0" }
"cmdliner" "cmdliner" { >= "1.1.0" }
"domain-name" { >= "0.2.0" } "domain-name" { >= "0.2.0" }
"fmt" "fmt"
"gmap" { >= "0.3.0" } "gmap" { >= "0.3.0" }
@ -33,7 +33,7 @@ depends: [
"ipaddr" { >= "5.0.0" } "ipaddr" { >= "5.0.0" }
"logs" "logs"
"cstruct-lwt" "cstruct-lwt"
"lwt" "lwt" {>= "5.6.0"}
"mirage-crypto" "mirage-crypto"
"mirage-crypto-rng" {>= "0.8.0"} "mirage-crypto-rng" {>= "0.8.0"}
"ptime" "ptime"