Ticket #25220: libfreespace.diff

File libfreespace.diff, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

proposed patch

  • Portfile

     
    55
    66name                libfreespace
    77version             0.4
     8revision            1
    89set branch          [join [lrange [split [strsed ${version} {g/[^0-9.].*//}] .] 0 1] .]
    910categories          devel
    1011
     
    2930
    3031depends_lib         port:libusb
    3132
     33post-build {
     34    # Make the extension not world-writeable.
     35    fs-traverse item ${worksrcpath}/osx/FreespaceDeviceDriver.kext {
     36        if {[file isdirectory ${item}]} {
     37            set p 0755
     38        } else {
     39            set p 0644
     40        }
     41        file attributes ${item} -owner root -group wheel -permissions ${p}
     42    }
     43}
     44
    3245destroot.violate_mtree  yes
    3346
    3447post-destroot {
    3548    # Install Codeless .kext to prevent the OS X HID driver from trying to control the freespace interface
    3649    xinstall -d ${destroot}/System/Library/Extensions
    3750    file copy ${worksrcpath}/osx/FreespaceDeviceDriver.kext ${destroot}/System/Library/Extensions
    38     file attributes ${destroot}/System/Library/Extensions/FreespaceDeviceDriver.kext -owner root -group wheel -permissions rwxr-xr-x
    3951}
    4052
    4153post-activate {