summaryrefslogtreecommitdiff
path: root/sys-fs/ntfs3g
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/ntfs3g')
-rw-r--r--sys-fs/ntfs3g/Manifest4
-rw-r--r--sys-fs/ntfs3g/files/ntfs3g-2022.5.17-configure-bashism.patch36
-rw-r--r--sys-fs/ntfs3g/metadata.xml1
-rw-r--r--sys-fs/ntfs3g/ntfs3g-2022.5.17-r1.ebuild94
4 files changed, 134 insertions, 1 deletions
diff --git a/sys-fs/ntfs3g/Manifest b/sys-fs/ntfs3g/Manifest
index 7070ea8be0cd..86e3b04379d8 100644
--- a/sys-fs/ntfs3g/Manifest
+++ b/sys-fs/ntfs3g/Manifest
@@ -1,3 +1,5 @@
+AUX ntfs3g-2022.5.17-configure-bashism.patch 1089 BLAKE2B ceb22696f62d69b78bd91d2b5a045df823afd58779b1bd46d7b31adc414476577d01a6f4fb2449c1a30635de5f1d1bbbf025b4ee2182219d905709470e882726 SHA512 650f9d823b1815be3d959f128e7f1c4dffc38012c13ee97c4481a9d930841b6c52154a6fa7cada7dc192c0dddd934af1c0063e509eb67415e700c94d0c889a30
DIST ntfs-3g_ntfsprogs-2022.5.17.tgz 1318476 BLAKE2B 0f3d5b3ca6186886b1a4f1fc59242a1f4ccdc842cbe53b0869f707c1dbebdd58058d40b265dae663b71a2a611f7ce5392c63afa3053dc075155759c10499d529 SHA512 25e6d3412958576b0cd614f5d93201c0d7e8bbee78fbaf956718a3825c1435b3f0c3631ea1cc60b5b1be6e9ae7d58c0c03b0bebb69edee3bf181a966734336df
+EBUILD ntfs3g-2022.5.17-r1.ebuild 2166 BLAKE2B 66f857a2f5faff87ce0a828032b5fb159d96801f4817232ecd7f49d6f3da5083cc8142a98d17f5edd62e5e957ccd32925458417c208fcd501dd0250642d23789 SHA512 29a4874a62afd6f24da48f99daa274e2724152232481653e0d22671b3dd3a9b232fde0cbdcd70ff89a1a74b6c4ecf9d75986dc1c7292b8c7709f7dd8ff5030f9
EBUILD ntfs3g-2022.5.17.ebuild 2006 BLAKE2B 44312725439784318f5f4bee38f610668068633b0675146c7d7a34922dc9e6f51ec9c1fa1ce898d874eb4affb7577a3cc540505a9b498dfa401ed10e9842181f SHA512 d65b6c6adb5894c52945ff3bd4f177247d09e54172b1f8fb7d35e317b8a6ea33fd2c12a9d6cb9da1077d60df76315f7a2232868fd6f8cf7120859e165171a471
-MISC metadata.xml 1164 BLAKE2B 276dcf2d0cccad4b91a84390949ff8a81b76e54c22d7bfbe4b778c97917224f3d0603079fb74e4b3ff0e058580f4ac6540aef3bae4fdc6ae9b2fb54b831e22ea SHA512 63391014c4dc8ba722c8f90d6fe1952b5f4386d44b1bb2af195e907e5027ede0f4063e4390679b6b521b892fcc12194914b4f40a09c6bc08a300a90bdd250390
+MISC metadata.xml 1218 BLAKE2B d74c49ff5aca2fc15835a3001cc86d5fac91d93477e443efd5b03bef9c8cf9f7f7e2542beebcfceecee45e807edc642c978e1ecc7a90edaa73a10a5090e0385a SHA512 4975d85cca562181abdf929bdba83194cb333de9390a9004484a3a338af0e5f809ad444584929be118784cd249ccb73f3271b3e54d20438cfcbf5a054352d56f
diff --git a/sys-fs/ntfs3g/files/ntfs3g-2022.5.17-configure-bashism.patch b/sys-fs/ntfs3g/files/ntfs3g-2022.5.17-configure-bashism.patch
new file mode 100644
index 000000000000..280620d0ee68
--- /dev/null
+++ b/sys-fs/ntfs3g/files/ntfs3g-2022.5.17-configure-bashism.patch
@@ -0,0 +1,36 @@
+https://github.com/tuxera/ntfs-3g/pull/58
+
+From a008fc4b3553583369111b145172a92542de4598 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Thu, 22 Sep 2022 04:00:45 +0100
+Subject: [PATCH] configure.ac: fix bashism in fuse check
+
+configure scripts need to be runnable with a POSIX-compliant /bin/sh.
+
+On many (but not all!) systems, /bin/sh is provided by Bash, so errors
+like this aren't spotted. Notably Debian defaults to /bin/sh provided
+by dash which doesn't tolerate such bashisms as '=='.
+
+This retains compatibility with bash.
+
+Fixes configure warnings/errors like:
+```
+checking Windows OS... no
+./configure: 13360: test: xinternal: unexpected operator
+checking for pthread_create in -lpthread... yes
+checking Solaris OS... no
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/configure.ac
++++ b/configure.ac
+@@ -228,7 +228,7 @@ esac
+
+ if test "x${enable_ntfs_3g}" != "xyes"; then
+ with_fuse="none"
+-elif test "x${with_fuse}" == "x"; then
++elif test "x${with_fuse}" = "x"; then
+ AC_MSG_CHECKING([fuse compatibility])
+ case "${target_os}" in
+ linux*|solaris*)
+
diff --git a/sys-fs/ntfs3g/metadata.xml b/sys-fs/ntfs3g/metadata.xml
index 910a26c2caf5..34b4fc4eb13f 100644
--- a/sys-fs/ntfs3g/metadata.xml
+++ b/sys-fs/ntfs3g/metadata.xml
@@ -25,5 +25,6 @@
<bugs-to>http://tuxera.com/forum/</bugs-to>
<remote-id type="cpe">cpe:/a:ntfs-3g:ntfs-3g</remote-id>
<remote-id type="sourceforge">ntfs-3g</remote-id>
+ <remote-id type="github">tuxera/ntfs-3g</remote-id>
</upstream>
</pkgmetadata>
diff --git a/sys-fs/ntfs3g/ntfs3g-2022.5.17-r1.ebuild b/sys-fs/ntfs3g/ntfs3g-2022.5.17-r1.ebuild
new file mode 100644
index 000000000000..085691d55b6d
--- /dev/null
+++ b/sys-fs/ntfs3g/ntfs3g-2022.5.17-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 2006-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+MY_P="ntfs-3g_ntfsprogs-${PV}"
+
+DESCRIPTION="Open source read-write NTFS driver that runs under FUSE"
+HOMEPAGE="http://www.tuxera.com/community/ntfs-3g-download/"
+HOMEPAGE="https://jp-andre.pagesperso-orange.fr/advanced-ntfs-3g.html"
+SRC_URI="http://tuxera.com/opensource/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+# The subslot matches the SONAME major #.
+SLOT="0/89"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="acl debug +fuse +mount-ntfs ntfsdecrypt +ntfsprogs static-libs suid xattr"
+
+RDEPEND="
+ sys-apps/util-linux:0=
+ ntfsdecrypt? (
+ >=dev-libs/libgcrypt-1.2.2:0
+ >=net-libs/gnutls-1.4.4
+ )
+"
+DEPEND="${RDEPEND}
+ sys-apps/attr
+"
+BDEPEND="
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2022.5.17-configure-bashism.patch
+)
+
+src_prepare() {
+ default
+
+ # Only needed for bashism patch
+ eautoreconf
+}
+
+src_configure() {
+ tc-ld-disable-gold
+
+ local myconf=(
+ # passing --exec-prefix is needed as the build system is trying to be clever
+ # and install itself into / instead of /usr in order to be compatible with
+ # separate-/usr setups (which we don't support without an initrd).
+ --exec-prefix="${EPREFIX}"/usr
+
+ --disable-ldconfig
+ --enable-extras
+ $(use_enable debug)
+ $(use_enable fuse ntfs-3g)
+ $(use_enable acl posix-acls)
+ $(use_enable xattr xattr-mappings)
+ $(use_enable ntfsdecrypt crypto)
+ $(use_enable ntfsprogs)
+ $(use_enable static-libs static)
+
+ --with-uuid
+
+ # disable hd library until we have the right library in the tree and
+ # don't links to hwinfo one causing issues like bug #602360
+ --without-hd
+
+ # Needed for suid
+ # https://bugs.gentoo.org/822024
+ --with-fuse=internal
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+ if use fuse; then
+ # Plugins directory
+ keepdir "/usr/$(get_libdir)/ntfs-3g"
+ if use suid; then
+ fperms u+s /usr/bin/ntfs-3g
+ fi
+ if use mount-ntfs; then
+ dosym mount.ntfs-3g /sbin/mount.ntfs
+ fi
+ fi
+ find "${ED}" -name '*.la' -type f -delete || die
+}