2007-01-17 21:46:19 +11:00
|
|
|
# Description: Freely available NTFS driver with read and write support.
|
2021-02-01 22:18:35 +11:00
|
|
|
# URL: https://www.tuxera.com/company/open-source/
|
2023-03-03 11:22:38 -05:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
|
|
|
# Depends on: gnutls libgcrypt
|
|
|
|
# Optional: fuse
|
2007-01-17 21:46:19 +11:00
|
|
|
|
2013-04-13 11:11:58 +10:00
|
|
|
name=ntfs-3g
|
2022-11-01 14:10:42 +00:00
|
|
|
version=2022.10.3
|
2023-03-03 11:22:38 -05:00
|
|
|
release=2
|
|
|
|
source=(https://tuxera.com/opensource/${name}_ntfsprogs-$version.tgz)
|
2007-01-17 21:46:19 +11:00
|
|
|
|
|
|
|
build() {
|
2023-03-03 11:22:38 -05:00
|
|
|
cd ${name}_ntfsprogs-$version
|
|
|
|
|
|
|
|
# $DESTDIR/lib must exist during install; the Makefile honors
|
|
|
|
# EPREFIX by moving to the desired location afterward
|
|
|
|
mkdir $PKG/lib
|
|
|
|
|
|
|
|
PKGMK_NTFS3="--prefix=/usr
|
|
|
|
--exec-prefix=/usr
|
|
|
|
--bindir=/usr/bin
|
|
|
|
--sbindir=/usr/sbin
|
|
|
|
--libexecdir=/usr/lib
|
|
|
|
--enable-crypto
|
|
|
|
--enable-extras
|
|
|
|
--enable-ldscript
|
|
|
|
--enable-posix-acls
|
|
|
|
--enable-xattr-mappings
|
|
|
|
--disable-ldconfig
|
|
|
|
--disable-static
|
|
|
|
--without-uuid
|
|
|
|
--without-hd"
|
|
|
|
prt-get isinst fuse && PKGMK_NTFS3+=" --with-fuse=external" \
|
|
|
|
|| PKGMK_NTFS3+=" --with-fuse=internal"
|
|
|
|
|
|
|
|
./configure $PKGMK_NTFS3
|
2007-04-18 16:16:54 +10:00
|
|
|
|
2007-01-17 21:46:19 +11:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2008-04-13 09:07:22 +10:00
|
|
|
|
2023-03-03 11:22:38 -05:00
|
|
|
ln -s /usr/bin/ntfs-3g $PKG/sbin/mount.ntfs
|
|
|
|
ln -s /usr/bin/ntfsfix $PKG/sbin/fsck.ntfs
|
2016-10-20 18:43:07 +11:00
|
|
|
|
|
|
|
ln -s ntfs-3g.8 $PKG/usr/share/man/man8/mount.ntfs.8
|
2020-06-06 19:43:54 +10:00
|
|
|
ln -s ntfsfix.8 $PKG/usr/share/man/man8/fsck.ntfs.8
|
2016-10-20 18:43:07 +11:00
|
|
|
|
2023-03-03 11:22:38 -05:00
|
|
|
rm -r $PKG/usr/share/doc $PKG/usr/lib/$name $PKG/lib $PKG/usr/lib/*.la
|
2007-01-17 21:46:19 +11:00
|
|
|
}
|