<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[129493] trunk/dports/fuse/osxfuse/Portfile</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/129493">129493</a></dd>
<dt>Author</dt> <dd>dports@macports.org</dd>
<dt>Date</dt> <dd>2014-12-13 19:38:21 -0800 (Sat, 13 Dec 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>osxfuse: update to v2.7.3; on Yosemite, use a signed binary of the
kext instead of building our own unsigned one so it can actually be
loaded (#45521)</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsfuseosxfusePortfile">trunk/dports/fuse/osxfuse/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsfuseosxfusePortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/fuse/osxfuse/Portfile (129492 => 129493)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/fuse/osxfuse/Portfile        2014-12-14 03:24:55 UTC (rev 129492)
+++ trunk/dports/fuse/osxfuse/Portfile        2014-12-14 03:38:21 UTC (rev 129493)
</span><span class="lines">@@ -4,7 +4,8 @@
</span><span class="cx"> PortSystem          1.0
</span><span class="cx"> 
</span><span class="cx"> name                osxfuse
</span><del>-version             2.7.2
</del><ins>+version             2.7.3
+set branch          [join [lrange [split ${version} .] 0 1] .]
</ins><span class="cx"> categories          fuse devel
</span><span class="cx"> platforms           macosx
</span><span class="cx"> license             BSD APSL
</span><span class="lines">@@ -36,12 +37,12 @@
</span><span class="cx"> 
</span><span class="cx"> distfiles
</span><span class="cx"> set mp.dist {
</span><del>-    osxfuse     400d171
-    kext        a8a109b
</del><ins>+    osxfuse     d59bddc
+    kext        a264485
</ins><span class="cx">     framework   dc53dea
</span><del>-    prefpane    1c603b0
</del><ins>+    prefpane    a30fa57
</ins><span class="cx">     fuse        98b9960
</span><del>-    support     2698c5e
</del><ins>+    support     4868d64
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> depends_build       port:autoconf \
</span><span class="lines">@@ -57,27 +58,44 @@
</span><span class="cx">     distfiles-append    ${f}:${mp.comp}
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-checksums           osxfuse-400d171.tar.gz \
-                    rmd160  9f0c6e8829d5fa058513a7cb9cc6066bc370a220 \
-                    sha256  dc1df774ce249e67a90e3ab555f1714838fb51f2399247a05f7c18416631993e \
-                    kext-a8a109b.tar.gz \
-                    rmd160  adaee514087099ab0abae75350cb47e1532747aa \
-                    sha256  fc9c1379047628a5f98497b8df22e78cfbe4d4c7844cff71c3e69ccedd261b7e \
</del><ins>+master_sites-append sourceforge
+distfiles-append ${name}-${version}.dmg
+
+checksums           osxfuse-d59bddc.tar.gz \
+                    rmd160  b703a9bedf7aa73c97abaa5e2b4125db0feb33c2 \
+                    sha256  6acf5c456f96fedc397e5ef617124547bd0e291d96816b1c722ef995bc077672 \
+                    kext-a264485.tar.gz \
+                    rmd160  776e6f903870f2c82497d21e68a3371472423c3a \
+                    sha256  fa7e70685373302fbfd6c9e419af1262c9cec427b157a52e6f945b7031e04a2b \
</ins><span class="cx">                     framework-dc53dea.tar.gz \
</span><span class="cx">                     rmd160  a25bfda1f77f43b7c90655b73ac913f2fa5b515b \
</span><span class="cx">                     sha256  ca0f7addb831b9d845ce6fddc12f32e1d7d51fa3756ca7d9f41d3e4718b8a75b \
</span><del>-                    prefpane-1c603b0.tar.gz \
-                    rmd160  aab76bc71f400785d95becb3714c52b3cad6f5b0 \
-                    sha256  1a87ad0badc8c916fbbc4096a7c7bd85e68d444524b233045bab2a4e8d7f842d \
</del><ins>+                    prefpane-a30fa57.tar.gz \
+                    rmd160  0bf0698bfcb0946bdba2dee308c94c373fc91f6a \
+                    sha256  03fe8681ded02dee1ab690d518dc8bdb5c58647024a77ef69701c2fcb8b4ce2a \
</ins><span class="cx">                     fuse-98b9960.tar.gz \
</span><span class="cx">                     rmd160  589cbe0c819caded56dc4be64727580e1400fd9e \
</span><span class="cx">                     sha256  f60205e19c2971228b78d180dc65cda2a6271a567229acdeb19567fcbcebb641 \
</span><del>-                    support-2698c5e.tar.gz \
-                    rmd160  d1ae10e4d3329e336d7dea6508ad1f3ee902efa3 \
-                    sha256  83f7577ba28cb8c5096391b63daae000b98887ad75b60beedc385b0f00f23f89
</del><ins>+                    support-4868d64.tar.gz \
+                    rmd160  d321d49bc3040a3227143204b57d6361eb67a9ed \
+                    sha256  d6cd13707f0f202b2c2391b5410decf1776d1306180da8164c02e5fcf6ba8b43 \
+                    osxfuse-2.7.3.dmg \
+                    rmd160  f7b91f7750a69da97d72cf6d7ac65b4bd27408c4 \
+                    sha256  88d0594e46191aeafa259535398d25c4ccfa03c178e10d925a69e4dcb6293fa2
</ins><span class="cx"> 
</span><ins>+# extract phase will just extract the dmg; post-extract will expand
+# the tarballs
+use_dmg yes
+extract.only ${name}-${version}.dmg
+
</ins><span class="cx"> post-extract {
</span><ins>+    # Extract the pkg and the appropriate payload from the binary dmg
+    system -W ${workpath}/${name}-${version} &quot;pkgutil --expand 'Install OSXFUSE ${branch}.pkg' ${workpath}/pkg&quot;
+    system -W ${workpath}/pkg/10.9/OSXFUSECore.pkg &quot;gzip -dc Payload | cpio -id&quot;
+
+    # Extract the source tarballs
</ins><span class="cx">     foreach { mp.comp mp.rev } ${mp.dist} {
</span><ins>+        system -W ${workpath} &quot;tar -xvf ${distpath}/${mp.comp}-${mp.rev}.tar.gz&quot;
</ins><span class="cx">         if {${mp.comp} ne &quot;osxfuse&quot;} {
</span><span class="cx">             # Replace existing empty directory if it exists
</span><span class="cx">             file delete ${workpath}/${worksrcdir}/${mp.comp}
</span><span class="lines">@@ -125,12 +143,27 @@
</span><span class="cx">     # Enable setuid on helper binary
</span><span class="cx">     file attributes ${destroot}${prefix}/Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs -permissions 04755
</span><span class="cx"> }
</span><ins>+
+
+# On Yosemite, replace the kext we just built with the one from the
+# binary distribution. This works around OS X's unwillingness to load
+# an unsigned kext (and our inability to sign kexts). See #45521.
+if {${os.major} &gt;= 14} {
+    post-destroot {
+        delete ${destroot}${prefix}/Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext \
+            ${destroot}${prefix}/Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext.dSYM
+        
+        file copy ${workpath}/pkg/10.9/OSXFUSECore.pkg/Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext \
+            ${destroot}${prefix}/Library/Filesystems/osxfusefs.fs/Support
+    }
+}
+
</ins><span class="cx"> destroot.violate_mtree yes
</span><span class="cx"> 
</span><span class="cx"> notes {
</span><span class="cx">     When upgrading, unmount all FUSE filesystems and then unload the kernel extension.
</span><span class="cx">     Unloading can be done via: sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs
</span><del>-    Alternativley (or if this fails), just reboot your computer now.
</del><ins>+    Alternatively (or if this fails), just reboot your computer now.
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Could probably be supported by setting ARCHS correctly above
</span></span></pre>
</div>
</div>

</body>
</html>