homebrew-core/Formula/dirmngr.rb
2017-04-03 03:10:55 -07:00

43 lines
1.5 KiB
Ruby

class Dirmngr < Formula
desc "Server for managing certificate revocation lists"
homepage "https://www.gnupg.org/"
url "https://gnupg.org/ftp/gcrypt/dirmngr/dirmngr-1.1.1.tar.bz2"
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/dirmngr/dirmngr-1.1.1.tar.bz2"
sha256 "d2280b8c314db80cdaf101211a47826734443436f5c3545cc1b614c50eaae6ff"
revision 3
bottle do
sha256 "5467feb04dd6e6bbafbef24d36a10aad3bdae551ff5c974bcd3d56773f727d06" => :sierra
sha256 "af37e95ca5902614e328388a205dd3f48409bbf4775daf6b05d11681989b8364" => :el_capitan
sha256 "ee1a749c1264eab899651084d66c4909ef37a5a4ebfda98086e2a199e79db1d4" => :yosemite
end
keg_only "GPG 2.1.x ships an internal dirmngr which it must use."
depends_on "libassuan"
depends_on "libgpg-error"
depends_on "libgcrypt"
depends_on "libksba"
depends_on "pth"
patch :p0 do
# patch by upstream developer to fix an API incompatibility with libgcrypt >=1.6.0
# causing immediate segfault in dirmngr. see https://bugs.gnupg.org/gnupg/issue1590
url "https://bugs.gnupg.org/gnupg/file419/dirmngr-pth-fix.patch"
sha256 "0efbcf1e44177b3546fe318761c3386a11310a01c58a170ef60df366e5160beb"
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--localstatedir=#{var}"
system "make"
system "make", "install"
end
test do
system "#{bin}/dirmngr-client", "--help"
system "#{bin}/dirmngr", "--help"
end
end