ntfs-3g: use wrapper script instead of symlink for ntfsfix
This commit is contained in:
parent
b48b4e2639
commit
f444e5cd63
ntfs-3g
@ -1,5 +1,5 @@
|
||||
drwxr-xr-x root/root sbin/
|
||||
lrwxrwxrwx root/root sbin/fsck.ntfs -> /usr/bin/ntfsfix
|
||||
-rwxr-xr-x root/root sbin/fsck.ntfs
|
||||
lrwxrwxrwx root/root sbin/mount.lowntfs-3g -> /usr/bin/lowntfs-3g
|
||||
lrwxrwxrwx root/root sbin/mount.ntfs -> /usr/bin/ntfs-3g
|
||||
lrwxrwxrwx root/root sbin/mount.ntfs-3g -> /usr/bin/ntfs-3g
|
||||
|
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF38EBGf3RrUoob1qAwTDh9VQX8Ra16S3JgWZhzwTG0Icu0nF+IIDufg0zJRTxOMdLvlXwV/3FwDBw0wBlqgAR+gs=
|
||||
SHA256 (Pkgfile) = e23aad5d39daa07dc4ae1d0df22342e799c962ccb4a95d12e3fe75ac8dd8f282
|
||||
SHA256 (.footprint) = 90c3bfc133598eefdf4e35194ef566b5567104aef099a8650c58dad6304ab29c
|
||||
RWSagIOpLGJF33h75zYWMBVbDml8jCFJx/uv5TgeX+2s7kXk7IMz7OcYyy8CqqoaB1xyjwc54ODD8OIghop4GU2++YcHQ8FMbwU=
|
||||
SHA256 (Pkgfile) = 535d1746adfdc0a9c651e19e75fc6d62c2c5e1ccfe0bdd7e54f2b757361bcc7a
|
||||
SHA256 (.footprint) = a6eaebfee4b2776a9404d1c367f17ab7509c86fbbb97b0a09120059664742140
|
||||
SHA256 (ntfs-3g_ntfsprogs-2022.10.3.tgz) = f20e36ee68074b845e3629e6bced4706ad053804cbaf062fbae60738f854170c
|
||||
|
@ -6,43 +6,49 @@
|
||||
|
||||
name=ntfs-3g
|
||||
version=2022.10.3
|
||||
release=2
|
||||
release=3
|
||||
source=(https://tuxera.com/opensource/${name}_ntfsprogs-$version.tgz)
|
||||
|
||||
build() {
|
||||
cd ${name}_ntfsprogs-$version
|
||||
cd ${name}_ntfsprogs-$version
|
||||
|
||||
# $DESTDIR/lib must exist during install; the Makefile honors
|
||||
# EPREFIX by moving to the desired location afterward
|
||||
mkdir $PKG/lib
|
||||
# $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"
|
||||
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
|
||||
./configure $PKGMK_NTFS3
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
ln -s /usr/bin/ntfs-3g $PKG/sbin/mount.ntfs
|
||||
ln -s /usr/bin/ntfsfix $PKG/sbin/fsck.ntfs
|
||||
ln -s /usr/bin/ntfs-3g $PKG/sbin/mount.ntfs
|
||||
ln -s ntfs-3g.8 $PKG/usr/share/man/man8/mount.ntfs.8
|
||||
ln -s ntfsfix.8 $PKG/usr/share/man/man8/fsck.ntfs.8
|
||||
|
||||
ln -s ntfs-3g.8 $PKG/usr/share/man/man8/mount.ntfs.8
|
||||
ln -s ntfsfix.8 $PKG/usr/share/man/man8/fsck.ntfs.8
|
||||
# A wrapper script lets us silently discard any unsupported flags (from /etc/rc)
|
||||
cat >$PKG/sbin/fsck.ntfs <<\EOF
|
||||
#!/bin/sh
|
||||
ARGS="$(echo "$*" | sed 's/ -a/ -d/; s/ -p/ -d/; s/ -f//;')"
|
||||
exec /usr/bin/ntfsfix $ARGS
|
||||
EOF
|
||||
chmod 0755 $PKG/sbin/fsck.ntfs
|
||||
|
||||
rm -r $PKG/usr/share/doc $PKG/usr/lib/$name $PKG/lib $PKG/usr/lib/*.la
|
||||
rm -r $PKG/usr/share/doc $PKG/usr/lib/$name $PKG/lib $PKG/usr/lib/*.la
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user