From 262111e9425c447371c05bfece1413d91caf0611 Mon Sep 17 00:00:00 2001 From: 404NetworkError <404NetworkError@users.noreply.github.com> Date: Thu, 29 Nov 2018 11:35:22 -0600 Subject: [PATCH] wireshark 2.6.5 Closes #34600. Signed-off-by: FX Coudert --- Formula/wireshark.rb | 57 ++++++++++++++++---------------------------- 1 file changed, 20 insertions(+), 37 deletions(-) diff --git a/Formula/wireshark.rb b/Formula/wireshark.rb index 7fb05cb322..93167327c6 100644 --- a/Formula/wireshark.rb +++ b/Formula/wireshark.rb @@ -1,9 +1,9 @@ class Wireshark < Formula desc "Graphical network analyzer and capture tool" homepage "https://www.wireshark.org" - url "https://www.wireshark.org/download/src/all-versions/wireshark-2.6.4.tar.xz" - mirror "https://1.eu.dl.wireshark.org/src/wireshark-2.6.4.tar.xz" - sha256 "a06b007e6343f148b8b93443b2fcfc9bb3204311cd268565d54d1b71660bc861" + url "https://www.wireshark.org/download/src/all-versions/wireshark-2.6.5.tar.xz" + mirror "https://1.eu.dl.wireshark.org/src/wireshark-2.6.5.tar.xz" + sha256 "93155b798544b2f07693920f4ac1b531c952965ee4eb1d98419961240177438a" head "https://code.wireshark.org/review/wireshark", :using => :git bottle do @@ -13,8 +13,6 @@ class Wireshark < Formula end option "with-qt", "Build the wireshark command with Qt" - option "with-headers", "Install Wireshark library headers for plug-in development" - option "with-nghttp2", "Enable HTTP/2 header dissection" deprecated_option "with-qt5" => "with-qt" @@ -24,10 +22,10 @@ class Wireshark < Formula depends_on "gnutls" depends_on "libgcrypt" depends_on "libmaxminddb" + depends_on "libsmi" + depends_on "libssh" depends_on "lua@5.1" - depends_on "libsmi" => :optional - depends_on "libssh" => :optional - depends_on "nghttp2" => :optional + depends_on "nghttp2" depends_on "qt" => :optional def install @@ -44,6 +42,10 @@ class Wireshark < Formula -DGCRYPT_INCLUDE_DIR=#{Formula["libgcrypt"].opt_include} -DGNUTLS_INCLUDE_DIR=#{Formula["gnutls"].opt_include} -DMAXMINDDB_INCLUDE_DIR=#{Formula["libmaxminddb"].opt_include} + -DENABLE_SMI=ON + -DBUILD_sshdump=ON + -DBUILD_ciscodump=ON + -DENABLE_NGHTTP2=ON ] if build.with? "qt" @@ -56,24 +58,6 @@ class Wireshark < Formula args << "-DENABLE_QT5=OFF" end - if build.with? "libsmi" - args << "-DENABLE_SMI=ON" - else - args << "-DENABLE_SMI=OFF" - end - - if build.with? "libssh" - args << "-DBUILD_sshdump=ON" << "-DBUILD_ciscodump=ON" - else - args << "-DBUILD_sshdump=OFF" << "-DBUILD_ciscodump=OFF" - end - - if build.with? "nghttp2" - args << "-DENABLE_NGHTTP2=ON" - else - args << "-DENABLE_NGHTTP2=OFF" - end - system "cmake", *args system "make", "install" @@ -82,17 +66,16 @@ class Wireshark < Formula bin.install_symlink prefix/"Wireshark.app/Contents/MacOS/Wireshark" => "wireshark" end - if build.with? "headers" - (include/"wireshark").install Dir["*.h"] - (include/"wireshark/epan").install Dir["epan/*.h"] - (include/"wireshark/epan/crypt").install Dir["epan/crypt/*.h"] - (include/"wireshark/epan/dfilter").install Dir["epan/dfilter/*.h"] - (include/"wireshark/epan/dissectors").install Dir["epan/dissectors/*.h"] - (include/"wireshark/epan/ftypes").install Dir["epan/ftypes/*.h"] - (include/"wireshark/epan/wmem").install Dir["epan/wmem/*.h"] - (include/"wireshark/wiretap").install Dir["wiretap/*.h"] - (include/"wireshark/wsutil").install Dir["wsutil/*.h"] - end + # Install headers + (include/"wireshark").install Dir["*.h"] + (include/"wireshark/epan").install Dir["epan/*.h"] + (include/"wireshark/epan/crypt").install Dir["epan/crypt/*.h"] + (include/"wireshark/epan/dfilter").install Dir["epan/dfilter/*.h"] + (include/"wireshark/epan/dissectors").install Dir["epan/dissectors/*.h"] + (include/"wireshark/epan/ftypes").install Dir["epan/ftypes/*.h"] + (include/"wireshark/epan/wmem").install Dir["epan/wmem/*.h"] + (include/"wireshark/wiretap").install Dir["wiretap/*.h"] + (include/"wireshark/wsutil").install Dir["wsutil/*.h"] end def caveats; <<~EOS