2012-01-31 18:15:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Fwknop < Formula
|
|
|
|
homepage 'http://www.cipherdyne.org/fwknop/'
|
2013-11-21 05:29:34 +00:00
|
|
|
head 'https://github.com/mrash/fwknop.git'
|
2013-11-30 05:49:38 +00:00
|
|
|
url 'https://github.com/mrash/fwknop/archive/2.5.1.1.tar.gz'
|
|
|
|
sha1 '47adc5734dfc84f9ab6e2ba8a5097132519cab8a'
|
2012-01-31 18:15:14 +00:00
|
|
|
|
2013-11-18 05:19:54 +00:00
|
|
|
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
|
|
|
depends_on 'gpgme' => :optional
|
|
|
|
|
2012-01-31 18:15:14 +00:00
|
|
|
def install
|
2013-12-09 19:44:45 +00:00
|
|
|
system './autogen.sh' if build.head? or !File.exist?('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
|