2007-01-17 21:46:19 +11:00
|
|
|
# Description: Freely available NTFS driver with read and write support.
|
2017-02-13 08:41:45 +11:00
|
|
|
# URL: https://www.tuxera.com/community/ntfs-3g-download/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2015-05-23 21:25:07 +10:00
|
|
|
# Depends on: fuse
|
2007-01-17 21:46:19 +11:00
|
|
|
|
2013-04-13 11:11:58 +10:00
|
|
|
name=ntfs-3g
|
2019-03-05 18:23:43 +11:00
|
|
|
version=2017.3.23
|
2020-06-06 19:43:54 +10:00
|
|
|
release=3
|
2020-04-22 21:37:32 +10:00
|
|
|
source=(https://tuxera.com/opensource/ntfs-3g_ntfsprogs-$version.tgz
|
|
|
|
ntfs3g-2014.2.15-no-split-usr.patch
|
|
|
|
ntfs3g-2016.2.22-sysmacros.patch
|
|
|
|
ntfs3g-2017.3.23-check-mftmirr.patch
|
|
|
|
ntfs3g-2017.3.23-big-sectors.patch
|
|
|
|
ntfs3g-2017.3.23-full-clusters.patch
|
|
|
|
CVE-2019-9755.patch)
|
2007-01-17 21:46:19 +11:00
|
|
|
|
|
|
|
build() {
|
2013-04-13 11:11:58 +10:00
|
|
|
cd ntfs-3g_ntfsprogs-$version
|
2007-04-18 16:16:54 +10:00
|
|
|
|
2020-04-22 21:37:32 +10:00
|
|
|
patch -p1 -i $SRC/ntfs3g-2014.2.15-no-split-usr.patch
|
|
|
|
patch -p1 -i $SRC/ntfs3g-2016.2.22-sysmacros.patch
|
|
|
|
patch -p1 -i $SRC/ntfs3g-2017.3.23-check-mftmirr.patch
|
|
|
|
patch -p1 -i $SRC/ntfs3g-2017.3.23-big-sectors.patch
|
|
|
|
patch -p1 -i $SRC/ntfs3g-2017.3.23-full-clusters.patch
|
|
|
|
patch -p1 -i $SRC/CVE-2019-9755.patch
|
|
|
|
|
2015-05-23 11:26:43 +10:00
|
|
|
install -d $PKG/lib
|
|
|
|
|
2007-04-18 16:16:54 +10:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2020-04-22 21:37:32 +10:00
|
|
|
--exec-prefix=/usr \
|
|
|
|
--enable-ldscript \
|
2015-05-23 21:25:07 +10:00
|
|
|
--disable-ldconfig \
|
2016-10-07 11:06:21 +11:00
|
|
|
--with-fuse=external \
|
|
|
|
--enable-posix-acls \
|
2020-04-22 21:37:32 +10:00
|
|
|
--enable-xattr-mappings \
|
|
|
|
--without-uuid \
|
|
|
|
--without-hd \
|
2016-10-07 11:06:21 +11:00
|
|
|
--enable-extras
|
2020-04-22 21:37:32 +10:00
|
|
|
#--enable-crypto
|
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
|
|
|
|
2020-06-06 19:43:54 +10:00
|
|
|
ln -s ../usr/bin/ntfs-3g $PKG/sbin/mount.ntfs
|
2019-03-05 18:23:43 +11:00
|
|
|
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
|
|
|
|
|
|
|
rm -r $PKG/usr/share/doc
|
2007-01-17 21:46:19 +11:00
|
|
|
}
|