[129493] trunk/dports/fuse/osxfuse/Portfile
Ryan Schmidt
ryandesign at macports.org
Sat Dec 13 19:43:01 PST 2014
On Dec 13, 2014, at 9:38 PM, dports at macports.org wrote:
> Revision
> 129493
> Author
> dports at macports.org
> Date
> 2014-12-13 19:38:21 -0800 (Sat, 13 Dec 2014)
> Log Message
>
> 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)
>
> Modified Paths
>
> • trunk/dports/fuse/osxfuse/Portfile
> +master_sites-append sourceforge
> +distfiles-append ${name}-${version}.dmg
It looks like you're downloading the dmg in all cases...
> + osxfuse-2.7.3.dmg \
> + rmd160 f7b91f7750a69da97d72cf6d7ac65b4bd27408c4 \
> + sha256 88d0594e46191aeafa259535398d25c4ccfa03c178e10d925a69e4dcb6293fa2
(by the way the version number should not be hardcoded here; use ${name}-${version}.dmg like you did when you appended it to distfiles)
> +# 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} >= 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
> + }
> +}
...but are only using it on Yosemite and later? You should only download the dmg if it's needed.
More information about the macports-dev
mailing list