moby / vpnkit

A toolkit for embedding VPN capabilities in your application
Apache License 2.0
1.1k stars 187 forks source link

Homebrew Formula #498

Open bensallen opened 4 years ago

bensallen commented 4 years ago

I've started looking at what it'll take to get vpnkit into Homebrew-core or at minimum in a tap.

ghost commented 2 years ago

Current build steps that work on master. Be weary of tcpip.3.3.0 though. It's on a branch that could be removed.

Right now I'm working on automating win/mac/linux builds with Github actions and will have it produce artifacts in releases. If you're interested you could pull from that when I complete the work. Repo is going to be protosam/vpnkit-builds.

$ git clone https://github.com/moby/vpnkit.git
$ cd vpnkit
$ brew install aspcud darcs gpatch mercurial wget pkg-config libtool
$ mkdir -p ~/bin
$ curl -sLo ~/bin/opam https://github.com/ocaml/opam/releases/download/2.1.1/opam-2.1.1-x86_64-macos
$ chmod +x ~/bin/opam
$ opam init --compiler=4.12.0
$ opam pin configurator --dev-repo -n
$ opam pin add tcpip.3.3.0 "https://github.com/djs55/mirage-tcpip.git#vpnkit-20210417" -n
$ opam pin add vpnkit . -n
$ opam install vpnkit charrua-client-mirage alcotest dune -y --update-invariant
$ opam exec -- dune build --profile release
$ ls -lah _build/install/default/bin/vpnkit