wok-current view ntfs-3g/receipt @ rev 25697

Up apache (CVE-2023-38709, CVE-2024-24795, CVE-2024-27316), up libarchive, qemu, add amdgpu/touchpad support and clean modules.list, up website for repology
author Stanislas Leduc <shann@slitaz.org>
date Tue Apr 16 17:00:21 2024 +0000 (7 months ago)
parents 3ad63c8fc2f9
children dd0dcb23f265
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2022.10.3"
5 CATEGORY="system-tools"
6 TAGS="windows"
7 SHORT_DESC="Read and write NTFS driver for FUSE."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.tuxera.com/company/open-source/"
12 SOURCE="ntfs-3g_ntfsprogs"
13 TARBALL="$SOURCE-$VERSION.tgz"
14 WGET_URL="https://tuxera.com/opensource/$TARBALL"
16 DEPENDS="attr fuse"
17 BUILD_DEPENDS="attr-dev fuse-dev libtool util-linux-uuid-dev"
19 CONFIG_FILES="/etc/filesystems"
21 current_version()
22 {
23 wget -O - https://github.com/tuxera/ntfs-3g/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 mkdir -p $DESTDIR/lib
31 ./configure \
32 --prefix=/usr \
33 --disable-static \
34 --with-fuse=internal \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install DESTDIR=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/etc
45 cp -a $install/. $fs/.
46 rm -rf $fs/usr/bin/ntfs[a-z]*
47 rm -rf $fs/sbin/mkfs.ntfs
48 rm -rf $fs/usr/s*
49 rm -rf $fs/usr/share
50 rm -rf $fs/usr/lib/pkgconfig
51 rm -rf $fs/usr/lib/*.*a
52 rm -rf $fs/usr/include
53 touch $fs/etc/filesystems
54 #this link allows udisks2 to use ntfs-3g
55 cd $fs/sbin
56 ln -s mount.ntfs-3g mount.ntfs
57 }
59 # Pre remove and post install commands for Tazpkg.
60 pre_remove()
61 {
62 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
63 }
65 post_install()
66 {
67 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
68 echo "$PACKAGE" >> "$1/etc/filesystems"
69 }