1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name fuse4x-kext |
---|
7 | version 0.8.6 |
---|
8 | revision 1 |
---|
9 | categories fuse devel |
---|
10 | platforms macosx |
---|
11 | maintainers dports |
---|
12 | description A kernel extension for Fuse4X |
---|
13 | |
---|
14 | long_description Fuse4X implements a mechanism that makes it possible to \ |
---|
15 | implement a fully functional file system in a user-space \ |
---|
16 | program on Mac OS X. It aims to be API-compliant with \ |
---|
17 | the FUSE (File-system in USErspace) mechanism that \ |
---|
18 | originated on Linux. Therefore, many existing FUSE file \ |
---|
19 | systems become readily usable on Mac OS X. The core of \ |
---|
20 | Fuse4X is in a dynamically loadable kernel extension. |
---|
21 | |
---|
22 | homepage http://fuse4x.org/ |
---|
23 | license BSD |
---|
24 | fetch.type git |
---|
25 | git.url git://github.com/fuse4x/kext.git |
---|
26 | git.branch fuse4x_0_8_6 |
---|
27 | |
---|
28 | use_configure no |
---|
29 | build.cmd xcodebuild |
---|
30 | build.target build |
---|
31 | |
---|
32 | destroot.violate_mtree yes |
---|
33 | |
---|
34 | post-destroot { |
---|
35 | xinstall -d ${destroot}/System/Library/Extensions |
---|
36 | file copy ${worksrcpath}/build/Release/fuse4x.kext ${destroot}/System/Library/Extensions |
---|
37 | file attributes ${destroot}/System/Library/Extensions/fuse4x.kext -owner root -group wheel -permissions rwxr-xr-x |
---|
38 | } |
---|
39 | |
---|
40 | post-activate { |
---|
41 | if {[string length [exec kextstat -lb org.fuse4x.kext.fuse4x]] > 0} { |
---|
42 | # TODO: instead of message below it is beffer to do: |
---|
43 | # 1) try to unload the kext, if it is successful - we are done |
---|
44 | # 2) if it still running - it means that fuse4x is still in use |
---|
45 | # show the user result of `mount | grep fuse4x` - the list of active fuse4x fs |
---|
46 | # 3) Ask user either reboot the computer or kill all active filesystems + restart the kext |
---|
47 | |
---|
48 | ui_msg "********************************************************" |
---|
49 | ui_msg "* fuse4x is already loaded. You may need to restart. *" |
---|
50 | ui_msg "* Alternatively, if feeling adventurous, you can run *" |
---|
51 | ui_msg "* `sudo kextunload -b org.fuse4x.kext.fuse4x` *" |
---|
52 | ui_msg "********************************************************" |
---|
53 | } |
---|
54 | } |
---|