From 2be5bf8600b72e34c8d1b4ae514c7ff250844483 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Fonzo?= Date: Fri, 6 May 2022 17:44:40 -0300 Subject: [PATCH] recipes: tools/ntfs-3g: Added version 2021.8.22 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Matías Fonzo --- archive/ntfs-3g/mount.ntfs3 | 7 ++ recipes/00-core.order | 1 + recipes/tools/ntfs-3g/recipe | 114 +++++++++++++++++++++++++ sources/SOURCELIST.txt | 1 + sources/ntfs-3g_ntfsprogs-2021.8.22.tgz.sha256 | 1 + 5 files changed, 124 insertions(+) create mode 100644 archive/ntfs-3g/mount.ntfs3 create mode 100644 recipes/tools/ntfs-3g/recipe create mode 100644 sources/ntfs-3g_ntfsprogs-2021.8.22.tgz.sha256 diff --git a/archive/ntfs-3g/mount.ntfs3 b/archive/ntfs-3g/mount.ntfs3 new file mode 100644 index 00000000..42c7e52c --- /dev/null +++ b/archive/ntfs-3g/mount.ntfs3 @@ -0,0 +1,7 @@ +#! /bin/sh - + +# This will try to invoke the new driver to read/write NTFS file systems +# which was introduced into Linux Kernel series 5.15+. + +exec mount -t ntfs3 "$@" + diff --git a/recipes/00-core.order b/recipes/00-core.order index 7bfb9ac3..eb01d187 100644 --- a/recipes/00-core.order +++ b/recipes/00-core.order @@ -247,6 +247,7 @@ tools/reiser4progs: libs/libaal tools/btrfs-progs: libs/lzo tools/squashfs-tools: tools/attr compressors/plzip +tools/ntfs-3g: libs/fuse2 tools/util-linux tools/gptfdisk: libs/icu tools/util-linux tools/parted: tools/lvm2 tools/util-linux tools/ddrescue: diff --git a/recipes/tools/ntfs-3g/recipe b/recipes/tools/ntfs-3g/recipe new file mode 100644 index 00000000..8a657cf9 --- /dev/null +++ b/recipes/tools/ntfs-3g/recipe @@ -0,0 +1,114 @@ +# Build recipe for ntfs-3g. +# +# Copyright (c) 2022 Matias Fonzo, . +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Exit immediately on any error +set -e + +program=ntfs-3g_ntfsprogs +pkgname=ntfs-3g +version=2021.8.22 +release=1 + +# Define a category for the output of the package name +pkgcategory=tools + +tarname=${program}-${version}.tgz + +# Remote source(s) +fetch=https://tuxera.com/opensource/$tarname + +description=" +Drivers and utilities for the NTFS file system. + +The ntfs-3g package contains a stable, read-write open source driver for +NTFS partitions. NTFS partitions are used by most Microsoft operating +systems, ntfs-3g allows you to mount NTFS partitions in read-write mode +from your GNU/Linux system. It uses the FUSE kernel module to be able to +implement NTFS support in user space. The package also contains various +utilities useful for manipulating NTFS partitions. +" + +homepage=https://www.tuxera.com/community/open-source-ntfs-3g/ +license="GPLv2+, LGPLv2+" + +# Source documentation +docs="AUTHORS COPYING* CREDITS ChangeLog NEWS README TODO*" +docsdir="${docdir}/${pkgname}-${version}" + +build() +{ + unpack "${tardir}/$tarname" + + cd "$srcdir" + + # Set sane permissions + chmod -R u+w,go-w,a+rX-s . + + # Make sure to point to the /usr hierarchy + sed -i 's#$(DESTDIR)/sbin#$(DESTDIR)/usr/sbin#g' src/Makefile.in + + ./configure CPPFLAGS="$QICPPFLAGS" \ + CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \ + $configure_args \ + --libdir=/usr/lib${libSuffix} \ + --mandir=$mandir \ + --docdir=$docsdir \ + --enable-static=no \ + --enable-extras \ + --enable-posix-acls \ + --enable-xattr-mappings \ + --enable-crypto \ + --with-fuse=external \ + --disable-ldconfig \ + --build="$(gcc -dumpmachine)" \ + rootbindir=/usr/bin \ + rootsbindir=/usr/sbin \ + rootlibdir=/usr/lib${libSuffix} \ + + make -j${jobs} V=1 \ + rootbindir=/usr/bin \ + rootsbindir=/usr/sbin \ + rootlibdir=/usr/lib${libSuffix} \ + DESTDIR="$destdir" install + + install -p -m 755 "${worktree}/archive/ntfs-3g/mount.ntfs3" \ + "${destdir}/usr/bin/mount.ntfs3" + + # Check if 'ntfsallocate' was installed, if not remove its manpage + if test ! -e "${destdir}/usr/bin/ntfsallocate" + then + rm -f "${destdir}/${mandir}/ntfsfallocate.8" + fi + + # Compress and link man pages (if needed) + if test -d "${destdir}/$mandir" + then + ( + cd "${destdir}/$mandir" + find . -type f -exec lzip -9 {} + + find . -type l | while read -r file + do + ln -sf "$(readlink -- "$file").lz" "${file}.lz" + rm -- "$file" + done + ) + fi + + # Copy documentation + mkdir -p "${destdir}${docsdir}" + cp -p $docs "${destdir}${docsdir}" +} + diff --git a/sources/SOURCELIST.txt b/sources/SOURCELIST.txt index 0f176ba1..77f23f51 100644 --- a/sources/SOURCELIST.txt +++ b/sources/SOURCELIST.txt @@ -331,6 +331,7 @@ https://sqlite.org/2022/sqlite-autoconf-3370200.tar.gz https://strace.io/files/5.16/strace-5.16.tar.xz https://thrysoee.dk/editline/libedit-20210910-3.1.tar.gz https://tukaani.org/xz/xz-5.2.5.tar.bz2 +https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2021.8.22.tgz https://user-dirs.freedesktop.org/releases/xdg-user-dirs-0.17.tar.gz https://w1.fi/releases/wpa_supplicant-2.10.tar.gz https://weechat.org/files/src/weechat-3.4.tar.bz2 diff --git a/sources/ntfs-3g_ntfsprogs-2021.8.22.tgz.sha256 b/sources/ntfs-3g_ntfsprogs-2021.8.22.tgz.sha256 new file mode 100644 index 00000000..e315f463 --- /dev/null +++ b/sources/ntfs-3g_ntfsprogs-2021.8.22.tgz.sha256 @@ -0,0 +1 @@ +55b883aa05d94b2ec746ef3966cb41e66bed6db99f22ddd41d1b8b94bb202efb ntfs-3g_ntfsprogs-2021.8.22.tgz -- 2.11.4.GIT