New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80855


Ignore:
Timestamp:
07/18/11 23:28:38 (4 years ago)
Author:
dports@…
Message:

fuse4x, fuse4x-kext: install the fuse4x kext into
${prefix}/Library/Extensions rather than /System/Library/Extensions.

The library loads the kext using a setuid program, so it doesn't have
to go into /System/Library/Extensions (or any other particular place,
really.) We might as well keep it in ${prefix}, and avoid violating
mtree.

Location:
users/dports/ports/fuse
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • users/dports/ports/fuse/fuse4x-kext/Portfile

    r80505 r80855  
    4444default_variants    +universal 
    4545 
     46# kext destination: kext will be installed into ${kextdir}/fuse4x.kext. 
     47# 
     48# The kext is autoloaded by the library using load_fuse4x, so it 
     49# doesn't have to go into /System/Library/Extensions. It doesn't 
     50# matter where we put it, as long as it's kept in sync with the library. 
     51# 
     52# If updating the patchfile or ${kextdir}, must also update the 
     53# corresponding patch in the fuse4x port! 
     54patchfiles          patch-common_fuse_param.h.diff 
     55set kextdir        "${prefix}/Library/Extensions" 
     56post-patch { 
     57    reinplace "s|@@KEXTPATH@@|${kextdir}/fuse4x.kext|" ${worksrcpath}/common/fuse_param.h 
     58} 
     59 
    4660xcode.configuration Release 
    4761 
    48 destroot.violate_mtree  yes 
     62#destroot.violate_mtree  yes 
    4963destroot.asroot         yes 
    5064 
    5165destroot { 
    52     xinstall -d ${destroot}/System/Library/Extensions 
    53     file copy ${worksrcpath}/build/${xcode.configuration}/fuse4x.kext ${destroot}/System/Library/Extensions 
    54     file attributes ${destroot}/System/Library/Extensions/fuse4x.kext -owner root -group wheel -permissions rwxr-xr-x 
     66    xinstall -d ${destroot}${kextdir} 
     67    file copy ${worksrcpath}/build/${xcode.configuration}/fuse4x.kext ${destroot}${kextdir} 
     68    file attributes ${destroot}${kextdir}/fuse4x.kext -owner root -group wheel -permissions rwxr-xr-x 
    5569 
    56     xinstall -d ${destroot}/System/Library/Extensions/fuse4x.kext/Support 
    57     xinstall -o root -m 4755 ${worksrcpath}/build/${xcode.configuration}/load_fuse4x ${destroot}/System/Library/Extensions/fuse4x.kext/Support 
     70    xinstall -d ${destroot}${kextdir}/fuse4x.kext/Support 
     71    xinstall -o root -m 4755 ${worksrcpath}/build/${xcode.configuration}/load_fuse4x ${destroot}${kextdir}/fuse4x.kext/Support 
    5872} 
    5973 
  • users/dports/ports/fuse/fuse4x/Portfile

    r80505 r80855  
    3636git.url             git://github.com/drkp/fuse4x-fuse.git 
    3737git.branch          pu 
    38 patchfiles          patch-configure.in.diff 
     38patchfiles          patch-configure.in.diff \ 
     39                    patch-include_fuse_param.h.diff 
     40 
     41# kext destination: kext will be installed into ${kextdir}/fuse4x.kext. 
     42# 
     43# The kext is autoloaded by the library using load_fuse4x, so it 
     44# doesn't have to go into /System/Library/Extensions. It doesn't 
     45# matter where we put it, as long as it's kept in sync with the library. 
     46# 
     47# If updating the patchfile or ${kextdir}, must also update the 
     48# corresponding patch in the fuse4x-kext port! 
     49set kextdir        "${prefix}/Library/Extensions" 
     50post-patch { 
     51    reinplace "s|@@KEXTPATH@@|${kextdir}/fuse4x.kext|" ${worksrcpath}/include/fuse_param.h 
     52} 
    3953 
    4054configure.cflags-append -g -O0 
Note: See TracChangeset for help on using the changeset viewer.