diff options
Diffstat (limited to 'homebrew/wireshark')
-rw-r--r-- | homebrew/wireshark/.beer | 88 | ||||
-rw-r--r-- | homebrew/wireshark/.make.sh-auto | 13 | ||||
-rw-r--r-- | homebrew/wireshark/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/wireshark/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/wireshark/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/wireshark/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/wireshark/download.sh | 1 |
7 files changed, 106 insertions, 0 deletions
diff --git a/homebrew/wireshark/.beer b/homebrew/wireshark/.beer new file mode 100644 index 000000000..19c4a1a54 --- /dev/null +++ b/homebrew/wireshark/.beer @@ -0,0 +1,88 @@ +{ + "name": "Wireshark", + "description": "Graphical network analyzer and capture tool", + "url": "https://www.wireshark.org/download/src/all-versions/wireshark-2.6.6.tar.xz", + "mirror": "https://1.eu.dl.wireshark.org/src/wireshark-2.6.6.tar.xz", + "homepage": "https://www.wireshark.org", + "depends": [ + { + "depend": "cmake", + "build-depend": true + }, + { + "depend": "c-ares", + "build-depend": false + }, + { + "depend": "glib", + "build-depend": false + }, + { + "depend": "gnutls", + "build-depend": false + }, + { + "depend": "libgcrypt", + "build-depend": false + }, + { + "depend": "libmaxminddb", + "build-depend": false + }, + { + "depend": "libsmi", + "build-depend": false + }, + { + "depend": "libssh", + "build-depend": false + }, + { + "depend": "lua@5.1", + "build-depend": false + }, + { + "depend": "nghttp2", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [], + "install": [ + "args = std_cmake_args + %W[", + "-DENABLE_CARES=ON", + "-DENABLE_GNUTLS=ON", + "-DENABLE_MAXMINDDB=ON", + "-DBUILD_wireshark_gtk=OFF", + "-DENABLE_PORTAUDIO=OFF", + "-DENABLE_LUA=ON", + "-DLUA_INCLUDE_DIR=#{Formula[\"lua@5.1\"].opt_include}/lua-5.1", + "-DLUA_LIBRARY=#{Formula[\"lua@5.1\"].opt_lib}/liblua5.1.dylib", + "-DCARES_INCLUDE_DIR=#{Formula[\"c-ares\"].opt_include}", + "-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", + "-DBUILD_wireshark=OFF", + "-DENABLE_APPLICATION_BUNDLE=OFF", + "-DENABLE_QT5=OFF", + "]", + "system \"cmake\", *args, \".\"", + "system \"make\", \"install\"", + "(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\"]" + ], + "version": "2.6.6", + "file": "wireshark.rb" +}
\ No newline at end of file diff --git a/homebrew/wireshark/.make.sh-auto b/homebrew/wireshark/.make.sh-auto new file mode 100644 index 000000000..608d8494d --- /dev/null +++ b/homebrew/wireshark/.make.sh-auto @@ -0,0 +1,13 @@ +pkg:setup +args = std_cmake_args + %W[-DENABLE_CARES=ON -DENABLE_GNUTLS=ON -DENABLE_MAXMINDDB=ON -DBUILD_wireshark_gtk=OFF -DENABLE_PORTAUDIO=OFF -DENABLE_LUA=ON -DLUA_INCLUDE_DIR=#{Formula["lua@5.1"].opt_include}/lua-5.1 -DLUA_LIBRARY=#{Formula["lua@5.1"].opt_lib}/liblua5.1.dylib -DCARES_INCLUDE_DIR=#{Formula["c-ares"].opt_include} -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 -DBUILD_wireshark=OFF -DENABLE_APPLICATION_BUNDLE=OFF -DENABLE_QT5=OFF ] +cmake *args . +make DESTDIR=${PKG_DEST} install +(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"] diff --git a/homebrew/wireshark/_metadata/description b/homebrew/wireshark/_metadata/description new file mode 100644 index 000000000..20463aea7 --- /dev/null +++ b/homebrew/wireshark/_metadata/description @@ -0,0 +1 @@ +Graphical network analyzer and capture tool diff --git a/homebrew/wireshark/_metadata/homepage b/homebrew/wireshark/_metadata/homepage new file mode 100644 index 000000000..8843e907e --- /dev/null +++ b/homebrew/wireshark/_metadata/homepage @@ -0,0 +1 @@ +https://www.wireshark.org diff --git a/homebrew/wireshark/_metadata/name b/homebrew/wireshark/_metadata/name new file mode 100644 index 000000000..d758ebdbc --- /dev/null +++ b/homebrew/wireshark/_metadata/name @@ -0,0 +1 @@ +Wireshark diff --git a/homebrew/wireshark/_metadata/version b/homebrew/wireshark/_metadata/version new file mode 100644 index 000000000..338a5b5d8 --- /dev/null +++ b/homebrew/wireshark/_metadata/version @@ -0,0 +1 @@ +2.6.6 diff --git a/homebrew/wireshark/download.sh b/homebrew/wireshark/download.sh new file mode 100755 index 000000000..3051be89a --- /dev/null +++ b/homebrew/wireshark/download.sh @@ -0,0 +1 @@ +wget https://www.wireshark.org/download/src/all-versions/wireshark-2.6.6.tar.xz || wget https://1.eu.dl.wireshark.org/src/wireshark-2.6.6.tar.xz
\ No newline at end of file |