Ticket #25220: libfreespace.diff
File libfreespace.diff, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
Portfile
5 5 6 6 name libfreespace 7 7 version 0.4 8 revision 1 8 9 set branch [join [lrange [split [strsed ${version} {g/[^0-9.].*//}] .] 0 1] .] 9 10 categories devel 10 11 … … 29 30 30 31 depends_lib port:libusb 31 32 33 post-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 32 45 destroot.violate_mtree yes 33 46 34 47 post-destroot { 35 48 # Install Codeless .kext to prevent the OS X HID driver from trying to control the freespace interface 36 49 xinstall -d ${destroot}/System/Library/Extensions 37 50 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-x39 51 } 40 52 41 53 post-activate {