knock 0.7

Closes Homebrew/homebrew#36592.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2015-02-06 09:06:27 +01:00 committed by Mike McQuaid
parent 6aaa74624e
commit 6e8fa34bb7

View file

@ -1,14 +1,23 @@
require 'formula'
class Knock < Formula
homepage 'http://www.zeroflux.org/projects/knock'
url 'http://www.zeroflux.org/proj/knock/files/knock-0.6.tar.gz'
sha1 '38bfee90ba3af780b3f8dc1179f0c52d47b60d2c'
homepage "http://www.zeroflux.org/projects/knock"
url "http://www.zeroflux.org/proj/knock/files/knock-0.7.tar.gz"
sha1 "186a687c9db11733cf23a7423884a863873ebb27"
head do
url "https://github.com/jvinet/knock.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
def install
system "autoreconf", "-fi" if build.head?
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make knock"
bin.install "knock"
man1.install "doc/knock.1"
system "make"
system "make", "install"
end
test do
system "#{bin}/knock", "localhost", "123:tcp"
end
end