Skip to content

Commit

Permalink
newsbeuter: fix CVE-2017-12904
Browse files Browse the repository at this point in the history
Closes #16996.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Aug 19, 2017
1 parent ca18073 commit f7e8fe1
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Formula/newsbeuter.rb
@@ -1,12 +1,22 @@
class Newsbeuter < Formula
desc "RSS/Atom feed reader for text terminals"
homepage "https://newsbeuter.org/"
url "https://www.newsbeuter.org/downloads/newsbeuter-2.9.tar.gz"
sha256 "74a8bf019b09c3b270ba95adc29f2bbe48ea1f55cc0634276b21fcce1f043dc8"
revision 1

revision 2
head "https://github.com/akrennmair/newsbeuter.git"

stable do
url "https://www.newsbeuter.org/downloads/newsbeuter-2.9.tar.gz"
sha256 "74a8bf019b09c3b270ba95adc29f2bbe48ea1f55cc0634276b21fcce1f043dc8"

# Remove for > 2.9
# Upstream commit from 13 Aug 2017
# See https://github.com/akrennmair/newsbeuter/commit/96e9506ae9e252c548665152d1b8968297128307
patch :p0 do
url "https://raw.githubusercontent.com/macports/macports-ports/9e85ce0c072/net/newsbeuter/files/patch-CVE-2017-12904.diff"
sha256 "09023b3d1e2166e7a72f5a9e1fe5e4b8ca24329e23b74abe8e80bac8e5211848"
end
end

bottle do
cellar :any
sha256 "7aa6c0a8f1d652bcf7bcc6f6109264c3101fdd3aba6b43891f449fe69284b7cc" => :sierra
Expand Down

0 comments on commit f7e8fe1

Please sign in to comment.