blob: 07befed131f4a87c02aba73abbbcaec13e0d32f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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"
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
|