miniupnpc 2.0.20170509

Closes #13848.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-05-23 05:03:27 -07:00
parent 5b7285d1fe
commit 3cfc56dc1d

View file

@ -1,9 +1,8 @@
class Miniupnpc < Formula class Miniupnpc < Formula
desc "UPnP IGD client library and daemon" desc "UPnP IGD client library and daemon"
homepage "https://miniupnp.tuxfamily.org" homepage "https://miniupnp.tuxfamily.org"
url "https://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-2.0.tar.gz" url "https://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-2.0.20170509.tar.gz"
sha256 "d434ceb8986efbe199c5ca53f90ed53eab290b1e6d0530b717eb6fa49d61f93b" sha256 "d3c368627f5cdfb66d3ebd64ca39ba54d6ff14a61966dbecb8dd296b7039f16a"
revision 1
bottle do bottle do
cellar :any cellar :any
@ -12,14 +11,6 @@ class Miniupnpc < Formula
sha256 "75507b0ea568402299cc5788d292df98da1887b76e16afc5f5db96aeb247554b" => :yosemite sha256 "75507b0ea568402299cc5788d292df98da1887b76e16afc5f5db96aeb247554b" => :yosemite
end end
# Patch for CVE-2017-8798. Due to upstream developing everything
# within the same tree it doesn't apply cleanly from a repo patch.
# https://github.com/miniupnp/miniupnp/commit/f0f1f4b22d6a98536377
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/c6df018c/miniupnpc/CVE-2017-8798.diff"
sha256 "0c75dfed81bb66118e3eb3d1764e229a24a196ca33f060896478a067037ea222"
end
def install def install
system "make", "INSTALLPREFIX=#{prefix}", "install" system "make", "INSTALLPREFIX=#{prefix}", "install"
end end