Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ntfs-3g: update to 2017.3.23 #846

Merged
merged 1 commit into from Oct 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 6 additions & 22 deletions fuse/ntfs-3g/Portfile
Expand Up @@ -3,7 +3,7 @@
PortSystem 1.0

name ntfs-3g
version 2015.3.14
version 2017.3.23
categories fuse
platforms darwin
maintainers nomaintainer
Expand All @@ -24,8 +24,8 @@ extract.suffix .tgz

master_sites http://tuxera.com/opensource/

checksums rmd160 67cbb81ab619c0941fe23a73e9a187a73008d51e \
sha256 97f996015d8316d4a272bd2629978e5e97072dd3cc148ce39802f8037c6538f2
checksums rmd160 aae0cd7a2560ad87ba41832f1b34af5aaaa38739 \
sha256 3e5a021d7b761261836dcb305370af299793eedbded731df3d6943802e1262d5

livecheck.type regex
livecheck.regex {stable version</span></b> is <a href="https://tuxera.com/opensource/ntfs-3g_ntfsprogs-(.+?)\.tgz"}
Expand All @@ -43,6 +43,9 @@ universal_variant no
patchfiles patch-configure.diff

configure.args --exec-prefix=${prefix} --with-fuse=external
# do not try to use this function in macOS 10.13 to avoid compilation error
# (older versions don't have this function)
configure.env ac_cv_func_utimensat=no

platform darwin {
depends_lib-append port:gettext
Expand All @@ -53,25 +56,6 @@ pre-destroot {
file mkdir ${destroot}/sbin
}

post-destroot {
# ntfs-3g symlinks /sbin/mount.ntfs-3g to ${prefix}/bin/ntfs-3g
# but on darwin mount wants mount_* instead of mount.*

# /sbin/mount.ntfs-3g is no longer installed with recent versions of ntfs-3g
# but check here to verify so updates don't miss it if it's turned back on
if {[file exists ${destroot}/sbin/mount.ntfs-3g]} {
# This violated the tree restrictions, hopefully fixed by now.
file rename -- ${destroot}/sbin/mount.ntfs-3g \
${destroot}${prefix}/sbin/mount_ntfs-3g
}
file rename -- ${destroot}${prefix}/share/man/man8/mount.ntfs-3g.8 \
${destroot}${prefix}/share/man/man8/mount_ntfs-3g.8

# This violated the tree restrictions, hopefully fixed by now.
file rename -- ${destroot}/sbin/mkfs.ntfs \
${destroot}${prefix}/sbin/mkfs.ntfs
}

notes "
To make this port work in the Finder, see this link: <https://trac.macports.org/wiki/howto/Ntfs3gFinder>
"