homebrew-core/Formula/fwknop.rb
Tim Heckman 1f3db12568 fwknop: add --HEAD
Closes Homebrew/homebrew#24397.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-11-17 10:41:54 -08:00

27 lines
641 B
Ruby

require 'formula'
class Fwknop < Formula
homepage 'http://www.cipherdyne.org/fwknop/'
url 'http://www.cipherdyne.org/fwknop/download/fwknop-2.5.1.tar.bz2'
sha1 '65bed25e9d7f4a7ccc3f15cab35b95a6f7b21873'
head do
url 'https://github.com/mrash/fwknop.git'
depends_on :automake
depends_on :autoconf
end
# needed for gpg support
depends_on 'gpgme' => :optional
def install
system './autogen.sh' if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
def test
system "#{bin}/fwknop", "--version"
end
end