diff options
| author | Dominyk Tiller | 2014-11-20 17:36:01 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-11-20 18:03:45 +0000 |
| commit | 9c255d7db70b0ca7b456c18524b3534d6e362dee (patch) | |
| tree | db8ea8a968ace376d272066e1658a50f87a1f28f /Library | |
| parent | 41a08f2cdc810cc5f466d52568d40e6db1e98df1 (diff) | |
| download | homebrew-9c255d7db70b0ca7b456c18524b3534d6e362dee.tar.bz2 | |
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 #34347.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/wireshark.rb | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Library/Formula/wireshark.rb b/Library/Formula/wireshark.rb index 371df4f86..bafe20f7e 100644 --- a/Library/Formula/wireshark.rb +++ b/Library/Formula/wireshark.rb @@ -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"] |
