<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[145542] trunk/dports/net</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/145542">145542</a></dd>
<dt>Author</dt> <dd>ricci@macports.org</dd>
<dt>Date</dt> <dd>2016-02-08 21:34:36 -0800 (Mon, 08 Feb 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>add Wireshark 2.0.1 as a new port, wireshark2, so as to minimize disruption to current
  wireshark (1.x) port users.
based on Portfiles from #40782</pre>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/net/wireshark2/</li>
<li><a href="#trunkdportsnetwireshark2Portfile">trunk/dports/net/wireshark2/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsnetwireshark2Portfile"></a>
<div class="addfile"><h4>Added: trunk/dports/net/wireshark2/Portfile (0 => 145542)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/net/wireshark2/Portfile                                (rev 0)
+++ trunk/dports/net/wireshark2/Portfile        2016-02-09 05:34:36 UTC (rev 145542)
</span><span class="lines">@@ -0,0 +1,211 @@
</span><ins>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           cmake 1.0
+
+name                wireshark2
+version             2.0.1
+categories          net
+license             {GPL-2 GPL-3}
+maintainers         darkart.com:opendarwin.org
+description         Graphical network analyzer and capture tool
+homepage            https://wireshark.org/
+platforms           darwin
+
+long_description    A network analyzer that lets you capture and \
+                    interactively browse Ethernet frames. \
+                    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_bzip2           yes
+
+distfiles           wireshark-${version}${extract.suffix}
+
+worksrcdir          wireshark-${version}
+
+checksums           sha256  c9bd07dd0d0045d6ca7537390a1afbcdf33716d193ea7d7084ae4f6c30b683ab \
+                    rmd160  0a83fb6d2c74005840492d0811a4eca29b565602 \
+                    sha1    6703221128305ac33802f0da13d368476ce90688
+
+conflicts           wireshark-devel wireshark
+
+depends_build-append \
+                    port:pkgconfig
+
+depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
+                    path:lib/libssl.dylib:openssl \
+                    port:libpcap
+
+configure.args-append \
+                    -DCMAKE_INSTALL_RPATH:STRING=&quot;${prefix}/lib&quot; \
+                    -DCMAKE_INSTALL_NAME_DIR:STRING=&quot;${prefix}/lib&quot; \
+                    -DENABLE_APPLICATION_BUNDLE=OFF \
+                    -DENABLE_ADNS=OFF \
+                    -DENABLE_CARES=OFF \
+                    -DENABLE_GCRYPT=OFF \
+                    -DENABLE_GEOIP=OFF \
+                    -DENABLE_GNUTLS=OFF \
+                    -DENABLE_KERBEROS=OFF \
+                    -DENABLE_LUA=OFF \
+                    -DENABLE_NETLINK=OFF \
+                    -DENABLE_PORTAUDIO=OFF \
+                    -DENABLE_SMI=OFF \
+                    -DENABLE_ZLIB=OFF \
+                    -DBUILD_wireshark_gtk=OFF \
+                    -DBUILD_wireshark=OFF
+
+variant qt4 conflicts no_gui qt5 gtk2 gtk3 description {Build wireshark with a qt4 GUI} {
+    PortGroup               qt4 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=OFF
+
+    # post-destroot {
+    #     ln -s ${prefix}/bin/dumpcap ${destroot}/${prefix}/bin/wireshark.app/Contents/MacOS/
+    #     file mkdir ${destroot}/${prefix}/bin/wireshark.app/Contents/PlugIns
+    #     ln -s ${prefix}/lib/wireshark/plugins/${version} ${destroot}/${prefix}/bin/wireshark.app/Contents/PlugIns/wireshark
+    #     file copy ${worksrcpath}/packaging/macosx/Resources ${destroot}/${prefix}/bin/wireshark.app/Contents/
+    #     file delete ${destroot}/${prefix}/bin/wireshark.app/Contents/Info.plist
+    #     file copy ${worksrcpath}/packaging/macosx/Info.plist ${destroot}/${prefix}/bin/wireshark.app/Contents/
+    #     move ${destroot}/${prefix}/bin/wireshark.app ${destroot}${applications_dir}/Wireshark.app
+    # }
+}
+
+variant qt5 conflicts no_gui qt4 gtk2 gtk3 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
+    depends_lib-append      port:qt5-qtmacextras port:qt5-qtmultimedia port:qt5-qtsvg port:qt5-qttranslations
+
+    # post-destroot {
+    #     ln -s ${prefix}/bin/dumpcap ${destroot}/${prefix}/bin/wireshark.app/Contents/MacOS/
+    #     file mkdir ${destroot}/${prefix}/bin/wireshark.app/Contents/PlugIns
+    #     ln -s ${prefix}/lib/wireshark/plugins/${version} ${destroot}/${prefix}/bin/wireshark.app/Contents/PlugIns/wireshark
+    #     file copy ${worksrcpath}/packaging/macosx/Resources ${destroot}/${prefix}/bin/wireshark.app/Contents/
+    #     file delete ${destroot}/${prefix}/bin/wireshark.app/Contents/Info.plist
+    #     file copy ${worksrcpath}/packaging/macosx/Info.plist ${destroot}/${prefix}/bin/wireshark.app/Contents/
+    #     move ${destroot}/${prefix}/bin/wireshark.app ${destroot}${applications_dir}/Wireshark.app
+    # }
+    post-destroot {
+        move ${destroot}/${prefix}/bin/Wireshark.app ${destroot}${applications_dir}/Wireshark.app
+    }
+}
+
+variant gtk2 conflicts no_gui qt4 qt5 gtk3 description {Build wireshark with a gtk2 GUI} {
+    configure.args-replace  -DBUILD_wireshark_gtk=OFF -DBUILD_wireshark_gtk=ON
+    configure.args-append   -DENABLE_GTK3=OFF
+    depends_lib-append      port:gtk2
+    
+    post-destroot {
+            file mkdir ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS
+            ln -s ${prefix}/bin/wireshark-gtk ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS/Wireshark
+            ln -s ${prefix}/bin/dumpcap ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS/dumpcap
+            file mkdir ${destroot}/${applications_dir}/Wireshark.app/Contents/PlugIns
+            ln -s ${prefix}/lib/wireshark/plugins/${version} ${destroot}/${applications_dir}/Wireshark.app/Contents/PlugIns/wireshark
+            file copy ${worksrcpath}/packaging/macosx/Resources ${destroot}/${applications_dir}/Wireshark.app/Contents/
+            file copy ${worksrcpath}/packaging/macosx/Info.plist ${destroot}/${applications_dir}/Wireshark.app/Contents/
+    }
+}
+variant gtk3 conflicts no_gui qt4 qt5 gtk2 description {Build wireshark with a gtk3 GUI} {
+    configure.args-replace  -DBUILD_wireshark_gtk=OFF -DBUILD_wireshark_gtk=ON
+    configure.args-append   -DENABLE_GTK3=ON
+    depends_lib-append      port:gtk3 \
+                            port:adwaita-icon-theme
+    post-destroot {
+        file mkdir ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS
+        ln -s ${prefix}/bin/wireshark-gtk ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS/Wireshark
+        ln -s ${prefix}/bin/dumpcap ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS/dumpcap
+        file mkdir ${destroot}/${applications_dir}/Wireshark.app/Contents/PlugIns
+        ln -s ${prefix}/lib/wireshark/plugins/${version} ${destroot}/${applications_dir}/Wireshark.app/Contents/PlugIns/wireshark
+        file copy ${worksrcpath}/packaging/macosx/Resources ${destroot}/${applications_dir}/Wireshark.app/Contents/
+        file copy ${worksrcpath}/packaging/macosx/Info.plist ${destroot}/${applications_dir}/Wireshark.app/Contents/
+    }
+}
+
+variant no_gui conflicts qt4 qt5 gtk2 gtk3 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=&quot;-lk5crypto&quot;
+    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 qt4] &amp;&amp; ![variant_isset qt5] &amp;&amp; ![variant_isset gtk2] &amp;&amp; ![variant_isset gtk3] &amp;&amp; ![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}/ color.h 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     &quot;Stable Release \\((\\d+(?:\\.\\d+)*)&quot;
+
+#
+##EOF
</ins><span class="cx">Property changes on: trunk/dports/net/wireshark2/Portfile
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
</div>

</body>
</html>