Ticket #52837: Portfile-wireshark2.diff

File Portfile-wireshark2.diff, 4.0 KB (added by Schamschula (Marius Schamschula), 8 years ago)
  • Portfile

    old new  
    55PortGroup           cmake 1.0
    66
    77name                wireshark2
    8 version             2.0.5
     8version             2.2.1
    99revision            0
    1010categories          net
    1111license             {GPL-2 GPL-3}
     
    2828
    2929worksrcdir          wireshark-${version}
    3030
    31 checksums           sha256  0ce0241330828973f5b4efee422a3760cab8ce0b41e7721c4b9fd185be1bb10b \
    32                     rmd160  6b6755986c23fd195ddda9344d340a132439420c \
    33                     sha1    ab77c632d8babf731bf0ecac0876fe3ff2923d04
     31checksums           sha256  900e22af04c8b35e0d02a25a360ab1fb7cfe5ac18fc48a9afd75a7103e569149 \
     32                    rmd160  46214dad4b4ac3b9f1f3f8fc95192d0cc1e3377d \
     33                    sha1    fe07ab3582f39111ce5c78f5de6f44a8667000ac
    3434
    3535conflicts           wireshark-devel wireshark
    3636
     
    7474    #     file copy ${worksrcpath}/packaging/macosx/Info.plist ${destroot}/${prefix}/bin/wireshark.app/Contents/
    7575    #     move ${destroot}/${prefix}/bin/wireshark.app ${destroot}${applications_dir}/Wireshark.app
    7676    # }
     77    post-destroot {
     78        move ${destroot}/${prefix}/bin/Wireshark.app ${destroot}${applications_dir}/Wireshark.app
     79    }
    7780}
    7881
    7982variant qt5 conflicts no_gui qt4 gtk2 gtk3 description {Build wireshark with a qt5 GUI} {
     
    102105    configure.args-append   -DENABLE_GTK3=OFF
    103106    depends_lib-append      port:gtk2
    104107   
    105     post-destroot {
    106             file mkdir ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS
    107             ln -s ${prefix}/bin/wireshark-gtk ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS/Wireshark
    108             ln -s ${prefix}/bin/dumpcap ${destroot}/${applications_dir}/Wireshark.app/Contents/MacOS/dumpcap
    109             file mkdir ${destroot}/${applications_dir}/Wireshark.app/Contents/PlugIns
    110             ln -s ${prefix}/lib/wireshark/plugins/${version} ${destroot}/${applications_dir}/Wireshark.app/Contents/PlugIns/wireshark
    111             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    # }
    114117}
    115118variant gtk3 conflicts no_gui qt4 qt5 gtk2 description {Build wireshark with a gtk3 GUI} {
    116119    configure.args-replace  -DBUILD_wireshark_gtk=OFF -DBUILD_wireshark_gtk=ON
     
    195198    xinstall -d ${destroot}${prefix}/include/wireshark/epan/dissectors/
    196199    xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/
    197200    xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/
    198     xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/
     201    xinstall -m 644 -W ${worksrcpath}/ config.h register.h ${destroot}${prefix}/include/wireshark/
    199202    xinstall -m 644 {*}[glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/
    200203    xinstall -m 644 {*}[glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/
    201204    xinstall -m 644 {*}[glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/