aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDominyk Tiller2014-12-12 20:43:00 +0000
committerMike McQuaid2014-12-13 13:48:13 +0000
commit58a1494255249e0482d805e70618db8823efa156 (patch)
tree49c474d15c96d6f8dc018846520f61d0384b53a4 /Library/Formula
parent3f1f44b40e753b029f198fb1aee534dda99a8c38 (diff)
downloadhomebrew-58a1494255249e0482d805e70618db8823efa156.tar.bz2
ctunnel 0.7 (new formula)
Closes #33527. Closes #34931. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ctunnel.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/ctunnel.rb b/Library/Formula/ctunnel.rb
new file mode 100644
index 000000000..8c8bb107d
--- /dev/null
+++ b/Library/Formula/ctunnel.rb
@@ -0,0 +1,21 @@
+require "formula"
+
+class Ctunnel < Formula
+ homepage "https://github.com/alienrobotarmy/ctunnel"
+ url "http://alienrobotarmy.com/ctunnel/0.7/ctunnel-0.7.tar.gz"
+ sha1 "9d369fe3df9ba65880caacede0e9bb9e8e79021b"
+
+ 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