[23809] trunk/dports/fuse

source_changes at macosforge.org source_changes at macosforge.org
Mon Apr 9 22:16:08 PDT 2007


Revision: 23809
          http://trac.macosforge.org/projects/macports/changeset/23809
Author:   eridius at macports.org
Date:     2007-04-09 22:16:07 -0700 (Mon, 09 Apr 2007)

Log Message:
-----------
Upgrade fusefs to 0.2.4
Update libfuse and sshfs for new patches for MacFUSE 0.2.4

Modified Paths:
--------------
    trunk/dports/fuse/fusefs/Portfile
    trunk/dports/fuse/libfuse/Portfile
    trunk/dports/fuse/sshfs/Portfile

Modified: trunk/dports/fuse/fusefs/Portfile
===================================================================
--- trunk/dports/fuse/fusefs/Portfile	2007-04-10 05:09:29 UTC (rev 23808)
+++ trunk/dports/fuse/fusefs/Portfile	2007-04-10 05:16:07 UTC (rev 23809)
@@ -4,7 +4,7 @@
 PortGroup xcode 1.0
 
 name                fusefs
-version             0.2.2
+version             0.2.4
 categories          fuse devel
 platforms           darwin
 maintainers         eridius at macports.org
@@ -17,11 +17,11 @@
                     Mac OS X. The core of MacFUSE is in a dynamically loadable kernel extension.
 
 homepage            http://code.google.com/p/macfuse/
-master_sites        http://svn.macosforge.org/repository/macports/distfiles/eridius/
+master_sites        macports:eridius
 distname            fusefs-${version}
 worksrcdir          fusefs
-checksums           md5 036e55e7203be82974c55f56504b30a1 \
-                    sha1 07b782e71e6b30e3181171feb7618052587af592
+checksums           md5 f2ca45f1107b1ad81b81c023f095d3b6 \
+                    sha1 6e3dc875952faf8a1efbd14b2c8acca7daacb63f
 
 use_bzip2           yes
 

Modified: trunk/dports/fuse/libfuse/Portfile
===================================================================
--- trunk/dports/fuse/libfuse/Portfile	2007-04-10 05:09:29 UTC (rev 23808)
+++ trunk/dports/fuse/libfuse/Portfile	2007-04-10 05:16:07 UTC (rev 23809)
@@ -4,7 +4,7 @@
 
 name                libfuse
 version             2.6.3
-revision            2
+revision            3
 categories          fuse devel
 platforms           darwin
 maintainers         eridius at macports.org
@@ -22,10 +22,10 @@
 
 platform darwin {
     depends_run         port:fusefs
-    patch_sites         http://macfuse.googlecode.com/svn/tags/macfuse-0.2.2/libfuse/
+    patch_sites         http://macfuse.googlecode.com/svn/tags/macfuse-0.2.4/libfuse/
     patchfiles          fuse-2.6.3-macosx.patch
-    checksums-append    fuse-2.6.3-macosx.patch md5 845d0f7bd9411d50eb41295425570f00 \
-                                                sha1 b3e366a238930c3bfb6f1b3a4119c289c54e9146
+    checksums-append    fuse-2.6.3-macosx.patch md5 1962db1a8a71423d2aebd3cd1b54944e \
+                                                sha1 1ca5d6f974f2dbc775b65ecd3b416ac1ccfeb4c5
     
     configure.post_args-append CFLAGS="-D__FreeBSD__=10 -D_POSIX_C_SOURCE=200112L"
     

Modified: trunk/dports/fuse/sshfs/Portfile
===================================================================
--- trunk/dports/fuse/sshfs/Portfile	2007-04-10 05:09:29 UTC (rev 23808)
+++ trunk/dports/fuse/sshfs/Portfile	2007-04-10 05:16:07 UTC (rev 23809)
@@ -4,7 +4,7 @@
 
 name                sshfs
 version             1.7
-revision            1
+revision            2
 categories          fuse
 platforms           darwin
 maintainers         eridius at macports.org
@@ -28,11 +28,48 @@
 
 platform darwin {
     depends_run         port:fusefs
-    patch_sites         http://macfuse.googlecode.com/svn/tags/macfuse-0.1.9/filesystems/sshfs
+    patch_sites         http://macfuse.googlecode.com/svn/tags/macfuse-0.2.4/filesystems/sshfs
     patchfiles          sshfs-fuse-1.7-macosx.patch
-    checksums-append    sshfs-fuse-1.7-macosx.patch md5 ded7579df87a384d2b74cf6413ba923f \
-                                                    sha1 50d036dc57fb560f011d598852576a446ba3842b
+    checksums-append    sshfs-fuse-1.7-macosx.patch md5 e0e8f6da7fb7a2aa8fba434500cbad93 \
+                                                    sha1 4c864061a844c9f42b24298d35047907c385061f
     
     # override patch.pre_args since it defaults to -p0
     patch.pre_args -p1
+}
+
+pre-fetch {
+    if {[variant_isset darwin]} {
+        patch_checksum
+    }
+}
+
+proc patch_checksum {} {
+    global checksums_array UI_PREFIX
+    # assume we only have one patchfile, because at the moment that's true
+    set patchfile [option patchfiles]
+    # do our own checksumming of an existing $patchfile because URL changes between revisions
+    # if the checksum fails, delete the patchfile
+    # a lot of this code is copied from checksum_main
+    # Eventually this technique should be replaced with a patchfile dist subdir
+    if {[file exists [option distpath]/$patchfile]} {
+        ui_info "$UI_PREFIX $patchfile exists, checksumming to detect URL change"
+        if {[parse_checksums [option checksums]] == "yes"} {
+            ui_info "$UI_PREFIX [format [msgcat::mc "Checksumming %s"] $patchfile]"
+            set fullpath [file join [option distpath] $patchfile]
+            if {[info exists checksums_array($patchfile)]} {
+                set checksums $checksums_array($patchfile)
+                
+                foreach {type sum} $checksums {
+                    set calculated_sum [calc_$type $fullpath]
+                    if {![string equal $sum $calculated_sum]} {
+                        ui_debug "Checksum mismatch for $patchfile"
+                        delete $fullpath
+                        break
+                    }
+                }
+            }
+        } else {
+            return -code error "Unable to parse checksum string"
+        }
+    }
 }
\ No newline at end of file

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070409/efcb0632/attachment.html


More information about the macports-changes mailing list