homebrew-core/Formula/ctunnel.rb

27 lines
816 B
Ruby
Raw Normal View History

class Ctunnel < Formula
desc "Cryptographic or plain tunnels for TCP/UDP connections"
homepage "https://github.com/alienrobotarmy/ctunnel"
2015-10-12 21:38:30 +00:00
url "https://alienrobotarmy.com/ctunnel/0.7/ctunnel-0.7.tar.gz"
sha256 "3c90e14af75f7c31372fcdeb8ad24b5f874bfb974aa0906f25a059a2407a358f"
2014-12-13 13:46:22 +00:00
bottle do
cellar :any
2015-11-19 15:45:31 +00:00
sha256 "1897708e8aeb80cf37c65d21ad1f4ce830923c04801eba40ab20d1b5bb3898c5" => :mavericks
sha256 "826c0603ed8f138f71ae1df35202080b01699d03244b635f050d741cd5eb0cef" => :mountain_lion
2014-12-13 13:46:22 +00:00
end
depends_on "openssl"
depends_on :tuntap => :recommended
def install
inreplace "Makefile.cfg", "TUNTAP=yes", "TUNTAP=no" if build.without? "tuntap"
system "make"
bin.mkpath
system "make", "-B", "install", "PREFIX=#{prefix}"
end
test do
system "#{bin}/ctunnel", "-h"
end
end