blob: b3590bf6f1d3afd28cd5659ad68b816a3e7a7c36 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 | class Fwknop < Formula
  homepage "http://www.cipherdyne.org/fwknop/"
  head "https://github.com/mrash/fwknop.git"
  url "https://github.com/mrash/fwknop/archive/2.6.5.tar.gz"
  sha1 "52f5a191f37aeeb2716d2ad5a25dbf41d6593100"
  bottle do
    sha1 "f59415c1d1381e55fdd480a87dc192900d64324f" => :yosemite
    sha1 "9c82b902d1289ab3d3070d430f751f7a1e7c00aa" => :mavericks
    sha1 "19cc832e0b839f7369713cd2735f1d4258e0338c" => :mountain_lion
  end
  depends_on "automake" => :build
  depends_on "autoconf" => :build
  depends_on "libtool" => :build
  depends_on "wget" => :optional
  depends_on "gpgme"
  def install
    system "./autogen.sh"
    system "./configure", "--disable-dependency-tracking", "--disable-silent-rules",
                          "--prefix=#{prefix}", "--with-gpgme", "--sysconfdir=#{etc}",
                          "--with-gpg=#{Formula["gnupg2"].opt_prefix}/bin/gpg2"
    system "make", "install"
  end
  test do
    touch testpath/".fwknoprc"
    chmod 0600, testpath/".fwknoprc"
    system "#{bin}/fwknop", "--version"
  end
end
 |