Changeset 119125


Ignore:
Timestamp:
Apr 17, 2014, 10:29:01 PM (6 years ago)
Author:
dports@…
Message:

fuse4x-*: replaced_by osxfuse (#39456)

Location:
trunk/dports/fuse
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/fuse/fuse4x-framework/Portfile

    r114429 r119125  
    55PortGroup           xcode 1.0
    66
     7replaced_by         osxfuse
     8PortGroup           obsolete 1.0
     9
    710name                fuse4x-framework
    811version             0.9.2
    9 set tag             [string map {. _ } $version]
     12revision            1
    1013categories          fuse devel
    1114platforms           macosx
    1215maintainers         dports
    13 description         Objective-C framework for Fuse4X
    14 
    15 long_description    Fuse4X implements a mechanism that makes it          \
    16                     possible to implement a fully functional file        \
    17                     system in a user-space program on Mac OS X. It       \
    18                     aims to be API-compliant with the FUSE               \
    19                     (File-system in USErspace) mechanism that            \
    20                     originated on Linux.  Therefore, many existing       \
    21                     FUSE file systems become readily usable on Mac OS    \
    22                     X. This port provides a framework for writing        \
    23                     file systems in Objective-C.
    24 
    25 homepage            http://fuse4x.github.io/
    26 license             BSD
    27 master_sites        https://github.com/fuse4x/framework/tarball/fuse4x_${tag}
    28 
    29 checksums           sha256  d2fff85dcf150da1e2693689f0497e2918c4a7abb266f86f06148fe2af013782 \
    30                     rmd160  13b18364e0be9cae34e3f765a7aacc3b895ca167
    31 
    32 extract.mkdir       yes
    33 extract.post_args   "| tar --strip-components=1 -xf -"
    34 
    35 depends_lib         port:fuse4x
    36 
    37 post-patch {
    38     reinplace "s|-lfuse4x|-lfuse|" ${worksrcpath}/framework.xcodeproj/project.pbxproj
    39 }
    40 
    41 xcode.configuration Release
    42 xcode.build.settings    LIBRARY_SEARCH_PATHS='${prefix}/lib' \
    43                         HEADER_SEARCH_PATHS='${prefix}/include'
    44 
    45 destroot {
    46     xinstall -d ${destroot}/${frameworks_dir}
    47     file copy ${worksrcpath}/build/${xcode.configuration}/Fuse4X.framework \
    48               ${destroot}/${frameworks_dir}
    49 }
    50 
    51 livecheck.type      regex
    52 livecheck.url       ${homepage}
    53 livecheck.regex     {Fuse4X-([0-9.]+).dmg}
  • trunk/dports/fuse/fuse4x-kext/Portfile

    r114429 r119125  
    33
    44PortSystem          1.0
    5 PortGroup           xcode 1.0
     5
     6replaced_by         osxfuse
     7PortGroup           obsolete 1.0
    68
    79name                fuse4x-kext
    810version             0.9.2
    9 set tag             [string map {. _ } $version]
     11revision            1
    1012categories          fuse devel
    1113platforms           macosx
    1214maintainers         dports
    13 description         A kernel extension for Fuse4X
    14 
    15 long_description    Fuse4X implements a mechanism that makes it          \
    16                     possible to implement a fully functional file        \
    17                     system in a user-space program on Mac OS X. It       \
    18                     aims to be API-compliant with the FUSE               \
    19                     (File-system in USErspace) mechanism that            \
    20                     originated on Linux.  Therefore, many existing       \
    21                     FUSE file systems become readily usable on Mac OS    \
    22                     X. This port provides the dynamically loadable       \
    23                     kernel extension at the core of Fuse4X.
    24 
    25 homepage            http://fuse4x.github.io/
    26 license             BSD
    27 master_sites        https://github.com/fuse4x/kext/tarball/fuse4x_${tag}
    28 
    29 checksums           sha256  6755c61582667dfcb544ebe9b3b8292b18c235a9bdfa99e7d1081da9ed8c78d4 \
    30                     rmd160  543a548e0a90f9bee3a77adcc7ca4eadebf6b596
    31 
    32 extract.mkdir       yes
    33 extract.post_args   "| tar --strip-components=1 -xf -"
    34 
    35 # This port installs a kernel module, so it must be built for the same
    36 # architecture as the kernel. We don't have a way to get that;
    37 # build_arch is the userland architecture, which may be different
    38 # (e.g. 64-bit userland with 32-bit kernel). So build a universal
    39 # binary by default on Intel platforms. On PPC, there's only one
    40 # kernel, so don't try to build it ppc64 or universal.
    41 supported_archs     i386 x86_64 ppc
    42 if {${build_arch} eq "i386" || ${build_arch} eq "x86_64"} {
    43     default_variants    +universal
    44 }
    45 
    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!
    54 patchfiles          patch-common_fuse_param.h.diff
    55 set kextdir        "${prefix}/Library/Extensions"
    56 post-patch {
    57     reinplace "s|@@KEXTPATH@@|${kextdir}/fuse4x.kext|" ${worksrcpath}/common/fuse_param.h
    58 }
    59 
    60 xcode.configuration Release
    61 
    62 destroot.asroot     yes
    63 
    64 destroot {
    65     xinstall -d ${destroot}${kextdir}
    66     file copy ${worksrcpath}/build/${xcode.configuration}/fuse4x.kext ${destroot}${kextdir}
    67     file attributes ${destroot}${kextdir}/fuse4x.kext -owner root -group wheel -permissions rwxr-xr-x
    68 
    69     xinstall -d ${destroot}${kextdir}/fuse4x.kext/Support
    70     xinstall -o root -m 4755 ${worksrcpath}/build/${xcode.configuration}/load_fuse4x ${destroot}${kextdir}/fuse4x.kext/Support
    71 }
    72 
    73 
    74 variant trace description {Enable debug logging: logs all filesystem operations} {
    75     xcode.build.settings GCC_PREPROCESSOR_DEFINITIONS='FUSE4X_COUNT_MEMORY FUSE4X_DEBUG FUSE4X_TRACE_LK FUSE4X_TRACE_MSLEEP FUSE4X_TRACE_OP FUSE4X_TRACE_VNCACHE FUSE4X_SERIALIZE_LOGGING'
    76 }
    77 
    78 # We don't need to load the kext, because the fuse4x library will
    79 # autoload it when needed. However, if there's an existing version
    80 # loaded, we'd better unload it because it might be a different
    81 # version.
    82 #
    83 # Thus, check whether the kext is already loaded, and if so attempt to
    84 # unload it. If that fails, the user probably needs to unmount some
    85 # running filesystems; print a list.
    86 #
    87 # We do this both after deactivating an existing version (because the
    88 # user might be removing the port) and after activating a new version
    89 # (because the user might be upgrading from an installation that
    90 # didn't unload the kext).
    91 proc try_unload_kext {} {
    92     set kextid "org.fuse4x.kext.fuse4x"
    93     if {[string length [exec /usr/sbin/kextstat -lb $kextid]] > 0} {
    94         ui_msg "The Fuse4X kernel extension is already loaded. Attempting to unload it."
    95         if {![catch {exec /sbin/kextunload -b $kextid}]} {
    96             ui_msg "Successfully unloaded the previous installation of Fuse4X"
    97         } else {
    98             set mounted [exec /sbin/mount -t fuse4x]
    99             ui_warn "Unable to unload the existing Fuse4X kernel extension."
    100             ui_warn "Please unmount the following filesystems, and then run "
    101             ui_warn "`sudo kextunload -b $kextid`:"
    102             foreach line [split $mounted "\n"] {
    103                 regexp {on (/.*) \(fuse4x} $line -> mountpoint
    104                 ui_warn "  * $mountpoint"
    105             }
    106         }
    107     }
    108 }
    109 
    110 post-activate {
    111     try_unload_kext
    112 }
    113 
    114 post-deactivate {
    115     try_unload_kext
    116 }
    117 
    118 livecheck.type      regex
    119 livecheck.url       ${homepage}
    120 livecheck.regex     {Fuse4X-([0-9.]+).dmg}
  • trunk/dports/fuse/fuse4x/Portfile

    r114429 r119125  
    44PortSystem          1.0
    55
     6replaced_by         osxfuse
     7PortGroup           obsolete 1.0
     8
    69name                fuse4x
    710version             0.9.2
    8 revision            1
    9 set tag             [string map {. _ } $version]
     11revision            2
    1012categories          fuse devel
    1113platforms           macosx
    1214maintainers         dports
    13 description         A FUSE-Compliant File System Implementation Mechanism \
    14                     for Mac OS X
    15 
    16 long_description    Fuse4X implements a mechanism that makes it          \
    17                     possible to implement a fully functional file        \
    18                     system in a user-space program on Mac OS X. It       \
    19                     aims to be API-compliant with the FUSE               \
    20                     (File-system in USErspace) mechanism that            \
    21                     originated on Linux.  Therefore, many existing       \
    22                     FUSE file systems become readily usable on Mac OS    \
    23                     X. This port provides the user-space library and     \
    24                     header files for building filesystems.
    25 
    26 homepage            http://fuse4x.github.io/
    27 license             LGPL
    28 master_sites        https://github.com/fuse4x/fuse/tarball/fuse4x_${tag}
    29 
    30 checksums           sha256  82b7591d7079c1076737b3efbf16d61cc6e31bffaca45d29fa888d7847191f08 \
    31                     rmd160  d0356ecedc06b0ea6599e45023f0a95c8ee851e3
    32 
    33 extract.mkdir       yes
    34 extract.post_args   "| tar --strip-components=1 -xf -"
    35 
    36 patchfiles          patch-include_fuse_param.h.diff
    37 
    38 # kext destination: kext will be installed into ${kextdir}/fuse4x.kext.
    39 #
    40 # The kext is autoloaded by the library using load_fuse4x, so it
    41 # doesn't have to go into /System/Library/Extensions. It doesn't
    42 # matter where we put it, as long as it's kept in sync with the library.
    43 #
    44 # If updating the patchfile or ${kextdir}, must also update the
    45 # corresponding patch in the fuse4x-kext port!
    46 set kextdir        "${prefix}/Library/Extensions"
    47 post-patch {
    48     reinplace "s|@@KEXTPATH@@|${kextdir}/fuse4x.kext|" ${worksrcpath}/include/fuse_param.h
    49 
    50     # Fuse4X normally installs its library as libfuse4x.dylib to allow
    51     # it to co-exist with MacFUSE, but the ports are conflicting so we
    52     # don't need to worry about that. Instead, we'll install it as
    53     # libfuse.dylib so dependent ports don't need to be modified.
    54     reinplace "s|-lfuse4x|-lfuse|" ${worksrcpath}/fuse.pc.in
    55     reinplace "s|libfuse4x|libfuse|g" ${worksrcpath}/lib/Makefile.am
    56     reinplace "s|libfuse4x.la|libfuse.la|" ${worksrcpath}/example/Makefile.am
    57 
    58     # automake 1.13 compatibility (see #37451)
    59     file mkdir ${worksrcpath}/m4
    60     reinplace "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" ${worksrcpath}/configure.in
    61 }
    62 
    63 configure.cflags-append -D_DARWIN_USE_64_BIT_INODE
    64 configure.ldflags   -framework CoreFoundation
    65 
    66 use_autoreconf      yes
    67 autoreconf.args     -fvi
    68 
    69 depends_build       port:pkgconfig port:autoconf port:automake port:libtool
    70 depends_lib         port:libiconv
    71 depends_run         port:fuse4x-kext
    72 
    73 livecheck.type      regex
    74 livecheck.url       ${homepage}
    75 livecheck.regex     {Fuse4X-([0-9.]+).dmg}
  • trunk/dports/fuse/osxfuse/Portfile

    r119118 r119125  
    55
    66name                osxfuse
    7 conflicts           fuse4x
    87version             2.6.4
    98categories          fuse devel
Note: See TracChangeset for help on using the changeset viewer.