forked from necromant2005/homebrew-boneyard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngrok.rb
30 lines (25 loc) · 926 Bytes
/
ngrok.rb
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
28
29
30
# Please don't update this formula to the 2.x releases until those are
# open-source and available to build from source. Ref:
# https://github.com/Homebrew/homebrew/pull/45441
class Ngrok < Formula
desc "Expose localhost to the internet and capture traffic for replay"
homepage "https://ngrok.com"
url "https://github.com/inconshreveable/ngrok/archive/1.7.1.tar.gz"
sha256 "ffb1ad90d5aa3c8b3a9bfd8109a71027645a78d5e61fccedd0873fee060da665"
revision 1
head "https://github.com/inconshreveable/ngrok.git"
depends_on "go" => :build
depends_on :hg => :build
patch do
url "https://github.com/inconshreveable/ngrok/commit/761e6d0de87f4175b91a007951d7ca4ab12b7d04.diff"
sha256 "1bfc6342e1c194a7763039de8d6a1a1c3783a30f0517473248e0fccb3c71c211"
end
def install
ENV.j1
system "make", "release-client"
bin.install "bin/ngrok"
end
test do
system "#{bin}/ngrok", "version"
end
end