diff -urN ntfs-3g/Portfile ntfs-3g.orig/Portfile
old
|
new
|
|
55 | 55 | #file rename -- ${destroot}/sbin/mount.ntfs-3g ${destroot}/sbin/mount_ntfs-3g |
56 | 56 | file rename -- ${destroot}${prefix}/share/man/man8/mount.ntfs-3g.8 \ |
57 | 57 | ${destroot}${prefix}/share/man/man8/mount_ntfs-3g.8 |
| 58 | |
| 59 | # copy our own mount-script to to ${prefix}. This will not be used unless manually activated |
| 60 | # by the user, but does no harm either when not. |
| 61 | file copy -- ${filespath}/mount_ntfs ${destroot}${prefix}/sbin/mount_ntfs |
| 62 | file attributes ${destroot}${prefix}/sbin/mount_ntfs -permissions 0755 |
| 63 | reinplace "s|@@PREFIX@@|${prefix}|g" ${destroot}${prefix}/sbin/mount_ntfs |
| 64 | |
| 65 | } |
| 66 | |
| 67 | variant auto_mount description {automatically mount ntfs volumes when inserted (e.g. usb-sticks). In fact this only displays the steps you have to do MANUALLY after installation, so watch out. Also there is NO ERROR CHECKING on mount, so this is for the brave only.} { |
| 68 | post-activate { |
| 69 | ui_msg "" |
| 70 | ui_msg "To finally use auto_mount, you have to point /sbin/mount_ntfs to ${prefix}/sbin/mount_ntfs!" |
| 71 | ui_msg "" |
| 72 | ui_msg "For example:" |
| 73 | ui_msg "" |
| 74 | ui_msg " `sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig`" |
| 75 | ui_msg " `sudo ln -s ${prefix}/sbin/mount_ntfs /sbin/mount_ntfs`" |
| 76 | ui_msg "" |
| 77 | ui_msg "And remember to undo this if you uninstall ntfs-3g, or else the old behaviour will not be back." |
| 78 | ui_msg "" |
| 79 | } |
58 | 80 | } |