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 <me@issyl0.co.uk>
This commit is contained in:
Naveen Nathan 2020-01-10 15:33:17 +11:00 committed by Issy Long
parent db38f1e3e1
commit 4c72bb5a9d
No known key found for this signature in database
GPG key ID: 8247C390DADC67D4

24
Formula/dsvpn.rb Normal file
View file

@ -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