Skip to content

Instantly share code, notes, and snippets.

@FiloSottile
Created April 3, 2017 18:19
Show Gist options
  • Save FiloSottile/1b4dffe50c38e03a9506db6a5e052f33 to your computer and use it in GitHub Desktop.
Save FiloSottile/1b4dffe50c38e03a9506db6a5e052f33 to your computer and use it in GitHub Desktop.
class Iodine < Formula
desc "Tool for tunneling IPv4 data through a DNS server"
homepage "http://code.kryo.se/iodine/"
head "https://github.com/yarrick/iodine.git"
stable do
url "http://code.kryo.se/iodine/iodine-0.7.0.tar.gz"
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/i/iodine/iodine_0.7.0.orig.tar.gz"
sha256 "ad2b40acf1421316ec15800dcde0f587ab31d7d6f891fa8b9967c4ded93c013e"
depends_on :tuntap
end
# Requires tuntap for < 10.10
depends_on :macos => :yosemite
def install
system "make", "install", "prefix=#{prefix}"
end
def caveats; <<-EOS.undent
To use the native utun devices instead of tuntap, install
the HEAD version, and use "-d utunX"
EOS
end
test do
system "#{sbin}/iodine", "-v"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment