2010-04-20 02:03:22 +00:00
|
|
|
class GpgAgent < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "GPG key agent"
|
2014-06-04 02:13:07 +00:00
|
|
|
homepage "https://www.gnupg.org/"
|
2015-09-15 18:10:19 +00:00
|
|
|
url "https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.0.29.tar.bz2"
|
|
|
|
mirror "ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.29.tar.bz2"
|
2015-09-14 12:05:41 +00:00
|
|
|
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.29.tar.bz2"
|
|
|
|
sha256 "68ed6b386ba78425b05a60e8ee22785ff0fef190bdc6f1c612f19a58819d4ac9"
|
2010-04-20 02:03:22 +00:00
|
|
|
|
2014-07-01 10:48:03 +00:00
|
|
|
bottle do
|
2015-09-20 19:36:42 +00:00
|
|
|
sha256 "9bebbc754c440be3ac5eada58600a2843d7922aed2a3c68a3329b5a94fbf6871" => :el_capitan
|
2015-09-15 10:55:45 +00:00
|
|
|
sha256 "adf4ef470b329e18679ebd06efdb918b9e0220c7f5ab53937b476b48e11b37cd" => :yosemite
|
|
|
|
sha256 "e9ada5047c3138066c28722dc281ea525bc78c3b368adf719541862c27192026" => :mavericks
|
|
|
|
sha256 "65647148cf2989c7869f13d91f07441549e38cb4c13187df14134ce2fdbaf7b4" => :mountain_lion
|
2014-07-01 10:48:03 +00:00
|
|
|
end
|
|
|
|
|
2014-06-04 02:13:07 +00:00
|
|
|
depends_on "libgpg-error"
|
|
|
|
depends_on "libgcrypt"
|
|
|
|
depends_on "libksba"
|
|
|
|
depends_on "libassuan"
|
|
|
|
depends_on "pth"
|
|
|
|
depends_on "pinentry"
|
2010-04-20 02:03:22 +00:00
|
|
|
|
2012-03-28 03:56:20 +00:00
|
|
|
# Adjust package name to fit our scheme of packaging both
|
|
|
|
# gnupg 1.x and 2.x, and gpg-agent separately
|
2014-03-19 17:07:52 +00:00
|
|
|
patch :DATA
|
2011-12-17 19:43:13 +00:00
|
|
|
|
2010-04-20 02:03:22 +00:00
|
|
|
def install
|
2014-02-25 06:23:35 +00:00
|
|
|
# don't use Clang's internal stdint.h
|
2014-06-04 02:13:07 +00:00
|
|
|
ENV["gl_cv_absolute_stdint_h"] = "#{MacOS.sdk_path}/usr/include/stdint.h"
|
2011-12-17 19:43:13 +00:00
|
|
|
|
2012-03-17 19:08:07 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-05-23 20:21:40 +00:00
|
|
|
"--enable-agent-only",
|
2014-03-06 05:28:31 +00:00
|
|
|
"--with-pinentry-pgm=#{Formula["pinentry"].opt_bin}/pinentry",
|
|
|
|
"--with-scdaemon-pgm=#{Formula["gnupg2"].opt_libexec}/scdaemon"
|
2014-12-27 16:01:34 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
2015-03-12 07:33:02 +00:00
|
|
|
def caveats; <<-EOS.undent
|
2015-04-11 16:13:09 +00:00
|
|
|
Remember to add "use-standard-socket" to your ~/.gnupg/gpg-agent.conf
|
|
|
|
file.
|
2015-03-12 07:33:02 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2014-12-27 16:01:34 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/gpg-agent", "--help"
|
2010-04-20 02:03:22 +00:00
|
|
|
end
|
|
|
|
end
|
2011-12-17 19:43:13 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/configure b/configure
|
2014-08-13 08:16:19 +00:00
|
|
|
index c022805..96ea7ed 100755
|
2011-12-17 19:43:13 +00:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2013-06-03 23:53:27 +00:00
|
|
|
@@ -578,8 +578,8 @@ MFLAGS=
|
2011-12-17 19:43:13 +00:00
|
|
|
MAKEFLAGS=
|
2014-12-27 16:01:34 +00:00
|
|
|
|
2011-12-17 19:43:13 +00:00
|
|
|
# Identity of this package.
|
|
|
|
-PACKAGE_NAME='gnupg'
|
|
|
|
-PACKAGE_TARNAME='gnupg'
|
|
|
|
+PACKAGE_NAME='gpg-agent'
|
|
|
|
+PACKAGE_TARNAME='gpg-agent'
|
2015-09-14 12:05:41 +00:00
|
|
|
PACKAGE_VERSION='2.0.29'
|
|
|
|
PACKAGE_STRING='gnupg 2.0.29'
|
2011-12-17 19:43:13 +00:00
|
|
|
PACKAGE_BUGREPORT='http://bugs.gnupg.org'
|