diff options
| author | Baptiste Fontaine | 2015-02-06 09:06:27 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-06 10:18:24 +0000 |
| commit | c8cacdda1ac7a46eee0fd677e2983a85ee2e47ec (patch) | |
| tree | 11fb3265a2caf8d2e044ab275627df0b9ff2ead9 /Library | |
| parent | 8797ed31324813d86fcca7149a57b605174ff78b (diff) | |
| download | homebrew-c8cacdda1ac7a46eee0fd677e2983a85ee2e47ec.tar.bz2 | |
knock 0.7
Closes #36592.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/knock.rb | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/Library/Formula/knock.rb b/Library/Formula/knock.rb index e258806b4..fdbdeb003 100644 --- a/Library/Formula/knock.rb +++ b/Library/Formula/knock.rb @@ -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 |
