2011-03-10 05:11:03 +00:00
|
|
|
class Knock < Formula
|
2015-02-06 08:06:27 +00:00
|
|
|
homepage "http://www.zeroflux.org/projects/knock"
|
|
|
|
url "http://www.zeroflux.org/proj/knock/files/knock-0.7.tar.gz"
|
|
|
|
sha1 "186a687c9db11733cf23a7423884a863873ebb27"
|
|
|
|
|
2015-02-06 09:35:53 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "e81973835ea940928a166c0edc2c405fe8a6cac5" => :yosemite
|
|
|
|
sha1 "df0459ca7e7f8b18cd719e333c7a016f130c2e88" => :mavericks
|
|
|
|
sha1 "ab688df7694977ee058159505c2b3f674df31fc4" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-02-06 08:06:27 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/jvinet/knock.git"
|
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
end
|
2010-02-26 10:04:54 +00:00
|
|
|
|
|
|
|
def install
|
2015-02-06 08:06:27 +00:00
|
|
|
system "autoreconf", "-fi" if build.head?
|
2013-07-07 15:49:45 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
2015-02-06 08:06:27 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/knock", "localhost", "123:tcp"
|
2010-02-26 10:04:54 +00:00
|
|
|
end
|
|
|
|
end
|