Ticket #43248: patch-wireshark-Portfile.diff
File patch-wireshark-Portfile.diff, 6.3 KB (added by jul_bsd@…, 11 years ago) |
---|
-
net/wireshark/Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 name wireshark 5 version 1.10. 55 version 1.10.6 6 6 revision 0 7 7 categories net 8 8 license {GPL-2 GPL-3} … … 19 19 master_sites http://www.wireshark.org/download/src/ \ 20 20 http://www.wireshark.org/download/src/all-versions/ 21 21 22 checksums md5 a66894a62f05e1e7a3156a807f3296ea\23 sha1 ebbf4f8382fc8961c1fb7959727b3e6792e597c1\24 rmd160 e4db106c6977c25c91bc5f85fe2be13c29091a5522 checksums md5 c67435039d67ef1757bfff0ab88824ab \ 23 sha1 081a2daf85e3257d7a2699e84a330712e3e5b9bb \ 24 rmd160 3018f4d60d1ac86dfffd875a53373c85f5be44e8 25 25 26 26 use_bzip2 yes 27 27 … … 32 32 depends_build \ 33 33 port:pkgconfig 34 34 depends_lib \ 35 port:adns \ 36 port:libgcrypt \ 35 port:c-ares \ 37 36 port:libgeoip \ 38 37 path:lib/pkgconfig/glib-2.0.pc:glib2 \ 39 port:libsmi \40 port:lua \41 port:gnutls \42 port:gtk2 \43 38 port:openssl \ 44 39 port:portaudio \ 45 40 port:libpcap \ … … 47 42 port:zlib 48 43 49 44 configure.args \ 50 --with -libsmi=${prefix}\45 --without-libsmi \ 51 46 --disable-usr-local \ 52 --with -adns=${prefix}\53 --with out-c-ares\54 --with -geoip=${prefix}\55 --with -gnutls=yes \56 --with- libgcrypt-prefix=${prefix}\57 --with -lua=${prefix}\58 -- enable-ipv6 \47 --without-adns \ 48 --with-c-ares=${prefix} \ 49 --without-geoip \ 50 --without-gnutls \ 51 --with-gcrypt=no \ 52 --without-lua \ 53 --disable-ipv6 \ 59 54 --with-pcap=${prefix} \ 60 --with -ssl=${prefix}\55 --without-ssl \ 61 56 --with-zlib=${prefix} \ 62 57 --mandir=\\\${prefix}/share/man \ 63 58 --infodir=\\\${prefix}/share/info \ 64 --with -portaudio=${prefix}\59 --without-portaudio \ 65 60 --disable-warnings-as-errors \ 66 --with-krb5=${prefix} 61 --with-krb5=${prefix} \ 62 --disable-wireshark 67 63 68 64 configure.ldflags-append "-Wl,-search_paths_first" 69 65 … … 92 88 eval xinstall -m 644 [glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/ 93 89 } 94 90 91 post-configure { 92 reinplace "s|cp -pr \$(srcdir)/packaging/macosx/Wireshark.app /Applications|cp -pr \$(srcdir)/packaging/macosx/Wireshark.app ${destroot}${applications_dir}|" ${worksrcpath}/Makefile 93 } 94 95 95 if {[string match *llvm-gcc-4.2* ${configure.compiler}]} { 96 96 # see #32386 97 97 configure.cflags -fno-var-tracking 98 98 } 99 99 100 variant no_adns description {don't use adns library for async. dns resolution instead of the default c-ares library} { 101 configure.args-append --without-adns \ 102 --with-c-ares=${prefix} 103 configure.args-delete --with-adns=${prefix} \ 104 --without-c-ares 105 depends_lib-delete port:adns 106 depends_lib-append port:c-ares 100 notes " 101 To use wireshark as non-root user, you need to give user access to /dev/bpf* like this for the group admin: 102 (default is root:wheel and 600) 103 $ sudo /usr/bin/chgrp admin /dev/bpf*; 104 $ sudo /bin/chmod g+r /dev/bpf* 105 106 As an alternative, you can enabled variant setuid_root (not recommended). 107 " 108 109 default_variants +x11 +gnutls +libgcrypt +lua +libsmi +geoip +ssl +rtp 110 111 ## make: *** No rule to make target `ui/gtk/libgtkui.a', needed by `wireshark'. Stop. 112 variant gui { 113 build.target all osx-app 114 destroot.target install osx-install 115 } 116 117 variant adns description {use adns library for async. dns resolution instead of the default c-ares library} { 118 configure.args-delete --without-adns \ 119 --with-c-ares=${prefix} 120 configure.args-append --with-adns=${prefix} \ 121 --without-c-ares 122 depends_lib-append port:adns 123 depends_lib-delete port:c-ares 107 124 } 108 125 109 variant no_gnutls {110 configure.args- append--without-gnutls111 configure.args- delete--with-gnutls=yes112 depends_lib- deleteport:gnutls126 variant gnutls { 127 configure.args-delete --without-gnutls 128 configure.args-append --with-gnutls=yes 129 depends_lib-append port:gnutls 113 130 } 114 131 115 variant no_libgcrypt {116 configure.args- append--with-gcrypt=no117 configure.args- delete--with-libgcrypt-prefix=${prefix}118 depends_lib- deleteport:libgcrypt132 variant libgcrypt { 133 configure.args-delete --with-gcrypt=no 134 configure.args-append --with-libgcrypt-prefix=${prefix} 135 depends_lib-append port:libgcrypt 119 136 } 120 137 121 variant no_ipv6 {122 configure.args- append--disable-ipv6123 configure.args- delete--enable-ipv6138 variant ipv6 { 139 configure.args-delete --disable-ipv6 140 configure.args-append --enable-ipv6 124 141 } 125 142 126 variant no_lua {127 configure.args- append--without-lua128 configure.args- delete--with-lua=${prefix}129 depends_lib- deleteport:lua143 variant lua { 144 configure.args-delete --without-lua 145 configure.args-append --with-lua=${prefix} 146 depends_lib-append port:lua 130 147 } 131 148 132 variant no_libsmi {133 configure.args- append--without-libsmi134 configure.args- delete--with-libsmi=${prefix}135 depends_lib- deleteport:libsmi149 variant libsmi { 150 configure.args-delete --without-libsmi 151 configure.args-append --with-libsmi=${prefix} 152 depends_lib-append port:libsmi 136 153 } 137 154 138 variant no_geoip {139 configure.args- append--without-geoip140 configure.args- delete--with-geoip=${prefix}141 depends_lib- deleteport:libgeoip155 variant geoip { 156 configure.args-delete --without-geoip 157 configure.args-append --with-geoip=${prefix} 158 depends_lib-append port:libgeoip 142 159 } 143 160 144 161 ## 1.10.0 doesn't include python options in configure … … 161 178 ## configure.args-append --without-python 162 179 ## } 163 180 164 variant no_rtp description {removertp support} {165 configure.args- append--without-portaudio166 configure.args- delete--with-portaudio=${prefix}167 depends_lib- deleteport:portaudio181 variant rtp description {rtp support} { 182 configure.args-delete --without-portaudio 183 configure.args-append --with-portaudio=${prefix} 184 depends_lib-append port:portaudio 168 185 } 169 186 170 variant no_ssl {171 configure.args- append--without-ssl172 depends_lib- deleteport:openssl187 variant ssl { 188 configure.args-delete --without-ssl 189 depends_lib-append port:openssl 173 190 } 174 191 175 variant no_x11 {176 depends_lib- deleteport:gtk2177 configure.args- delete--disable-gtk2178 configure.args- append--disable-wireshark192 variant x11 { 193 depends_lib-append port:gtk2 194 configure.args-append --disable-gtk2 195 configure.args-delete --disable-wireshark 179 196 } 180 197 198 variant setuid_root description {install dumpcap binary as setuid root} { 199 configure.args-append --enable-setuid-install 200 destroot.asroot yes 201 install.asroot yes 202 } 181 203 182 204 # 183 205 ##EOF