Ticket #52837: Portfile-wireshark2.diff
File Portfile-wireshark2.diff, 4.0 KB (added by Schamschula (Marius Schamschula), 8 years ago) |
---|
-
Portfile
old new 5 5 PortGroup cmake 1.0 6 6 7 7 name wireshark2 8 version 2. 0.58 version 2.2.1 9 9 revision 0 10 10 categories net 11 11 license {GPL-2 GPL-3} … … 28 28 29 29 worksrcdir wireshark-${version} 30 30 31 checksums sha256 0ce0241330828973f5b4efee422a3760cab8ce0b41e7721c4b9fd185be1bb10b\32 rmd160 6b6755986c23fd195ddda9344d340a132439420c\33 sha1 ab77c632d8babf731bf0ecac0876fe3ff2923d0431 checksums sha256 900e22af04c8b35e0d02a25a360ab1fb7cfe5ac18fc48a9afd75a7103e569149 \ 32 rmd160 46214dad4b4ac3b9f1f3f8fc95192d0cc1e3377d \ 33 sha1 fe07ab3582f39111ce5c78f5de6f44a8667000ac 34 34 35 35 conflicts wireshark-devel wireshark 36 36 … … 74 74 # file copy ${worksrcpath}/packaging/macosx/Info.plist ${destroot}/${prefix}/bin/wireshark.app/Contents/ 75 75 # move ${destroot}/${prefix}/bin/wireshark.app ${destroot}${applications_dir}/Wireshark.app 76 76 # } 77 post-destroot { 78 move ${destroot}/${prefix}/bin/Wireshark.app ${destroot}${applications_dir}/Wireshark.app 79 } 77 80 } 78 81 79 82 variant qt5 conflicts no_gui qt4 gtk2 gtk3 description {Build wireshark with a qt5 GUI} { … … 102 105 configure.args-append -DENABLE_GTK3=OFF 103 106 depends_lib-append port:gtk2 104 107 105 post-destroot {106 file mkdir ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS107 ln -s ${prefix}/bin/wireshark-gtk ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS/Wireshark108 ln -s ${prefix}/bin/dumpcap ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS/dumpcap109 file mkdir ${destroot}/${applications_dir}/Wireshark.app/Contents/PlugIns110 ln -s ${prefix}/lib/wireshark/plugins/${version} ${destroot}/${applications_dir}/Wireshark.app/Contents/PlugIns/wireshark111 file copy ${worksrcpath}/packaging/macosx/Resources ${destroot}/${applications_dir}/Wireshark.app/Contents/112 file copy ${worksrcpath}/packaging/macosx/Info.plist ${destroot}/${applications_dir}/Wireshark.app/Contents/113 }108 # post-destroot { 109 # file mkdir ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS 110 # ln -s ${prefix}/bin/wireshark-gtk ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS/Wireshark 111 # ln -s ${prefix}/bin/dumpcap ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS/dumpcap 112 # file mkdir ${destroot}/${applications_dir}/Wireshark.app/Contents/PlugIns 113 # ln -s ${prefix}/lib/wireshark/plugins/${version} ${destroot}/${applications_dir}/Wireshark.app/Contents/PlugIns/wireshark 114 # file copy ${worksrcpath}/packaging/macosx/Resources ${destroot}/${applications_dir}/Wireshark.app/Contents/ 115 # file copy ${worksrcpath}/packaging/macosx/Info.plist ${destroot}/${applications_dir}/Wireshark.app/Contents/ 116 # } 114 117 } 115 118 variant gtk3 conflicts no_gui qt4 qt5 gtk2 description {Build wireshark with a gtk3 GUI} { 116 119 configure.args-replace -DBUILD_wireshark_gtk=OFF -DBUILD_wireshark_gtk=ON … … 195 198 xinstall -d ${destroot}${prefix}/include/wireshark/epan/dissectors/ 196 199 xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/ 197 200 xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/ 198 xinstall -m 644 -W ${worksrcpath}/ co lor.h config.h register.h ${destroot}${prefix}/include/wireshark/201 xinstall -m 644 -W ${worksrcpath}/ config.h register.h ${destroot}${prefix}/include/wireshark/ 199 202 xinstall -m 644 {*}[glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/ 200 203 xinstall -m 644 {*}[glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/ 201 204 xinstall -m 644 {*}[glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/