newsbeuter: fix CVE-2017-12904

Closes #16996.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-08-19 09:31:17 -07:00
parent ca18073913
commit f7e8fe1a0a

View file

@ -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