2012-01-31 18:15:14 +00:00
|
|
|
class Fwknop < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Single Packet Authorization and Port Knocking"
|
2015-09-06 18:11:09 +00:00
|
|
|
homepage "https://www.cipherdyne.org/fwknop/"
|
2015-09-06 02:58:54 +00:00
|
|
|
url "https://github.com/mrash/fwknop/archive/2.6.7.tar.gz"
|
|
|
|
sha256 "e96c13f725a4c3829c842743b14aedf591d30570df5c06556862a900b64def86"
|
2014-08-21 07:25:35 +00:00
|
|
|
head "https://github.com/mrash/fwknop.git"
|
2012-01-31 18:15:14 +00:00
|
|
|
|
2014-08-21 08:13:25 +00:00
|
|
|
bottle do
|
2015-09-06 05:59:04 +00:00
|
|
|
sha256 "d00d233db7cb2cb04c50ee792756d76cfda37f2c6bc210e313375dca01d8f4d1" => :yosemite
|
|
|
|
sha256 "a69bbd4435378eb2b6b5a8046d3562aef0f22152b50521c106700aa53f221724" => :mavericks
|
|
|
|
sha256 "c003419be9572eab4fa791bb43b4faa63235caadac15f3cb1d1f38b555b927ef" => :mountain_lion
|
2014-08-21 08:13:25 +00:00
|
|
|
end
|
|
|
|
|
2014-06-01 01:39:25 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "libtool" => :build
|
2014-11-17 18:10:03 +00:00
|
|
|
depends_on "wget" => :optional
|
2014-06-01 01:39:25 +00:00
|
|
|
depends_on "gpgme"
|
2013-05-07 02:34:13 +00:00
|
|
|
|
2012-01-31 18:15:14 +00:00
|
|
|
def install
|
2014-06-01 01:39:25 +00:00
|
|
|
system "./autogen.sh"
|
2014-11-17 18:10:03 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--disable-silent-rules",
|
2014-12-23 22:40:39 +00:00
|
|
|
"--prefix=#{prefix}", "--with-gpgme", "--sysconfdir=#{etc}",
|
2014-11-17 18:10:03 +00:00
|
|
|
"--with-gpg=#{Formula["gnupg2"].opt_prefix}/bin/gpg2"
|
|
|
|
system "make", "install"
|
2012-01-31 18:15:14 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2014-12-23 22:40:39 +00:00
|
|
|
touch testpath/".fwknoprc"
|
|
|
|
chmod 0600, testpath/".fwknoprc"
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/fwknop", "--version"
|
2012-01-31 18:15:14 +00:00
|
|
|
end
|
|
|
|
end
|