2014-12-12 20:43:00 +00:00
|
|
|
class Ctunnel < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Cryptographic or plain tunnels for TCP/UDP connections"
|
2014-12-12 20:43:00 +00:00
|
|
|
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"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "3c90e14af75f7c31372fcdeb8ad24b5f874bfb974aa0906f25a059a2407a358f"
|
2014-12-12 20:43:00 +00:00
|
|
|
|
2014-12-13 13:46:22 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2016-04-10 13:37:02 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "0efc6fd73d83e3b3d074f1819f439fce8ffa8e55434398c6e7446f7f51eb8aae" => :mavericks
|
2014-12-13 13:46:22 +00:00
|
|
|
end
|
|
|
|
|
2014-12-12 20:43:00 +00:00
|
|
|
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
|