homebrew-core/Formula/ctunnel.rb

30 lines
1,003 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"
revision 1
2014-12-13 13:46:22 +00:00
bottle do
cellar :any
2016-09-28 22:32:50 +00:00
sha256 "dfcf3349529b7b2ab47298a9090d916be9eb3b9c0d72cd644f0e4b1de09796be" => :sierra
2016-07-19 08:42:15 +00:00
sha256 "6a5de1059ec2e138e68530fd62f51b102e29d6ecfb83eaa22e3f79bc0d9acf4c" => :el_capitan
sha256 "70736b739ab67933916bff1ce0d4ea9105c0faef9576646a5f7abf5e80f2b9b3" => :yosemite
sha256 "3a442229dba723b14300c711e84b3dd0740b1b0488c6d4b59121193cba7195c7" => :mavericks
2014-12-13 13:46:22 +00:00
end
depends_on "openssl"
depends_on :tuntap => :optional
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