Ticket #13185: fuse-1.1_revision1.diff
File fuse-1.1_revision1.diff, 20.2 KB (added by takanori@…, 17 years ago) |
---|
-
fuse/sshfs/Portfile
3 3 PortSystem 1.0 4 4 5 5 name sshfs 6 version 1.7 7 revision 5 6 version 1.8 7 revision 1 8 set macfuse_version 1.1 8 9 categories fuse 9 10 platforms darwin 10 11 maintainers eridius@macports.org … … 21 22 22 23 distname sshfs-fuse-${version} 23 24 master_sites sourceforge:fuse 24 checksums ${distfiles} md5 e91a2fed1da952a375798408dc6e41a0\25 sha1 c68fa99e9127b59141a5ac5babec39d5bb54114125 checksums ${distfiles} md5 3c575cf89a6d3d8ab6063c2f60bd5b25 \ 26 sha1 ab1df8d8b2a601bc22959a14e95e57fae5fc3787 26 27 27 28 livecheck.distname sshfs-fuse 28 29 29 depends_lib port:glib2 port:libfuse port:pkgconfig 30 depends_lib port:gettext \ 31 port:glib2 \ 32 port:libfuse \ 33 port:libiconv \ 34 port:pkgconfig 30 35 31 configure.cflags-append -DSSH_NODELAY_WORKAROUND 36 configure.cflags-append "-D__FreeBSD__=10 -DDARWIN_SEMAPHORE_COMPAT -DSSH_NODELAY_WORKAROUND -D_POSIX_C_SOURCE=200112L" 37 configure.post_args-append --disable-dependency-tracking 32 38 33 39 platform darwin { 34 40 depends_run port:fusefs 35 patch_sites http://macfuse.googlecode.com/svn/tags/macfuse- 0.4.0/filesystems/sshfs36 patchfiles sshfs-fuse- 1.7-macosx.patch37 checksums-append sshfs-fuse- 1.7-macosx.patch md5 4efb4c2d6cc862ca3fb9b5f77aafc744 \38 sha1 242e0a8136e48ed6b4b24495c1164f33f19d669a41 patch_sites http://macfuse.googlecode.com/svn/tags/macfuse-${macfuse_version}/filesystems/sshfs 42 patchfiles sshfs-fuse-${version}-macosx.patch 43 checksums-append sshfs-fuse-${version}-macosx.patch md5 5d3cec641c22e89dd840c6bbc3af89d4 \ 44 sha1 79f058e0ae4b90ec09d50ab39401773d146bdf95 39 45 40 46 # override patch.pre_args since it defaults to -p0 41 47 patch.pre_args -p1 -
fuse/sshfs-gui/files/patch-sshfs.xcodeproj_project.pbxproj.diff
1 --- ./sshfs.xcodeproj/project.pbxproj.orig 2007-10-27 09:54:51.000000000 +0900 2 +++ ./sshfs.xcodeproj/project.pbxproj 2007-11-07 09:39:36.000000000 +0900 3 @@ -8,8 +8,6 @@ 4 5 /* Begin PBXBuildFile section */ 6 54B5A1AC0CD2BC7B00158571 /* GoogleShared_SystemVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 54B5A1AB0CD2BC7B00158571 /* GoogleShared_SystemVersion.m */; }; 7 - 54B5A1C50CD2BF3B00158571 /* sshfs-static-10.5 in Resources */ = {isa = PBXBuildFile; fileRef = 54B5A1C40CD2BF3B00158571 /* sshfs-static-10.5 */; }; 8 - 8205AF7A0B653F3700A99579 /* sshfs-static in Resources */ = {isa = PBXBuildFile; fileRef = 8205AF790B653F3700A99579 /* sshfs-static */; }; 9 823578210B44701F00FE77BB /* ssh.icns in Resources */ = {isa = PBXBuildFile; fileRef = 823578200B44701F00FE77BB /* ssh.icns */; }; 10 8235784C0B44782400FE77BB /* askpass.c in Sources */ = {isa = PBXBuildFile; fileRef = 8235784B0B44782400FE77BB /* askpass.c */; }; 11 823578540B44786400FE77BB /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 823578530B44786400FE77BB /* CoreFoundation.framework */; }; 12 @@ -45,8 +43,6 @@ 13 32CA4F630368D1EE00C91783 /* sshfs.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sshfs.pch; sourceTree = "<group>"; }; 14 54B5A1AA0CD2BC7B00158571 /* GoogleShared_SystemVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GoogleShared_SystemVersion.h; sourceTree = "<group>"; }; 15 54B5A1AB0CD2BC7B00158571 /* GoogleShared_SystemVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GoogleShared_SystemVersion.m; sourceTree = "<group>"; }; 16 - 54B5A1C40CD2BF3B00158571 /* sshfs-static-10.5 */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; name = "sshfs-static-10.5"; path = "Resources/sshfs-static-10.5"; sourceTree = "<group>"; }; 17 - 8205AF790B653F3700A99579 /* sshfs-static */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; name = "sshfs-static"; path = "Resources/sshfs-static"; sourceTree = "<group>"; }; 18 823578200B44701F00FE77BB /* ssh.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = ssh.icns; path = Resources/ssh.icns; sourceTree = "<group>"; }; 19 823578420B4477D800FE77BB /* askpass */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = askpass; sourceTree = BUILT_PRODUCTS_DIR; }; 20 8235784B0B44782400FE77BB /* askpass.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = askpass.c; sourceTree = "<group>"; }; 21 @@ -115,13 +111,11 @@ 22 29B97317FDCFA39411CA2CEA /* Resources */ = { 23 isa = PBXGroup; 24 children = ( 25 - 54B5A1C40CD2BF3B00158571 /* sshfs-static-10.5 */, 26 D4A6C9A709479AD300354625 /* Info.plist */, 27 D4A6C9B709479B9200354625 /* InfoPlist.strings */, 28 8249C9140B547465007CFB64 /* Localizable.strings */, 29 D4A6C9DF09479C8900354625 /* MainMenu.nib */, 30 823578200B44701F00FE77BB /* ssh.icns */, 31 - 8205AF790B653F3700A99579 /* sshfs-static */, 32 82743E560BD7CE2D006FB711 /* sshnodelay.so */, 33 8235791D0B4481C700FE77BB /* askpass */, 34 ); 35 @@ -197,7 +191,6 @@ 36 823578500B44782F00FE77BB /* PBXTargetDependency */, 37 ); 38 name = sshfs; 39 - productInstallPath = "$(HOME)/Applications"; 40 productName = sshfs; 41 productReference = 8D1107320486CEB800E47090 /* sshfs.app */; 42 productType = "com.apple.product-type.application"; 43 @@ -230,9 +223,7 @@ 44 823578210B44701F00FE77BB /* ssh.icns in Resources */, 45 8235791E0B4481C700FE77BB /* askpass in Resources */, 46 8249C9150B547465007CFB64 /* Localizable.strings in Resources */, 47 - 8205AF7A0B653F3700A99579 /* sshfs-static in Resources */, 48 82743E570BD7CE2D006FB711 /* sshnodelay.so in Resources */, 49 - 54B5A1C50CD2BF3B00158571 /* sshfs-static-10.5 in Resources */, 50 ); 51 runOnlyForDeploymentPostprocessing = 0; 52 }; 53 @@ -307,7 +298,6 @@ 54 GCC_OPTIMIZATION_LEVEL = 0; 55 GCC_PRECOMPILE_PREFIX_HEADER = YES; 56 GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; 57 - INSTALL_PATH = "$(HOME)/bin"; 58 OTHER_LDFLAGS = ( 59 "-framework", 60 Carbon, 61 @@ -327,7 +317,6 @@ 62 GCC_MODEL_TUNING = G5; 63 GCC_PRECOMPILE_PREFIX_HEADER = YES; 64 GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; 65 - INSTALL_PATH = "$(HOME)/bin"; 66 OTHER_LDFLAGS = ( 67 "-framework", 68 Carbon, -
fuse/sshfs-gui/files/patch-AppController.m.diff
1 --- ./AppController.m.old 2007-11-07 05:15:32.000000000 +0900 2 +++ ./AppController.m 2007-11-07 08:24:25.000000000 +0900 3 @@ -76,11 +76,7 @@ 4 // setup for task 5 NSString *askPassPath = [[NSBundle mainBundle] pathForResource:@"askpass" 6 ofType:@""]; 7 - NSString *sshfsPath = [[NSBundle mainBundle] pathForResource:@"sshfs-static" 8 - ofType:@""]; 9 - if ([GoogleShared_SystemVersion isLeopard]) { 10 - sshfsPath = [sshfsPath stringByAppendingString:@"-10.5"]; 11 - } 12 + NSString *sshfsPath = @"##PREFIX##/bin/sshfs"; 13 NSDictionary *sshfsEnv = [NSDictionary dictionaryWithObjectsAndKeys: 14 @"NONE", @"DISPLAY", // I know "NONE" is bogus; I just need something 15 askPassPath, @"SSH_ASKPASS", -
fuse/sshfs-gui/files/patch-project.pbxproj
1 --- ../sshfs-gui.old/sshfs.xcodeproj/project.pbxproj 2007-04-23 18:37:41.000000000 -04002 +++ sshfs.xcodeproj/project.pbxproj 2007-04-23 18:44:11.000000000 -04003 @@ -7,7 +7,6 @@4 objects = {5 6 /* Begin PBXBuildFile section */7 - 8205AF7A0B653F3700A99579 /* sshfs-static in Resources */ = {isa = PBXBuildFile; fileRef = 8205AF790B653F3700A99579 /* sshfs-static */; };8 823578210B44701F00FE77BB /* ssh.icns in Resources */ = {isa = PBXBuildFile; fileRef = 823578200B44701F00FE77BB /* ssh.icns */; };9 8235784C0B44782400FE77BB /* askpass.c in Sources */ = {isa = PBXBuildFile; fileRef = 8235784B0B44782400FE77BB /* askpass.c */; };10 823578540B44786400FE77BB /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 823578530B44786400FE77BB /* CoreFoundation.framework */; };11 @@ -41,7 +40,6 @@12 29B97316FDCFA39411CA2CEA /* sshfsMain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = sshfsMain.m; sourceTree = "<group>"; };13 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };14 32CA4F630368D1EE00C91783 /* sshfs.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sshfs.pch; sourceTree = "<group>"; };15 - 8205AF790B653F3700A99579 /* sshfs-static */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; name = "sshfs-static"; path = "Resources/sshfs-static"; sourceTree = "<group>"; };16 823578200B44701F00FE77BB /* ssh.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = ssh.icns; path = Resources/ssh.icns; sourceTree = "<group>"; };17 823578420B4477D800FE77BB /* askpass */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = askpass; sourceTree = BUILT_PRODUCTS_DIR; };18 8235784B0B44782400FE77BB /* askpass.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = askpass.c; sourceTree = "<group>"; };19 @@ -115,7 +113,6 @@20 8249C9140B547465007CFB64 /* Localizable.strings */,21 D4A6C9DF09479C8900354625 /* MainMenu.nib */,22 823578200B44701F00FE77BB /* ssh.icns */,23 - 8205AF790B653F3700A99579 /* sshfs-static */,24 82743E560BD7CE2D006FB711 /* sshnodelay.so */,25 8235791D0B4481C700FE77BB /* askpass */,26 );27 @@ -220,7 +217,6 @@28 823578210B44701F00FE77BB /* ssh.icns in Resources */,29 8235791E0B4481C700FE77BB /* askpass in Resources */,30 8249C9150B547465007CFB64 /* Localizable.strings in Resources */,31 - 8205AF7A0B653F3700A99579 /* sshfs-static in Resources */,32 82743E570BD7CE2D006FB711 /* sshnodelay.so in Resources */,33 );34 runOnlyForDeploymentPostprocessing = 0;35 @@ -315,7 +311,6 @@36 GCC_MODEL_TUNING = G5;37 GCC_PRECOMPILE_PREFIX_HEADER = YES;38 GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h";39 - INSTALL_PATH = "$(HOME)/bin";40 OTHER_LDFLAGS = (41 "-framework",42 Carbon,43 @@ -339,6 +334,7 @@44 isa = XCBuildConfiguration;45 buildSettings = {46 INFOPLIST_FILE = Resources/Info.plist;47 + INSTALL_PATH = /Applications;48 PRODUCT_NAME = sshfs;49 WRAPPER_EXTENSION = app;50 }; -
fuse/sshfs-gui/files/patch-AppController.m
1 --- ../sshfs-gui.old/AppController.m 2007-04-23 18:37:41.000000000 -04002 +++ AppController.m 2007-04-23 18:38:39.000000000 -04003 @@ -75,8 +75,7 @@4 // setup for task5 NSString *askPassPath = [[NSBundle mainBundle] pathForResource:@"askpass"6 ofType:@""];7 - NSString *sshfsPath = [[NSBundle mainBundle] pathForResource:@"sshfs-static"8 - ofType:@""];9 + NSString *sshfsPath = @"##PREFIX##/bin/sshfs";10 NSDictionary *sshfsEnv = [NSDictionary dictionaryWithObjectsAndKeys:11 @"NONE", @"DISPLAY", // I know "NONE" is bogus; I just need something12 askPassPath, @"SSH_ASKPASS", -
fuse/sshfs-gui/Portfile
4 4 PortGroup xcode 1.0 5 5 6 6 name sshfs-gui 7 version 0.3.0 7 version 1.0.0 8 revision 1 9 set macfuse_version 1.1 8 10 categories fuse 9 11 platforms macosx 10 12 maintainers eridius@macports.org … … 14 16 15 17 homepage http://code.google.com/p/macfuse/ 16 18 17 master_sites macports 18 checksums md5 23e29333a9974f87d4466c64607f3581 \ 19 sha1 3df742fac97ea4f853b07f2ea41a6b8597af3508 19 master_sites macports:fusefs 20 distname macfuse-${macfuse_version} 21 dist_subdir fusefs 22 checksums md5 42487d7684b1f9a8eb2f8a61b10f7913 \ 23 sha1 6347e5b6b0f810a3e5b0fbc82cbccfdf3f4c6311 20 24 21 livecheck.distname sshfs-(.*).dmg 25 worksrcdir ${distname}/filesystems/sshfs-gui 22 26 23 patchfiles patch-AppController.m patch-project.pbxproj 27 patchfiles patch-AppController.m.diff \ 28 patch-sshfs.xcodeproj_project.pbxproj.diff 24 29 25 30 use_bzip2 yes 26 31 … … 31 36 32 37 post-patch { 33 38 reinplace "s|##PREFIX##|${prefix}|" AppController.m 39 } 40 41 post-destroot { 42 xinstall -d ${destroot}/Applications/MacPorts 43 copy ${worksrcpath}/build/UninstalledProducts/sshfs.app ${destroot}/Applications/MacPorts 34 44 } 45 No newline at end of file -
fuse/libfuse/Portfile
3 3 PortSystem 1.0 4 4 5 5 name libfuse 6 version 2. 6.56 version 2.7.1 7 7 revision 1 8 set macfuse_version 1.1 8 9 categories fuse devel 9 10 platforms darwin 10 11 maintainers eridius@macports.org … … 13 14 14 15 homepage http://fuse.sourceforge.net/ 15 16 16 distname fuse-${version} 17 master_sites sourceforge:fuse 18 checksums ${distfiles} md5 66bd30503df55a87b9868835ca5a45bc \ 19 sha1 bbb6baa147ff9057b66a64f10e5027434468c0aa 17 master_sites macports:fusefs 18 distname macfuse-${macfuse_version} 19 dist_subdir fusefs 20 checksums md5 42487d7684b1f9a8eb2f8a61b10f7913 \ 21 sha1 6347e5b6b0f810a3e5b0fbc82cbccfdf3f4c6311 20 22 21 livecheck.distname fuse-2.X 23 platform darwin 8 {} 22 24 23 depends_lib port:pkgconfig 24 25 platform darwin { 26 depends_run port:fusefs 27 patch_sites http://macfuse.googlecode.com/svn/tags/macfuse-0.4.0/libfuse/ 28 patchfiles fuse-2.6.5-macosx.patch 29 checksums-append fuse-2.6.5-macosx.patch md5 96c27b9d8c5d719ff7db99064c21ec87 \ 30 sha1 edbf8769809eea32f9f83e7fa7e8b791e6cbe106 31 32 configure.post_args-append CFLAGS="-D__FreeBSD__=10 -D_POSIX_C_SOURCE=200112L" 33 34 # override patch.pre_args since it defaults to -p0 35 patch.pre_args -p1 25 if {[variant_isset darwin_8]} { 26 set product_version 10.4 27 } else { 28 set product_version 10.5 36 29 } 37 30 31 worksrcdir ${distname}/core/${product_version}/${name}/fuse-${version} 32 33 #livecheck.distname fuse-2.X 34 35 use_bzip2 yes 36 37 depends_lib port:pkgconfig 38 depends_run port:fusefs 39 38 40 pre-fetch { 39 41 # LibFUSE currently only works on OS X 40 42 # so error out if attempting to install elsewhere 41 if { ![variant_isset darwin]} {43 if {${os.platform} != "darwin"} { 42 44 return -code error "LibFUSE is only supported for Mac OS X" 43 45 } 44 45 if {[variant_isset darwin]} {46 patch_checksum47 }48 46 } 49 47 50 proc patch_checksum {} { 51 global checksums_array UI_PREFIX 52 # assume we only have one patchfile, because at the moment that's true 53 set patchfile [option patchfiles] 54 # do our own checksumming of an existing $patchfile because URL changes between revisions 55 # if the checksum fails, delete the patchfile 56 # a lot of this code is copied from checksum_main 57 # Eventually this technique should be replaced with a patchfile dist subdir 58 if {[file exists [option distpath]/$patchfile]} { 59 ui_info "$UI_PREFIX $patchfile exists, checksumming to detect URL change" 60 if {[parse_checksums [option checksums]] == "yes"} { 61 ui_info "$UI_PREFIX [format [msgcat::mc "Checksumming %s"] $patchfile]" 62 set fullpath [file join [option distpath] $patchfile] 63 if {[info exists checksums_array($patchfile)]} { 64 set checksums $checksums_array($patchfile) 65 66 foreach {type sum} $checksums { 67 set calculated_sum [calc_$type $fullpath] 68 if {![string equal $sum $calculated_sum]} { 69 ui_debug "Checksum mismatch for $patchfile" 70 delete $fullpath 71 break 72 } 73 } 74 } 75 } else { 76 return -code error "Unable to parse checksum string" 77 } 78 } 79 } 80 No newline at end of file 48 post-extract { 49 system "cd ${workpath}/${distname}/core/${product_version}/${name} && gzip -dc fuse-current.tar.gz | tar --no-same-owner -xf -" 50 system "cd ${worksrcpath} && patch -p1 < ../fuse-current-macosx.patch" 51 } 52 53 patch { 54 reinplace "s|--prefix=/usr/local|--prefix=${prefix}|" ${worksrcpath}/darwin_configure.sh 55 } 56 57 configure { 58 system "cd ${worksrcpath} && /bin/sh ./darwin_configure.sh ${workpath}/${distname}/core/${product_version}/fusefs" 59 } -
fuse/fusefs/Portfile
4 4 PortGroup xcode 1.0 5 5 6 6 name fusefs 7 version 0.4.0 7 version 1.1 8 revision 1 8 9 categories fuse devel 9 10 platforms darwin 10 11 maintainers eridius@macports.org … … 18 19 19 20 homepage http://code.google.com/p/macfuse/ 20 21 master_sites macports 21 distname fusefs-${version} 22 worksrcdir fusefs 23 checksums md5 fb49ac9bc2412da7e02b9e3f1f448545 \ 24 sha1 0b870c2e4d14180510348c49cc0647bff812f520 22 distname macfuse-${version} 23 checksums md5 42487d7684b1f9a8eb2f8a61b10f7913 \ 24 sha1 6347e5b6b0f810a3e5b0fbc82cbccfdf3f4c6311 25 25 26 livecheck.distname MacFUSE-Core-(.*).dmg 26 platform darwin 8 {} 27 27 28 if {[variant_isset darwin_8]} { 29 set product_version 10.4 30 } else { 31 set product_version 10.5 32 } 33 34 worksrcdir ${distname}/core/${product_version}/${name} 35 livecheck.distname MacFUSE-Core-${product_version}-(.*).dmg 36 28 37 use_bzip2 yes 29 38 30 39 destroot.violate_mtree yes … … 34 43 xcode.build.settings OBJROOT=build/ SYMROOT=build/ 35 44 36 45 # ensure that user is running OS X 10.4 37 platform darwin {}38 46 pre-fetch { 39 if { [variant_isset darwin]} {47 if {${os.platform} == "darwin"} { 40 48 set vers [split [exec sw_vers -productVersion] .] 41 49 set majorVersion [lindex $vers 0] 42 50 set minorVersion [lindex $vers 1] … … 49 57 } 50 58 51 59 destroot { 52 set sysfsdir ${destroot}/System/Library/Filesystems 60 if {[variant_isset darwin_8]} { 61 set sysfsdir ${destroot}/System/Library/Filesystems 62 } else { 63 set sysfsdir ${destroot}/Library/Filesystems 64 } 53 65 set macfuse_bundle_dir ${sysfsdir}/fusefs.fs 54 66 set macfuse_support_dir ${macfuse_bundle_dir}/Support 55 67