wok-current annotate ntfs-3g/receipt @ rev 25077
updated openvswitch and openvswitch-dev (2.14.0 -> 2.17.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 15 14:50:09 2022 +0100 (2022-06-15) |
parents | 72f2704d3ae0 |
children | 3ad63c8fc2f9 |
rev | line source |
---|---|
pankso@47 | 1 # SliTaz package receipt. |
pankso@47 | 2 |
pankso@47 | 3 PACKAGE="ntfs-3g" |
Hans-G?nter@25004 | 4 VERSION="2021.8.22" |
pankso@202 | 5 CATEGORY="system-tools" |
Hans-G?nter@25004 | 6 TAGS="windows" |
Hans-G?nter@25004 | 7 SHORT_DESC="Read and write NTFS driver for FUSE." |
pankso@47 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
Hans-G?nter@25004 | 10 WEB_SITE="https://www.tuxera.com/community/open-source-ntfs-3g/" |
Hans-G?nter@25004 | 11 |
monghitri@14103 | 12 SOURCE="ntfs-3g_ntfsprogs" |
monghitri@14103 | 13 TARBALL="$SOURCE-$VERSION.tgz" |
pascal@20162 | 14 WGET_URL="https://tuxera.com/opensource/$TARBALL" |
Hans-G?nter@25004 | 15 |
Hans-G?nter@25004 | 16 DEPENDS="attr fuse" |
Hans-G?nter@25004 | 17 BUILD_DEPENDS="attr-dev fuse-dev libtool util-linux-uuid-dev" |
Hans-G?nter@25004 | 18 |
pascal@2562 | 19 CONFIG_FILES="/etc/filesystems" |
pascal@15000 | 20 |
pascal@24071 | 21 current_version() |
pascal@24071 | 22 { |
pascal@24071 | 23 wget -O - https://github.com/tuxera/ntfs-3g/releases 2>/dev/null | \ |
pascal@24071 | 24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24071 | 25 } |
pascal@24071 | 26 |
pankso@47 | 27 # Rules to configure and make the package. |
pankso@47 | 28 compile_rules() |
pankso@47 | 29 { |
pascal@20163 | 30 mkdir -p $DESTDIR/lib |
Hans-G?nter@25004 | 31 ./configure \ |
Hans-G?nter@25004 | 32 --prefix=/usr \ |
Hans-G?nter@25004 | 33 --disable-static \ |
Hans-G?nter@25004 | 34 --with-fuse=internal \ |
Hans-G?nter@25004 | 35 --mandir=/usr/share/man \ |
Hans-G?nter@25004 | 36 $CONFIGURE_ARGS && |
pascal@2562 | 37 make && |
Hans-G?nter@25004 | 38 make install DESTDIR=$DESTDIR |
pankso@47 | 39 } |
pankso@47 | 40 |
pankso@47 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@47 | 42 genpkg_rules() |
pankso@47 | 43 { |
pascal@19748 | 44 mkdir -p $fs/etc |
Hans-G?nter@25004 | 45 cp -a $install/. $fs/. |
Hans-G?nter@25004 | 46 rm -rf $fs/usr/bin/ntfs[a-z]* |
Hans-G?nter@25004 | 47 rm -rf $fs/sbin/mkfs.ntfs |
Hans-G?nter@25004 | 48 rm -rf $fs/usr/s* |
Hans-G?nter@25004 | 49 rm -rf $fs/usr/share |
Hans-G?nter@25004 | 50 rm -rf $fs/usr/lib/pkgconfig |
Hans-G?nter@25004 | 51 rm -rf $fs/usr/lib/*.a |
Hans-G?nter@25004 | 52 rm -rf $fs/usr/include |
Hans-G?nter@25004 | 53 touch $fs/etc/filesystems |
Hans-G?nter@25004 | 54 #this link allows udisks2 to use ntfs-3g |
monghitri@14103 | 55 cd $fs/sbin |
monghitri@14103 | 56 ln -s mount.ntfs-3g mount.ntfs |
pankso@47 | 57 } |
pascal@2126 | 58 |
pascal@2126 | 59 # Pre remove and post install commands for Tazpkg. |
pascal@2126 | 60 pre_remove() |
pascal@2126 | 61 { |
Hans-G?nter@25004 | 62 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems" |
pascal@2126 | 63 } |
pascal@2126 | 64 |
pascal@2126 | 65 post_install() |
pascal@2126 | 66 { |
pascal@18730 | 67 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \ |
pascal@18730 | 68 echo "$PACKAGE" >> "$1/etc/filesystems" |
pascal@2126 | 69 } |