|
|
@@ -5,7 +5,7 @@ PortGroup cmake 1.0 |
|
|
|
|
|
name wireshark24 |
|
|
version 2.4.14 |
|
|
revision 1 |
|
|
revision 2 |
|
|
categories net |
|
|
license {GPL-2 GPL-3} |
|
|
maintainers darkart.com:opendarwin.org |
|
|
@@ -18,145 +18,5 @@ long_description A network analyzer that lets you capture and \ |
|
|
Packet data can be read from a file, or live from a local \ |
|
|
network interface. |
|
|
|
|
|
master_sites https://www.wireshark.org/download/src/ \ |
|
|
https://www.wireshark.org/download/src/all-versions/ |
|
|
|
|
|
use_xz yes |
|
|
|
|
|
distfiles wireshark-${version}${extract.suffix} |
|
|
|
|
|
worksrcdir wireshark-${version} |
|
|
|
|
|
checksums sha256 0e616f5d75888995e608878e1bb8b753c80608385336c0d492a776c2af11b09b \ |
|
|
rmd160 062fc0b2f65f9f65826485b493dcd9297f59c72b \ |
|
|
sha1 c454fb7db5cf6f8b631be83f2e7eb5b0a8580fe1 \ |
|
|
size 29167308 |
|
|
|
|
|
conflicts wireshark-devel wireshark wireshark2 wireshark22 wireshark3 |
|
|
|
|
|
depends_build-append \ |
|
|
port:pkgconfig |
|
|
|
|
|
depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ |
|
|
path:lib/libssl.dylib:openssl \ |
|
|
port:libpcap \ |
|
|
port:lz4 |
|
|
|
|
|
configure.args-append \ |
|
|
-DCMAKE_INSTALL_RPATH:STRING="${prefix}/lib" \ |
|
|
-DCMAKE_INSTALL_NAME_DIR:STRING="${prefix}/lib" \ |
|
|
-DENABLE_APPLICATION_BUNDLE=OFF \ |
|
|
-DENABLE_ADNS=OFF \ |
|
|
-DENABLE_CARES=OFF \ |
|
|
-DENABLE_GCRYPT=OFF \ |
|
|
-DENABLE_GEOIP=OFF \ |
|
|
-DENABLE_GNUTLS=OFF \ |
|
|
-DENABLE_KERBEROS=OFF \ |
|
|
-DENABLE_LIBXML2=OFF \ |
|
|
-DENABLE_LUA=OFF \ |
|
|
-DENABLE_LZ4=ON \ |
|
|
-DENABLE_NETLINK=OFF \ |
|
|
-DENABLE_PORTAUDIO=OFF \ |
|
|
-DENABLE_SMI=OFF \ |
|
|
-DENABLE_SNAPPY=OFF \ |
|
|
-DENABLE_ZLIB=OFF \ |
|
|
-DBUILD_wireshark=OFF |
|
|
|
|
|
variant qt5 conflicts no_gui description {Build wireshark with a qt5 GUI} { |
|
|
PortGroup qt5 1.0 |
|
|
configure.args-replace -DENABLE_APPLICATION_BUNDLE=OFF -DENABLE_APPLICATION_BUNDLE=ON |
|
|
configure.args-replace -DBUILD_wireshark=OFF -DBUILD_wireshark=ON |
|
|
configure.args-append -DENABLE_QT5=ON |
|
|
qt5.depends_component qtbase \ |
|
|
qtmacextras \ |
|
|
qtmultimedia \ |
|
|
qtsvg \ |
|
|
qttranslations |
|
|
|
|
|
post-destroot { |
|
|
move ${destroot}/${prefix}/bin/Wireshark.app ${destroot}${applications_dir}/Wireshark.app |
|
|
} |
|
|
} |
|
|
|
|
|
variant no_gui conflicts qt5 description {do not build the wireshark GUI} { |
|
|
## initial settings (above) handle this |
|
|
} |
|
|
|
|
|
variant adns conflicts cares description {use adns library for async. dns resolution} { |
|
|
configure.args-replace -DENABLE_ADNS=OFF -DENABLE_ADNS=ON |
|
|
depends_lib-append port:adns |
|
|
} |
|
|
|
|
|
variant portaudio description {Build with PortAudio support} { |
|
|
configure.args-replace -DENABLE_PORTAUDIO=OFF -DENABLE_PORTAUDIO=ON |
|
|
depends_lib-append port:portaudio |
|
|
} |
|
|
|
|
|
variant zlib description {Build with zlib compression support} { |
|
|
configure.args-replace -DENABLE_ZLIB=OFF -DENABLE_ZLIB=ON |
|
|
depends_lib-append port:zlib |
|
|
} |
|
|
|
|
|
variant lua description {Build with Lua dissector support} { |
|
|
configure.args-replace -DENABLE_LUA=OFF -DENABLE_LUA=ON |
|
|
depends_lib-append port:lua52 |
|
|
} |
|
|
|
|
|
variant libsmi description {Build with libsmi snmp support} { |
|
|
configure.args-replace -DENABLE_SMI=OFF -DENABLE_SMI=ON |
|
|
depends_lib-append port:libsmi |
|
|
} |
|
|
|
|
|
variant gnutls description {Build with GNU TLS support} { |
|
|
configure.args-replace -DENABLE_GNUTLS=OFF -DENABLE_GNUTLS=ON |
|
|
depends_lib-append port:gnutls |
|
|
} |
|
|
|
|
|
variant libgcrypt description {Build with GNU crypto support} { |
|
|
configure.args-replace -DENABLE_GCRYPT=OFF -DENABLE_GCRYPT=ON |
|
|
depends_lib-append port:libgcrypt |
|
|
} |
|
|
|
|
|
variant cares conflicts adns description description {Build with c-ares support} { |
|
|
configure.args-replace -DENABLE_CARES=OFF -DENABLE_CARES=ON |
|
|
depends_lib-append port:c-ares |
|
|
} |
|
|
|
|
|
variant kerberos5 description {Build with Kerberos support} { |
|
|
configure.args-replace -DENABLE_KERBEROS=OFF -DENABLE_KERBEROS=ON \ |
|
|
configure.args-append -DCMAKE_SHARED_LINKER_FLAGS="-lk5crypto" |
|
|
depends_lib-append port:kerberos5 |
|
|
} |
|
|
|
|
|
variant geoip description {Build with GeoIP support} { |
|
|
configure.args-replace -DENABLE_GEOIP=OFF -DENABLE_GEOIP=ON |
|
|
depends_lib-append port:libgeoip |
|
|
} |
|
|
|
|
|
default_variants +portaudio +zlib +libsmi +gnutls +libgcrypt +cares +geoip +kerberos5 |
|
|
|
|
|
if {![variant_isset qt5] && ![variant_isset no_gui]} { |
|
|
default_variants-append +qt5 |
|
|
} |
|
|
|
|
|
post-destroot { |
|
|
xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/ |
|
|
xinstall -d ${destroot}${prefix}/include/wireshark/epan/dfilter/ |
|
|
xinstall -d ${destroot}${prefix}/include/wireshark/epan/dissectors/ |
|
|
xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/ |
|
|
xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/ |
|
|
xinstall -m 644 -W ${worksrcpath}/ config.h register.h ${destroot}${prefix}/include/wireshark/ |
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/ |
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/ |
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/ |
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/ |
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/ |
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/ |
|
|
} |
|
|
|
|
|
livecheck.type regex |
|
|
livecheck.url ${homepage}download.html |
|
|
livecheck.regex "Stable Release \\((\\d+(?:\\.\\d+)*)" |
|
|
|
|
|
# |
|
|
##EOF |
|
|
replaced_by wireshark3 |
|
|
PortGroup obsolete 1.0 |