63 lines
1.9 KiB
Ruby
63 lines
1.9 KiB
Ruby
class GpgAgent < Formula
|
|
desc "GPG key agent"
|
|
homepage "https://www.gnupg.org/"
|
|
url "ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.28.tar.bz2"
|
|
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.28.tar.bz2"
|
|
sha256 "ce092ee4ab58fd19b9fb34a460c07b06c348f4360dd5dd4886d041eb521a534c"
|
|
|
|
bottle do
|
|
sha256 "9b7601f361df7a13d970795cf8b723722397aff980e1f67e8f0fed426ae71e84" => :yosemite
|
|
sha256 "1b627ef0b3233c0701eae87841eed4968089bac434455dfe59a15f07b1fe07af" => :mavericks
|
|
sha256 "78df29269281f0ad6103c1f223c7d1da90be398c28c76e57ce0f9385e1d2e652" => :mountain_lion
|
|
end
|
|
|
|
depends_on "libgpg-error"
|
|
depends_on "libgcrypt"
|
|
depends_on "libksba"
|
|
depends_on "libassuan"
|
|
depends_on "pth"
|
|
depends_on "pinentry"
|
|
|
|
# Adjust package name to fit our scheme of packaging both
|
|
# gnupg 1.x and 2.x, and gpg-agent separately
|
|
patch :DATA
|
|
|
|
def install
|
|
# don't use Clang's internal stdint.h
|
|
ENV["gl_cv_absolute_stdint_h"] = "#{MacOS.sdk_path}/usr/include/stdint.h"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--enable-agent-only",
|
|
"--with-pinentry-pgm=#{Formula["pinentry"].opt_bin}/pinentry",
|
|
"--with-scdaemon-pgm=#{Formula["gnupg2"].opt_libexec}/scdaemon"
|
|
system "make", "install"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
Remember to add "use-standard-socket" to your ~/.gnupg/gpg-agent.conf
|
|
file.
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/gpg-agent", "--help"
|
|
end
|
|
end
|
|
|
|
__END__
|
|
diff --git a/configure b/configure
|
|
index c022805..96ea7ed 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -578,8 +578,8 @@ MFLAGS=
|
|
MAKEFLAGS=
|
|
|
|
# Identity of this package.
|
|
-PACKAGE_NAME='gnupg'
|
|
-PACKAGE_TARNAME='gnupg'
|
|
+PACKAGE_NAME='gpg-agent'
|
|
+PACKAGE_TARNAME='gpg-agent'
|
|
PACKAGE_VERSION='2.0.28'
|
|
PACKAGE_STRING='gnupg 2.0.28'
|
|
PACKAGE_BUGREPORT='http://bugs.gnupg.org'
|