1 | # $Id: Portfile 69429 2010-07-05 21:59:57Z dports@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name ntfs-3g |
---|
6 | version 2010.8.8 |
---|
7 | categories fuse |
---|
8 | platforms darwin |
---|
9 | maintainers netatonce.net:petri \ |
---|
10 | openmaintainer |
---|
11 | description Safe read/write NTFS driver for FUSE |
---|
12 | long_description The NTFS-3G driver is an open source, freely available \ |
---|
13 | NTFS driver for FUSE with read and write support. It \ |
---|
14 | provides safe and fast handling of the Windows XP, Windows \ |
---|
15 | Server 2003, Windows 2000 and Windows Vista file systems. \ |
---|
16 | Most POSIX file system operations are supported, with the \ |
---|
17 | exception of full file ownership and access right support. |
---|
18 | |
---|
19 | homepage http://www.tuxera.com/community/ntfs-3g-download/ |
---|
20 | extract.suffix .tgz |
---|
21 | |
---|
22 | master_sites http://tuxera.com/opensource/ |
---|
23 | checksums md5 6c109746c2708f679725a2ea441c61c6 \ |
---|
24 | sha1 f9862700905b23b06e7944f663352227b9c776a6 \ |
---|
25 | rmd160 07521bd66c4cd26bb40ac84629159eec8d8da43d |
---|
26 | |
---|
27 | livecheck.type regex |
---|
28 | livecheck.regex {stable version</font></b> is <a href="http://tuxera.com/opensource/ntfs-3g-(.+?)\.tgz">} |
---|
29 | |
---|
30 | depends_build port:pkgconfig |
---|
31 | depends_lib port:macfuse |
---|
32 | |
---|
33 | configure.args --exec-prefix=${prefix} --with-fuse=external |
---|
34 | |
---|
35 | platform darwin { |
---|
36 | configure.ldflags-append -framework CoreFoundation |
---|
37 | } |
---|
38 | |
---|
39 | #destroot.violate_mtree yes |
---|
40 | |
---|
41 | pre-destroot { |
---|
42 | file mkdir ${destroot}/sbin |
---|
43 | } |
---|
44 | |
---|
45 | post-destroot { |
---|
46 | # ntfs-3g symlinks /sbin/mount.ntfs-3g to ${prefix}/bin/ntfs-3g |
---|
47 | # but on darwin mount wants mount_* instead of mount.* |
---|
48 | |
---|
49 | # /sbin/mount.ntfs-3g is no longer installed with recent versions of ntfs-3g |
---|
50 | # but let's add a check here to verify this, so an update doesn't miss it if it's turned back on |
---|
51 | if {[file exists ${destroot}/sbin/mount.ntfs-3g]} { |
---|
52 | error "${destroot}/sbin/mount.ntfs-3g is present" |
---|
53 | } |
---|
54 | #file rename -- ${destroot}/sbin/mount.ntfs-3g ${destroot}/sbin/mount_ntfs-3g |
---|
55 | file rename -- ${destroot}${prefix}/share/man/man8/mount.ntfs-3g.8 \ |
---|
56 | ${destroot}${prefix}/share/man/man8/mount_ntfs-3g.8 |
---|
57 | } |
---|