wireshark devel 1.99.0
Primarily: Adds a devel option. Secondary: Makes the URLs canonical; Wireshark have formally permanently moved the http links to https. Thirdly: Jiggles the mirrors about a bit; currently both the main url and the mirror are US based, so for the sake of balance I’ve gone for one US, one EU, both SSL/TLS. The new mirror link is an official Wireshark recommended one. Lastly: Adds a very optional dependency to use our libpcap, if so desired. Closes Homebrew/homebrew#34347. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
ddeb881d70
commit
b315806e70
1 changed files with 13 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
|||
require "formula"
|
||||
|
||||
class Wireshark < Formula
|
||||
homepage "http://www.wireshark.org"
|
||||
homepage "https://www.wireshark.org"
|
||||
|
||||
stable do
|
||||
url "http://wiresharkdownloads.riverbed.com/wireshark/src/all-versions/wireshark-1.12.2.tar.bz2"
|
||||
mirror "http://www.wireshark.org/download/src/all-versions/wireshark-1.12.2.tar.bz2"
|
||||
url "https://www.wireshark.org/download/src/all-versions/wireshark-1.12.2.tar.bz2"
|
||||
mirror "https://1.eu.dl.wireshark.org/src/wireshark-1.12.2.tar.bz2"
|
||||
sha1 "0598fe285725f97045d7d08e6bde04686044b335"
|
||||
|
||||
# Removes SDK checks that prevent the build from working on CLT-only systems
|
||||
|
@ -27,6 +27,12 @@ class Wireshark < Formula
|
|||
depends_on "libtool" => :build
|
||||
end
|
||||
|
||||
devel do
|
||||
url "https://www.wireshark.org/download/src/all-versions/wireshark-1.99.0.tar.bz2"
|
||||
mirror "https://1.eu.dl.wireshark.org/src/wireshark-1.99.0.tar.bz2"
|
||||
sha1 "2e5cf3209104b98251350b3a5e52401866916aec"
|
||||
end
|
||||
|
||||
option "with-gtk+3", "Build the wireshark command with gtk+3"
|
||||
option "with-gtk+", "Build the wireshark command with gtk+"
|
||||
option "with-qt", "Build the wireshark-qt command (can be used with or without either GTK option)"
|
||||
|
@ -47,9 +53,11 @@ class Wireshark < Formula
|
|||
depends_on "qt" => :optional
|
||||
depends_on "gtk+3" => :optional
|
||||
depends_on "gtk+" => :optional
|
||||
depends_on "homebrew/dupes/libpcap" => :optional
|
||||
|
||||
def install
|
||||
args = ["--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}",
|
||||
"--with-gnutls"]
|
||||
|
||||
|
@ -58,6 +66,7 @@ class Wireshark < Formula
|
|||
args << "--with-qt" if build.with? "qt"
|
||||
args << "--with-gtk3" if build.with? "gtk+3"
|
||||
args << "--with-gtk2" if build.with? "gtk+"
|
||||
args << "--with-libcap=#{Formula["libpcap"].opt_prefix}" if build.with? "libpcap"
|
||||
|
||||
if build.head?
|
||||
args << "--disable-warnings-as-errors"
|
||||
|
@ -67,7 +76,7 @@ class Wireshark < Formula
|
|||
system "./configure", *args
|
||||
system "make"
|
||||
ENV.deparallelize # parallel install fails
|
||||
system "make install"
|
||||
system "make", "install"
|
||||
|
||||
if build.with? "headers"
|
||||
(include/"wireshark").install Dir["*.h"]
|
||||
|
|
Loading…
Reference in a new issue