aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/knock.rb25
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