public
Description: Git mirror of the MacPorts svn repo
Homepage: http://www.macports.org
Clone URL: git://github.com/kballard/macports.git
Search Repo:
Update MacFUSE to 1.3. This involved obsoleting the fusefs and libfuse 
ports and introducing a new macfuse port.
Note that all fuse ports (besides sshfs) need to be updated for this 
change


git-svn-id: http://svn.macports.org/repository/macports/trunk@36271 
d073be05-634f-4543-b044-5fe20cf6d1d6
kballard (author)
Fri Apr 25 04:30:48 -0700 2008
commit  c6f3234974261180b1fc664e3690032f3bceb673
tree    a2a19a4677b9f4ee1e24f37deeaee92908664336
parent  76e0acad8d635b94b88a1ffa7d71a6bef8bd2218
...
5
6
7
8
 
9
10
11
12
13
14
15
16
17
18
 
 
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
 
 
 
 
 
97
...
5
6
7
 
8
9
10
11
 
 
 
 
 
 
 
12
13
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
17
18
19
20
21
0
@@ -5,94 +5,18 @@
0
 
0
 name fusefs
0
 version 1.1
0
-revision 3
0
+revision 4
0
 categories fuse devel
0
 platforms darwin
0
 maintainers eridius@macports.org
0
-description A FUSE-Compliant File System Implementation Mechanism for Mac OS X
0
-long_description MacFUSE implements a mechanism that makes it possible to implement \
0
- a fully functional file system in a user-space program on Mac OS X \
0
- (10.4 and above). It aims to be API-compliant with the FUSE \
0
- (File-system in USErspace) mechanism that originated on Linux. \
0
- Therefore, many existing FUSE file systems become readily usable on \
0
- Mac OS X. The core of MacFUSE is in a dynamically loadable kernel extension.
0
+description dummy port, use macfuse instead
0
+long_description $description
0
 
0
-homepage http://code.google.com/p/macfuse/
0
-master_sites macports
0
-distname fusefs-${version}
0
-worksrcdir fusefs
0
-checksums md5 e34f44bcbb43a370a0ef204054276ae4 \
0
- sha1 776a7cf88c82bf63a8f086f086d06fb08a60c860
0
-
0
-livecheck.distname MacFUSE-Core-(.*).dmg
0
-livecheck.version 10.5-${version}.1
0
-
0
-use_bzip2 yes
0
-
0
-destroot.violate_mtree yes
0
-
0
-xcode.configuration Release
0
-xcode.target fusefs load_fusefs fusefs.fs mount_fusefs
0
-xcode.build.settings OBJROOT=build/ SYMROOT=build/
0
-
0
-platform darwin 8 {
0
- worksrcdir fusefs/10.4
0
-}
0
-
0
-platform darwin 9 {
0
- worksrcdir fusefs/10.5
0
-}
0
-
0
-# ensure that user is running OS X 10.4 or higher
0
 pre-fetch {
0
- if {![variant_isset darwin_8] && ![variant_isset darwin_9]} {
0
- return -code error "MacFUSE requires at least Mac OS X 10.4 to run"
0
- }
0
-}
0
-
0
-destroot {
0
- if {[variant_isset darwin_8]} {
0
- set sysfsdir ${destroot}/System/Library/Filesystems
0
- } else {
0
- set sysfsdir ${destroot}/Library/Filesystems
0
- }
0
- set macfuse_bundle_dir ${sysfsdir}/fusefs.fs
0
- set macfuse_support_dir ${macfuse_bundle_dir}/Support
0
-
0
- set builddir ${worksrcpath}/build/${xcode.configuration}
0
-
0
- # ensure sysfsdir exists
0
- xinstall -d -m 755 -o root -g wheel ${sysfsdir}
0
-
0
- # copy fusefs.fs
0
- file copy -- ${builddir}/fusefs.fs ${macfuse_bundle_dir}
0
-
0
- # ensure Support dir exists
0
- xinstall -d -m 755 -o root -g wheel ${macfuse_support_dir}
0
-
0
- # copy Support files
0
- file copy -- ${builddir}/fusefs.kext ${macfuse_support_dir}/fusefs.kext
0
- xinstall -m 4555 ${builddir}/load_fusefs ${macfuse_support_dir}/load_fusefs
0
- xinstall ${builddir}/mount_fusefs ${macfuse_support_dir}/mount_fusefs
0
-
0
- # set permissions
0
- fs-traverse file [list ${macfuse_bundle_dir}] {
0
- file attributes $file -owner root -group wheel
0
- }
0
-
0
- # copy header files that libfuse needs
0
- foreach file [list fuse_ioctl.h fuse_mount.h fuse_param.h fuse_version.h] {
0
- file copy -- ${worksrcpath}/common/${file} ${destroot}${prefix}/include/${file}
0
- }
0
-}
0
-
0
-post-activate {
0
- if {[string length [exec kextstat -lb com.google.filesystems.fusefs]] > 0} {
0
- ui_msg "********************************************************"
0
- ui_msg "* fusefs is already loaded. You may need to restart. *"
0
- ui_msg "* Alternatively, if feeling adventurous, you can run *"
0
- ui_msg "* `sudo kextunload -b com.google.filesystems.fusefs` *"
0
- ui_msg "********************************************************"
0
- }
0
+ ui_msg "********************************"
0
+ ui_msg "* This port no longer exists *"
0
+ ui_msg "* Use the macfuse port instead *"
0
+ ui_msg "********************************"
0
+ throw ERROR "Obsolete port, use macfuse"
0
 }
...
8
9
10
11
12
 
 
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
 
 
 
 
 
87
...
8
9
10
 
 
11
12
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
16
17
18
19
20
0
@@ -8,81 +8,14 @@
0
 categories fuse devel
0
 platforms darwin
0
 maintainers eridius@macports.org
0
-description Filesystem in Userspace
0
-long_description See the fusefs port for more information
0
+description dummy port, use macfuse instead
0
+long_description $description
0
 
0
-homepage http://fuse.sourceforge.net/
0
-
0
-distname fuse-${version}
0
-master_sites sourceforge:fuse
0
-checksums ${distfiles} md5 f95b4a238a3df5a92e9013ecb55c2c17 \
0
- sha1 ea28a61ff63cd0cf12cd7c9c092a57d79c12edf8
0
-
0
-livecheck.distname fuse-2.X
0
-
0
-depends_lib port:pkgconfig
0
-
0
-platform darwin 8 {
0
- patch_sites http://macfuse.googlecode.com/svn/tags/macfuse-1.1/core/10.4/libfuse/
0
- checksums-append fuse-2.7.1-macosx.patch md5 36b116114c04f8e7c65a5c8aad753573 \
0
- sha1 5cb3440a73b2634e18f76263c35044e58b0daaa5
0
-}
0
-
0
-platform darwin 9 {
0
- patch_sites http://macfuse.googlecode.com/svn/tags/macfuse-1.1/core/10.5/libfuse/
0
- checksums-append fuse-2.7.1-macosx.patch md5 85f1654ae01064ef1c398dbfde1a3f53 \
0
- sha1 24d735331ec897c77e19203d3d38ab55ae56f292
0
-}
0
-
0
-platform darwin {
0
- depends_run port:fusefs
0
-
0
- patchfiles fuse-2.7.1-macosx.patch
0
-
0
- configure.post_args-append CFLAGS="-D__FreeBSD__=10 -D_POSIX_C_SOURCE=200112L"
0
-
0
- # override patch.pre_args since it defaults to -p0
0
- patch.pre_args -p1
0
-}
0
-
0
 pre-fetch {
0
- # LibFUSE currently only works on OS X
0
- # so error out if attempting to install elsewhere
0
- if {![variant_isset darwin]} {
0
- return -code error "LibFUSE is only supported for Mac OS X"
0
- }
0
-
0
- patch_checksum
0
-}
0
-
0
-proc patch_checksum {} {
0
- global checksums_array UI_PREFIX
0
- # assume we only have one patchfile, because at the moment that's true
0
- set patchfile [option patchfiles]
0
- # do our own checksumming of an existing $patchfile because URL changes between revisions
0
- # if the checksum fails, delete the patchfile
0
- # a lot of this code is copied from checksum_main
0
- # Eventually this technique should be replaced with a patchfile dist subdir
0
- if {[file exists [option distpath]/$patchfile]} {
0
- ui_info "$UI_PREFIX $patchfile exists, checksumming to detect URL change"
0
- if {[parse_checksums [option checksums]] == "yes"} {
0
- ui_info "$UI_PREFIX [format [msgcat::mc "Checksumming %s"] $patchfile]"
0
- set fullpath [file join [option distpath] $patchfile]
0
- if {[info exists checksums_array($patchfile)]} {
0
- set checksums $checksums_array($patchfile)
0
-
0
- foreach {type sum} $checksums {
0
- set calculated_sum [calc_$type $fullpath]
0
- if {![string equal $sum $calculated_sum]} {
0
- ui_debug "Checksum mismatch for $patchfile"
0
- delete $fullpath
0
- break
0
- }
0
- }
0
- }
0
- } else {
0
- return -code error "Unable to parse checksum string"
0
- }
0
- }
0
+ ui_msg "********************************"
0
+ ui_msg "* This port no longer exists *"
0
+ ui_msg "* Use the macfuse port instead *"
0
+ ui_msg "********************************"
0
+ throw ERROR "Obsolete port, use macfuse"
0
 }
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
0
@@ -1 +1,91 @@
0
+# $Id$
0
+
0
+PortSystem 1.0
0
+
0
+name macfuse
0
+version 1.3
0
+categories fuse devel
0
+platforms darwin
0
+maintainers eridius@macports.org
0
+description A FUSE-Compliant File System Implementation Mechanism for Mac OS X
0
+long_description MacFUSE implements a mechanism that makes it possible to implement \
0
+ a fully functional file system in a user-space program on Mac OS X \
0
+ (10.4 and above). It aims to be API-compliant with the FUSE \
0
+ (File-system in USErspace) mechanism that originated on Linux. \
0
+ Therefore, many existing FUSE file systems become readily usable on \
0
+ Mac OS X. The core of MacFUSE is in a dynamically loadable kernel extension.
0
+
0
+homepage http://code.google.com/p/macfuse/
0
+master_sites macports
0
+distname macfuse-${version}
0
+worksrcdir macfuse-core
0
+checksums md5 fd80b07221174f1636502c0062c43690 \
0
+ sha1 d840ba3dbd56850b6b9d10a3937fb2cbdacbffbc
0
+
0
+livecheck.distname MacFUSE-Core-(.*).dmg
0
+livecheck.version 10.5-${version}.1
0
+
0
+use_bzip2 yes
0
+
0
+use_configure no
0
+
0
+destroot.violate_mtree yes
0
+
0
+# patchfiles patch-project.pbxproj
0
+
0
+platform darwin 8 {
0
+ # dummy for pre-fetch
0
+}
0
+platform darwin 9 {
0
+ # dummy for pre-fetch
0
+}
0
+
0
+variant universal {
0
+ # provide a dummy variant since the script will actually build universal
0
+ # and we don't want to error out if someone says +universal
0
+}
0
+
0
+# ensure that user is running OS X 10.4 or higher
0
+pre-fetch {
0
+ if {![variant_isset darwin_8] && ![variant_isset darwin_9]} {
0
+ return -code error "MacFUSE requires at least Mac OS X 10.4 to run"
0
+ }
0
+}
0
+
0
+build {
0
+ system "cd ${worksrcpath} && ./build_macfuse.sh | sed -ne '/^created: /h;p;$\{g;s/^created: //
0
+ w ../dmgname
0
+ \}'; exit $\{PIPESTATUS\[0\]\}"
0
+}
0
+
0
+destroot {
0
+ set dmgname [exec cat ${workpath}/dmgname]
0
+ # we know the build script generates a .tar.bz2 right next to the dmg
0
+ set tarname [string replace $dmgname end-2 end "tar.bz2"]
0
+ system "tar -xjf $tarname -C ${destpath}"
0
+ delete ${destpath}/opt
0
+ file rename ${destpath}/usr ${destpath}/opt
0
+ foreach f [list "pkgconfig/fuse.pc" "libfuse.la" "libulockmgr.la"] {
0
+ set path "${destpath}/opt/local/lib/${f}"
0
+ reinplace s,/usr/local,/opt/local, $path
0
+ }
0
+ foreach lib [list "libulockmgr.0" "libfuse.0"] {
0
+ set libpath "/opt/local/lib/${lib}.dylib"
0
+ system "install_name_tool -id ${libpath} ${destpath}${libpath}"
0
+ }
0
+ system "install_name_tool -change /usr/local/lib/libfuse.0.dylib /opt/local/lib/libfuse.0.dylib ${destpath}/Library/Frameworks/MacFUSE.framework/Versions/A/MacFUSE"
0
+ # delete the whole directory the build script creates
0
+ # when updating this Portfile DOUBLE CHECK THIS LINE
0
+ delete [file dirname $dmgname]
0
+}
0
+
0
+post-activate {
0
+ if {[string length [exec kextstat -lb com.google.filesystems.fusefs]] > 0} {
0
+ ui_msg "********************************************************"
0
+ ui_msg "* fusefs is already loaded. You may need to restart. *"
0
+ ui_msg "* Alternatively, if feeling adventurous, you can run *"
0
+ ui_msg "* `sudo kextunload -b com.google.filesystems.fusefs` *"
0
+ ui_msg "********************************************************"
0
+ }
0
+}
...
4
5
6
7
 
8
9
10
...
28
29
30
31
 
32
33
34
...
37
38
39
40
41
 
42
43
44
...
4
5
6
 
7
8
9
10
...
28
29
30
 
31
32
33
34
...
37
38
39
 
 
40
41
42
43
0
@@ -4,7 +4,7 @@
0
 
0
 name sshfs
0
 version 1.8
0
-revision 2
0
+revision 3
0
 categories fuse
0
 platforms darwin
0
 maintainers eridius@macports.org
0
@@ -28,7 +28,7 @@
0
 
0
 depends_lib port:gettext \
0
                     port:glib2 \
0
- port:libfuse \
0
+ port:macfuse \
0
                     port:libiconv \
0
                     port:pkgconfig
0
 
0
@@ -37,8 +37,7 @@
0
 configure.post_args-append --disable-dependency-tracking
0
 
0
 platform darwin {
0
- depends_run port:fusefs
0
- patch_sites http://macfuse.googlecode.com/svn/tags/macfuse-1.1/filesystems/sshfs
0
+ patch_sites http://macfuse.googlecode.com/svn/tags/macfuse-1.3/filesystems/sshfs
0
     patchfiles sshfs-fuse-${version}-macosx.patch
0
     checksums-append sshfs-fuse-${version}-macosx.patch md5 5d3cec641c22e89dd840c6bbc3af89d4 \
0
                                                            sha1 79f058e0ae4b90ec09d50ab39401773d146bdf95

Comments

    No one has commented yet.