Ticket #26293: Portfile.withLaunchdChmodBPF.diff

File Portfile.withLaunchdChmodBPF.diff, 1.4 KB (added by ghosthound, 13 years ago)

diff to wireshark Portfile to add a launchd-based Chmodbpf equivalent

  • Portfile

    old new  
    1 # $Id: Portfile 79072 2011-06-01 05:07:20Z ricci@macports.org $
     1# $Id: Portfile 78069 2011-04-22 08:11:59Z ryandesign@macports.org $
    22
    33PortSystem 1.0
    44name            wireshark
     
    6464        eval xinstall -m 644 [glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/
    6565        eval xinstall -m 644 [glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/
    6666        eval xinstall -m 644 [glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/
     67        ## chmod bpf LaunchDaemons item:
     68        xinstall -d ${destroot}${prefix}/Library/LaunchDaemons/
     69        xinstall -m 644 ${filespath}/org.macports.wireshark-chmodbpf.plist ${destroot}${prefix}/Library/LaunchDaemons/
     70        xinstall -d ${destroot}/Library/LaunchDaemons/
     71        ln -s ${prefix}/Library/LaunchDaemons/org.macports.wireshark-chmodbpf.plist ${destroot}/Library/LaunchDaemons/
     72}
     73
     74variant no_chmodbpf description {do not install a startup script that modifies /dev/bpf*} {
     75        pre-destroot-delete     xinstall -d ${destroot}${prefix}/Library/LaunchDaemons/
     76        pre-destroot-delete     xinstall -m 644 -W ${filespath}/org.macports.wireshark-chmodbpf.plist ${destroot}${prefix}/Library/LaunchDaemons/
    6777}
    6878
    6979variant adns description {use adns library for async. dns resolution instead of the default c-ares library} {