2012-01-31 18:15:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Fwknop < Formula
|
|
|
|
homepage 'http://www.cipherdyne.org/fwknop/'
|
2013-11-18 05:19:54 +00:00
|
|
|
url 'https://github.com/mrash/fwknop/archive/2.5.1-1.tar.gz'
|
2013-11-21 05:29:05 +00:00
|
|
|
version '2.5.1-1'
|
2013-11-18 05:19:54 +00:00
|
|
|
sha1 '3f6c43b91ab555d7652b81c16bccfc8049eb0f92'
|
2012-01-31 18:15:14 +00:00
|
|
|
|
2013-11-18 05:19:54 +00:00
|
|
|
head 'https://github.com/mrash/fwknop.git'
|
|
|
|
|
|
|
|
# needed for running autogen.sh script in GitHub release tarball
|
|
|
|
# as well as when building from HEAD
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :libtool
|
2013-11-17 13:10:33 +00:00
|
|
|
|
2013-05-07 02:34:13 +00:00
|
|
|
# needed for gpg support
|
|
|
|
depends_on 'gpgme' => :optional
|
|
|
|
|
2012-01-31 18:15:14 +00:00
|
|
|
def install
|
2013-11-18 05:19:54 +00:00
|
|
|
system './autogen.sh' if build.head? or !File.exists?('configure')
|
2012-01-31 18:15:14 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/fwknop", "--version"
|
2012-01-31 18:15:14 +00:00
|
|
|
end
|
|
|
|
end
|