diff options
| author | Dominyk Tiller | 2015-02-17 05:59:56 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-18 13:39:06 +0000 |
| commit | 09e528896dc16b509c81a417a2f773733ac278e1 (patch) | |
| tree | c7d0a8f12ffd37ca875ad0e1ee644e76e69ff4e4 /Library | |
| parent | cf800efc7fb0ca244b69ca7754d45b8e1af12928 (diff) | |
| download | homebrew-09e528896dc16b509c81a417a2f773733ac278e1.tar.bz2 | |
pinentry-mac: halt remote-code execution in make
Closes #36873
Closes #36887.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pinentry-mac.rb | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/Library/Formula/pinentry-mac.rb b/Library/Formula/pinentry-mac.rb index 205f92918..81cec96cf 100644 --- a/Library/Formula/pinentry-mac.rb +++ b/Library/Formula/pinentry-mac.rb @@ -1,11 +1,18 @@ -require "formula" - class PinentryMac < Formula homepage "https://github.com/GPGTools/pinentry-mac" - url "https://github.com/GPGTools/pinentry-mac/archive/v0.8.1.tar.gz" - sha256 "79aaa11fa8076ff335b3a1f41c230ef7c8435a757705e6484199f562f26b490f" head "https://github.com/GPGTools/pinentry-mac.git" + stable do + url "https://github.com/GPGTools/pinentry-mac/archive/v0.8.1.tar.gz" + sha256 "79aaa11fa8076ff335b3a1f41c230ef7c8435a757705e6484199f562f26b490f" + + # Removes the remote code execution previously run automatically. + patch do + url "https://github.com/GPGTools/pinentry-mac/commit/89dd4789818894.diff" + sha1 "ab4db3264e1eb5ec9f9e1a31ad28b43d869c0f82" + end + end + bottle do cellar :any sha1 "d518025f018b5fbed420c4f1d0f9bee2bdd3fda8" => :yosemite @@ -13,9 +20,18 @@ class PinentryMac < Formula sha1 "4d80f3954ddb16618074d9d978f3a83aedddb8db" => :mountain_lion end + # Manual cloning of this repo is now the upstream default: + # https://github.com/GPGTools/pinentry-mac/commit/89dd47898188 + resource "core_clone" do + url "https://github.com/GPGTools/GPGTools_Core.git", + :revision => "f1e458ab2daeb104328ea4ec2aa7c71e8fca758d" + end + depends_on :xcode => :build def install + (buildpath/"Dependencies/GPGTools_Core").install resource("core_clone") + system "make" prefix.install "build/Release/pinentry-mac.app" bin.write_exec_script "#{prefix}/pinentry-mac.app/Contents/MacOS/pinentry-mac" |
