From 4c72bb5a9d7657668b74504b29ce8c9c26155d74 Mon Sep 17 00:00:00 2001 From: Naveen Nathan Date: Fri, 10 Jan 2020 15:33:17 +1100 Subject: [PATCH] dsvpn 0.1.4 (new formula) Dsvpn (Dead Simple VPN) is as the name describes a tool to create a VPN server with minimal fuss. Ditto for the client. It is designed around the "cafe Internet hotspot" use case where only TCP/80 or TCP/443 is open and there is no deep packet inspection to thwart your escape attempts. Dsvpn on Mac currently supports client mode for the time being. It is unclear whether server mode will ever be supported. It is so dead simple that everything about its usage is described in the usage screen. Closes #48879. Signed-off-by: Issy Long --- Formula/dsvpn.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Formula/dsvpn.rb diff --git a/Formula/dsvpn.rb b/Formula/dsvpn.rb new file mode 100644 index 0000000000..21aff132cd --- /dev/null +++ b/Formula/dsvpn.rb @@ -0,0 +1,24 @@ +class Dsvpn < Formula + desc "Dead Simple VPN" + homepage "https://github.com/jedisct1/dsvpn" + url "https://github.com/jedisct1/dsvpn/archive/0.1.4.tar.gz" + sha256 "b98604e1ca2ffa7a909bf07ca7cf0597e3baa73c116fbd257f93a4249ac9c0c5" + head "https://github.com/jedisct1/dsvpn.git" + + def install + sbin.mkpath + system "make" + system "make", "install", "PREFIX=#{prefix}" + end + + def caveats; <<~EOS + dsvpn requires root privileges so you will need to run `sudo #{HOMEBREW_PREFIX}/sbin/dsvpn`. + You should be certain that you trust any software you grant root privileges. + EOS + end + + test do + expected = "tun device creation: Operation not permitted" + assert_match expected, shell_output("#{sbin}/dsvpn client /dev/zero 127.0.0.1 0 2>&1", 1) + end +end