gnu: ntfs-3g: Link 'mount.ntfs' to 'mount.ntfs-3g'.

* gnu/packages/linux.scm (ntfs-3g)[arguments]: Add #:phases.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Pierre Neidhardt 2018-05-23 14:42:36 +02:00 committed by Ludovic Courtès
parent 109f022e9d
commit 914205214c
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -3432,7 +3432,19 @@ (define-public ntfs-3g
"--with-fuse=external" ;use our own FUSE
"--enable-mount-helper"
"--enable-posix-acls"
"--enable-xattr-mappings")))
"--enable-xattr-mappings")
#:phases
(modify-phases %standard-phases
;; If users install ntfs-3g, they probably want to make it the
;; default driver as well, so we opt for sensible defaults and link
;; mount.ntfs to mount.ntfs-3g. (libmount tries to run mount.ntfs to
;; mount NTFS filesystems.)
(add-after 'install 'install-link
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(sbin (string-append out "/sbin")))
(symlink "mount.ntfs-3g"
(string-append sbin "/mount.ntfs"))))))))
(home-page "https://www.tuxera.com/community/open-source-ntfs-3g/")
(synopsis "Read-write access to NTFS file systems")
(description