<!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>[119116] trunk/dports/fuse</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/119116">119116</a></dd>
<dt>Author</dt> <dd>macsforever2000@macports.org</dd>
<dt>Date</dt> <dd>2014-04-17 14:05:34 -0700 (Thu, 17 Apr 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>osxfuse: New port. (#39456)</pre>
<h3>Added Paths</h3>
<ul>
<li>trunk/dports/fuse/osxfuse/</li>
<li><a href="#trunkdportsfuseosxfusePortfile">trunk/dports/fuse/osxfuse/Portfile</a></li>
<li>trunk/dports/fuse/osxfuse/files/</li>
<li><a href="#trunkdportsfuseosxfusefilespatchbuildsystemdiff">trunk/dports/fuse/osxfuse/files/patch-buildsystem.diff</a></li>
<li><a href="#trunkdportsfuseosxfusefilespatchkextlocationdiff">trunk/dports/fuse/osxfuse/files/patch-kext-location.diff</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsfuseosxfusePortfile"></a>
<div class="addfile"><h4>Added: trunk/dports/fuse/osxfuse/Portfile (0 => 119116)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/fuse/osxfuse/Portfile         (rev 0)
+++ trunk/dports/fuse/osxfuse/Portfile        2014-04-17 21:05:34 UTC (rev 119116)
</span><span class="lines">@@ -0,0 +1,119 @@
</span><ins>+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name osxfuse
+conflicts fuse4x
+version 2.6.4
+categories fuse devel
+platforms macosx
+license BSD APSL
+maintainers dports openmaintainer
+
+description A FUSE-Compliant File System Implementation Mechanism \
+ for Mac OS X
+long_description FUSE for OS X implements a mechanism that makes it possible to implement \
+ a fully functional file system in a user-space program on Mac OS X. It \
+ aims to be API-compliant with the FUSE (File-system in USErspace) \
+ mechanism that originated on Linux. Therefore, many existing FUSE file \
+ systems become readily usable on Mac OS X. This port provides the \
+ user-space library and header files for building filesystems.
+
+homepage http://osxfuse.github.io/
+
+# We want to match the supported arch
+set kernel_arch [exec uname -m]
+switch ${kernel_arch} {
+ i386 -
+ x86_64 {
+ supported_archs ${kernel_arch}
+ }
+ default {
+ supported_archs i386 x86_64
+ }
+}
+
+distfiles
+set mp.dist {
+ osxfuse 7b0d8d3 {rmd160 05a8896c7cd738966da1f3f18e8a17723b140dff sha256 bba529834f61fe79be00b4a6298f40a86dd8170f91979c4eeaf9378a1ce067cd}
+ kext c59029c {rmd160 a19f4d8b0f4a4660b614e1716f21db749677444c sha256 77205fce0f289c3473d3621ca612cb33d86ebf4ea932712661c9527f91013bae}
+ framework 9fdde8a {rmd160 4124b3e9c396ee41dfce35d480caff41936b8000 sha256 9dd705e05de0b346000853c08c143a15d73673684afcc9bbcf55e6c71b33fb87}
+ prefpane 8c3ea24 {rmd160 08376d5848025074b4a4feee3d5ed99bc456dfeb sha256 a6a4c5397d7faf9a3f068ddf409e8afc19292a03db0b094bbd144d5c64757118}
+ fuse 98b9960 {rmd160 589cbe0c819caded56dc4be64727580e1400fd9e sha256 f60205e19c2971228b78d180dc65cda2a6271a567229acdeb19567fcbcebb641}
+ support 1213520 {rmd160 1f774cd0d5273c02716a533463c1d374c793dfc1 sha256 57ccf15e451c132874664c00990c2df12d0dced32ba2cfe6bc6c1be863b663a9}
+}
+
+depends_build port:automake port:autoconf
+
+set mp.osxfuse_rev [lindex ${mp.dist} [expr [lsearch ${mp.dist} osxfuse] + 1]]
+worksrcdir osxfuse-osxfuse-${mp.osxfuse_rev}
+
+foreach { mp.comp mp.rev mp.chksum } ${mp.dist} {
+ set f ${mp.comp}-${mp.rev}.tar.gz
+ master_sites-append https://github.com/osxfuse/${mp.comp}/tarball/${mp.rev}/:${mp.comp}
+ distfiles-append ${f}:${mp.comp}
+ checksums-append ${f}
+ foreach {type chksum} ${mp.chksum} {
+ checksums-append ${type} ${chksum}
+ }
+}
+
+post-extract {
+ foreach { mp.comp mp.rev mp.chksum } ${mp.dist} {
+ if {${mp.comp} ne "osxfuse"} {
+ # Replace existing empty directory if it exists
+ file delete ${workpath}/${worksrcdir}/${mp.comp}
+ move ${workpath}/osxfuse-${mp.comp}-${mp.rev} ${workpath}/${worksrcdir}/${mp.comp}
+ }
+ }
+}
+
+patchfiles patch-buildsystem.diff \
+ patch-kext-location.diff
+
+post-patch {
+ # Perhaps the ports sandbox does not let us write to /tmp.
+ # For a quick and temporary fix use this reinplace.
+ file mkdir ${workpath}/tmp
+ reinplace "s,@@TMP@@,${workpath}/tmp,g" ${worksrcpath}/build.sh
+
+ # Only build the archs we want, not the hardcoded universal archs
+ reinplace -E "s,@@ARCHS@@,[get_canonical_archs],g" ${worksrcpath}/build.sh
+
+ # Inject the destroot path as the buildsystem tries to write to the prefix directly
+ reinplace -E "s,@@DESTROOT@@,${destroot},g" ${worksrcpath}/build.sh
+
+ # Correct the location of the kext
+ reinplace -E "s,@@PREFIX@@,${prefix},g" ${worksrcpath}/kext/common/fuse_param.h
+}
+
+use_configure no
+
+build.cmd ./build.sh
+# Yes, they really named this target homebrew
+build.target -t homebrew
+build.args -f ${prefix}
+
+# The build step already does everything
+destroot {}
+
+# Move filesystem bundle into place
+post-destroot {
+ # Set proper permissions
+ fs-traverse f ${destroot}${prefix}/Library {
+ file attributes $f -owner root -group wheel
+ }
+ # Enable setuid on helper binary
+ file attributes ${destroot}${prefix}/Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs -permissions 04755
+}
+destroot.violate_mtree yes
+
+notes {
+ When upgrading, unmount all FUSE filesystems and then unload the kernel extension.
+ Unloading can be done via: sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs
+ Alternativley (or if this fails), just reboot your computer now.
+}
+
+# Could probably be supported by setting ARCHS correctly above
+universal_variant no
</ins><span class="cx">Property changes on: trunk/dports/fuse/osxfuse/Portfile
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkdportsfuseosxfusefilespatchbuildsystemdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/fuse/osxfuse/files/patch-buildsystem.diff (0 => 119116)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/fuse/osxfuse/files/patch-buildsystem.diff         (rev 0)
+++ trunk/dports/fuse/osxfuse/files/patch-buildsystem.diff        2014-04-17 21:05:34 UTC (rev 119116)
</span><span class="lines">@@ -0,0 +1,66 @@
</span><ins>+--- build.sh.orig        2013-12-21 16:40:29.000000000 +0100
++++ build.sh        2013-12-21 16:43:01.000000000 +0100
+@@ -12,7 +12,7 @@
+ # Beware: GNU libtool cannot handle directory names containing whitespace.
+ # Therefore, do not set M_CONF_TMPDIR to such a directory.
+ #
+-readonly M_CONF_TMPDIR=/tmp
++readonly M_CONF_TMPDIR=@@TMP@@
+ readonly M_PLISTSIGNER_TEST_KEY="`dirname $0`/prefpane/autoinstaller/TestKeys/private_key.der"
+
+ # Other constants
+@@ -98,31 +98,31 @@
+ declare M_XCODE_VERSION_REQUIRED=""
+
+ # SDK 10.5
+-readonly M_SDK_105_ARCHS="ppc ppc64 i386 x86_64"
++readonly M_SDK_105_ARCHS="@@ARCHS@@"
+ declare M_SDK_105=""
+ declare M_SDK_105_XCODE=""
+ declare M_SDK_105_COMPILER=""
+
+ # SDK 10.6
+-readonly M_SDK_106_ARCHS="i386 x86_64"
++readonly M_SDK_106_ARCHS="@@ARCHS@@"
+ declare M_SDK_106=""
+ declare M_SDK_106_XCODE=""
+ declare M_SDK_106_COMPILER=""
+
+ # SDK 10.7
+-readonly M_SDK_107_ARCHS="i386 x86_64"
++readonly M_SDK_107_ARCHS="@@ARCHS@@"
+ declare M_SDK_107=""
+ declare M_SDK_107_XCODE=""
+ declare M_SDK_107_COMPILER=""
+
+ # SDK 10.8
+-readonly M_SDK_108_ARCHS="i386 x86_64"
++readonly M_SDK_108_ARCHS="@@ARCHS@@"
+ declare M_SDK_108=""
+ declare M_SDK_108_XCODE=""
+ declare M_SDK_108_COMPILER=""
+
+ # SDK 10.9
+-readonly M_SDK_109_ARCHS="i386 x86_64"
++readonly M_SDK_109_ARCHS="@@ARCHS@@"
+ declare M_SDK_109=""
+ declare M_SDK_109_XCODE=""
+ declare M_SDK_109_COMPILER=""
+@@ -1841,7 +1841,7 @@
+
+ local ms_osxfuse_out="$M_CONF_TMPDIR/osxfuse-homebrew-$ms_os_version-$ms_osxfuse_version"
+ local ms_osxfuse_build="$ms_osxfuse_out/build/"
+- local ms_osxfuse_root="$m_prefix"
++ local ms_osxfuse_root="@@DESTROOT@@$m_prefix"
+
+ if [ -e "$ms_osxfuse_out" ]
+ then
+@@ -1945,7 +1945,7 @@
+ xcrun make -j4 >$m_stdout 2>$m_stderr
+ m_exit_on_error "make failed while compiling the OSXFUSE library."
+
+- xcrun make install >$m_stdout 2>$m_stderr
++ xcrun make install DESTDIR="@@DESTROOT@@" >$m_stdout 2>$m_stderr
+ m_exit_on_error "cannot prepare library build for installation."
+
+ for f in "$ms_osxfuse_root"/lib/libosxfuse_i64*.dylib; do
</ins></span></pre></div>
<a id="trunkdportsfuseosxfusefilespatchkextlocationdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/fuse/osxfuse/files/patch-kext-location.diff (0 => 119116)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/fuse/osxfuse/files/patch-kext-location.diff         (rev 0)
+++ trunk/dports/fuse/osxfuse/files/patch-kext-location.diff        2014-04-17 21:05:34 UTC (rev 119116)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- kext/common/fuse_param.h.orig        2013-12-22 18:50:41.000000000 +0100
++++ kext/common/fuse_param.h        2013-12-22 18:50:44.000000000 +0100
+@@ -59,7 +59,7 @@
+
+ /* Paths */
+
+-#define OSXFUSE_BUNDLE_PATH "/Library/Filesystems/osxfusefs.fs"
++#define OSXFUSE_BUNDLE_PATH "@@PREFIX@@/Library/Filesystems/osxfusefs.fs"
+ #define OSXFUSE_KEXT OSXFUSE_BUNDLE_PATH "/Support/osxfusefs.kext"
+ #define OSXFUSE_LOAD_PROG OSXFUSE_BUNDLE_PATH "/Support/load_osxfusefs"
+ #define OSXFUSE_MOUNT_PROG OSXFUSE_BUNDLE_PATH "/Support/mount_osxfusefs"
</ins></span></pre>
</div>
</div>
</body>
</html>