From 65457c4a825060e4014ebe6606bb4689c0052625 Mon Sep 17 00:00:00 2001 From: Ryan T. Dean Date: Thu, 12 Mar 2015 00:33:02 -0700 Subject: gpg-agent: add plist add plist to enable gpg-agent as a launch agent. Closes #37628. Signed-off-by: Mike McQuaid --- Library/Formula/gpg-agent.rb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/gpg-agent.rb b/Library/Formula/gpg-agent.rb index eec6be840..517b465a9 100644 --- a/Library/Formula/gpg-agent.rb +++ b/Library/Formula/gpg-agent.rb @@ -33,9 +33,41 @@ class GpgAgent < Formula system "make", "install" end + def caveats; <<-EOS.undent + Remember to set a graphical pinentry program (such as pinentry-mac) in your + ~/.gnupg/gpg-agent.conf if you configure launchd to start gpg-agent at login. + EOS + end + test do system "#{bin}/gpg-agent", "--help" end + + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + ProgramArguments + + /bin/sh + -c + #{opt_prefix}/bin/gpg-agent -c --daemon | /bin/launchctl + + RunAtLoad + + StandardErrorPath + /dev/null + StandardOutPath + /dev/null + ServiceDescription + Run gpg-agent at login + + + EOS + end end __END__ -- cgit v1.2.3