mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-06 11:02:53 +00:00
85 lines
3.3 KiB
Bash
85 lines
3.3 KiB
Bash
#! /bin/bash
|
|
|
|
# Ntfs-3g
|
|
# Source: https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2021.8.22.tgz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: NONE
|
|
# Recommended: NONE
|
|
# Optional: libfuse (disables user mounts)
|
|
|
|
#patch -Np1 -i ../patches/ntfs-3g-adelie/CVE-2019-9755.patch &&
|
|
|
|
# If optimizing with GCC:
|
|
export CFLAGS="-march=native -O2 "
|
|
export CFLAGS+="-fno-lto -fstack-protector-strong -fzero-call-used-regs=used "
|
|
export CXXFLAGS=$CFLAGS
|
|
unset LDFLAGS
|
|
|
|
./configure --prefix=/usr \
|
|
--disable-static \
|
|
--with-fuse=internal \
|
|
--docdir=/usr/share/doc/ntfs-3g-2021.8.22 \
|
|
--bindir=/usr/bin --libdir=/usr/lib --sbindir=/usr/bin $BUILDTRUPLE &&
|
|
read -p "Compile?" && make -j2 &&
|
|
|
|
sudo -S make DESTDIR=$BUILD install &&
|
|
# /bin and /sbin are not longer directories, but are just links
|
|
# to /usr/bin & /usr/sbin
|
|
sudo -S mv $BUILD/bin/* $BUILD/usr/bin/ && \
|
|
sudo -S rm -rf $BUILD/bin && \
|
|
sudo -S rm -rf $BUILD/sbin && \
|
|
sudo -S mkdir $BUILD/usr/sbin && \
|
|
sudo -S ln -sv ../bin/lowntfs-3g usr/sbin/lowntfs-3g && \
|
|
sudo -S ln -sv ../bin/ntfs-3g usr/sbin/ntfs-3g && \
|
|
sudo -S rm -rf usr/bin/mkfs.ntfs && \
|
|
sudo -S ln -sv mkntfs usr/bin/mkfs.ntfs && \
|
|
|
|
sudo -S mkdir -pv /BMAN/install && \
|
|
sudo -S mkdir -pv /BMAN/usr && \
|
|
sudo -S mv $BUILD/usr/share /BMAN/usr/ && \
|
|
|
|
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
# HOW TO EDIT THIS FILE:
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
ntfs-3g: ntfs-3g (NTFS read-write filesystem driver)
|
|
ntfs-3g:
|
|
ntfs-3g: The NTFS-3G driver is an open source, freely available NTFS driver
|
|
ntfs-3g: for Linux with read and write support. It provides safe and fast
|
|
ntfs-3g: handling of the Windows XP, Windows Server 2003, Windows 2000 and
|
|
ntfs-3g: Windows Vista file systems. Most POSIX file system operations are
|
|
ntfs-3g: supported, with the exception of full file ownership and access
|
|
ntfs-3g: rights support.
|
|
ntfs-3g:
|
|
ntfs-3g: Homepage: http://www.tuxera.com/community/open-source-ntfs-3g/
|
|
ntfs-3g:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S ln -s ../bin/ntfs-3g usr/sbin/mount.ntfs &&
|
|
sudo -S makepkg -l y -c n $PKGS/ntfs-3g-2021.8.22-$(uname -m)-mlfs.txz &&
|
|
cd /BMAN && \
|
|
cat > /tmp/slack-desc << "EOF"
|
|
ntfs-3g-doc: Manuals for ntfs-3g (NTFS read-write filesystem driver)
|
|
ntfs-3g-doc:
|
|
ntfs-3g-doc: This driver is an open source, freely available NTFS driver for
|
|
ntfs-3g-doc: Linux with read and write support. It provides safe and fast
|
|
ntfs-3g-doc: handling of the Windows XP, Windows Server 2003, Windows 2000 and
|
|
ntfs-3g-doc: Windows Vista file systems.
|
|
ntfs-3g-doc:
|
|
ntfs-3g-doc: http://www.tuxera.com/community/open-source-ntfs-3g/
|
|
ntfs-3g-doc:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/ntfs-3g-doc-2021.8.22-noarch-mlfs.txz && \
|
|
sudo -S rm -rf ${BUILD}/* /BMAN/*
|