homebrew-core/Formula/ctunnel.rb

29 lines
756 B
Ruby
Raw Normal View History

require "formula"
class Ctunnel < Formula
desc "Cryptographic or plain tunnels for TCP/UDP connections"
homepage "https://github.com/alienrobotarmy/ctunnel"
url "http://alienrobotarmy.com/ctunnel/0.7/ctunnel-0.7.tar.gz"
sha1 "9d369fe3df9ba65880caacede0e9bb9e8e79021b"
2014-12-13 13:46:22 +00:00
bottle do
cellar :any
sha1 "9b9ad9c3cd1ca4841df031267945569da326cafa" => :mavericks
sha1 "a88c00a8f24ac35f8956e3326099391d5f53d698" => :mountain_lion
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