Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/ntfs3g/
Date: Sat, 06 Nov 2021 13:41:02
Message-Id: 1636206011.94eb172027cdcb267c65ec0589c9dbb25c88c2c3.floppym@gentoo
1 commit: 94eb172027cdcb267c65ec0589c9dbb25c88c2c3
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 6 13:39:22 2021 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 6 13:40:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94eb1720
7
8 sys-fs/ntfs3g: switch to 'internal' FUSE and re-add 'suid'
9
10 Closes: https://bugs.gentoo.org/822024
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 sys-fs/ntfs3g/ntfs3g-2021.8.22-r1.ebuild | 82 ++++++++++++++++++++++++++++++++
14 1 file changed, 82 insertions(+)
15
16 diff --git a/sys-fs/ntfs3g/ntfs3g-2021.8.22-r1.ebuild b/sys-fs/ntfs3g/ntfs3g-2021.8.22-r1.ebuild
17 new file mode 100644
18 index 00000000000..32829cd24d9
19 --- /dev/null
20 +++ b/sys-fs/ntfs3g/ntfs3g-2021.8.22-r1.ebuild
21 @@ -0,0 +1,82 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +inherit linux-info toolchain-funcs
27 +
28 +MY_P="ntfs-3g_ntfsprogs-${PV}"
29 +
30 +DESCRIPTION="Open source read-write NTFS driver that runs under FUSE"
31 +HOMEPAGE="http://www.tuxera.com/community/ntfs-3g-download/"
32 +HOMEPAGE="https://jp-andre.pagesperso-orange.fr/advanced-ntfs-3g.html"
33 +SRC_URI="http://tuxera.com/opensource/${MY_P}.tgz"
34 +#SRC_URI="https://jp-andre.pagesperso-orange.fr/${MY_P}.tgz"
35 +
36 +LICENSE="GPL-2"
37 +# The subslot matches the SONAME major #.
38 +SLOT="0/89"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
40 +IUSE="acl debug +mount-ntfs ntfsdecrypt +ntfsprogs static-libs suid xattr"
41 +
42 +RDEPEND="
43 + sys-apps/util-linux:0=
44 + ntfsdecrypt? (
45 + >=dev-libs/libgcrypt-1.2.2:0
46 + >=net-libs/gnutls-1.4.4
47 + )
48 +"
49 +DEPEND="${RDEPEND}
50 + sys-apps/attr
51 +"
52 +BDEPEND="
53 + virtual/pkgconfig
54 +"
55 +
56 +S="${WORKDIR}/${MY_P}"
57 +
58 +pkg_setup() {
59 + CONFIG_CHECK="~FUSE_FS"
60 + FUSE_FS_WARNING="You need to have FUSE module built to use ntfs-3g"
61 + linux-info_pkg_setup
62 +}
63 +
64 +src_configure() {
65 + tc-ld-disable-gold
66 +
67 + local myconf=(
68 + # passing --exec-prefix is needed as the build system is trying to be clever
69 + # and install itself into / instead of /usr in order to be compatible with
70 + # separate-/usr setups (which we don't support without an initrd).
71 + --exec-prefix="${EPREFIX}"/usr
72 +
73 + --disable-ldconfig
74 + --enable-extras
75 + $(use_enable debug)
76 + $(use_enable acl posix-acls)
77 + $(use_enable xattr xattr-mappings)
78 + $(use_enable ntfsdecrypt crypto)
79 + $(use_enable ntfsprogs)
80 + $(use_enable ntfsprogs quarantined)
81 + $(use_enable static-libs static)
82 +
83 + --with-uuid
84 +
85 + # disable hd library until we have the right library in the tree and
86 + # don't links to hwinfo one causing issues like bug #602360
87 + --without-hd
88 +
89 + # Needed for suid
90 + # https://bugs.gentoo.org/822024
91 + --with-fuse=internal
92 + )
93 +
94 + econf "${myconf[@]}"
95 +}
96 +
97 +src_install() {
98 + default
99 + use mount-ntfs && dosym mount.ntfs-3g /sbin/mount.ntfs
100 + find "${ED}" -name '*.la' -type f -delete || die
101 + # https://bugs.gentoo.org/760780
102 + keepdir "/usr/$(get_libdir)/ntfs-3g"
103 +}