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"
|
2016-07-18 23:40:56 +00:00
|
|
|
revision 1
|
2014-12-12 20:43:00 +00:00
|
|
|
|
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
|
|
|
|
|
2014-12-12 20:43:00 +00:00
|
|
|
depends_on "openssl"
|
2016-09-24 15:45:48 +00:00
|
|
|
depends_on :tuntap => :optional
|
2014-12-12 20:43:00 +00:00
|
|
|
|
|
|
|
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
|