wok-next annotate ntfs-3g/receipt @ rev 19904
avrdude: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 12 18:55:33 2017 +0200 (2017-10-12) |
parents | 0e8dadf052b9 |
children | 17a64e6b8783 |
rev | line source |
---|---|
al@19816 | 1 # SliTaz package receipt v2. |
pankso@47 | 2 |
pankso@47 | 3 PACKAGE="ntfs-3g" |
al@19816 | 4 VERSION="2017.3.23" |
pankso@202 | 5 CATEGORY="system-tools" |
al@19816 | 6 SHORT_DESC="Read/write NTFS driver" |
pankso@47 | 7 MAINTAINER="pankso@slitaz.org" |
al@19816 | 8 LICENSE="GPL2 LGPL2" |
al@19816 | 9 WEB_SITE="https://www.tuxera.com/community/open-source-ntfs-3g/" |
pankso@47 | 10 |
al@19816 | 11 TARBALL="ntfs-3g_ntfsprogs-$VERSION.tgz" |
al@19816 | 12 WGET_URL="https://tuxera.com/opensource/$TARBALL" |
al@19816 | 13 |
al@19816 | 14 BUILD_DEPENDS="util-linux-uuid-dev libtool" |
al@19816 | 15 SPLIT="ntfsprogs ntfsprogs-extra ntfs-3g ntfs-3g-dev" |
pascal@15000 | 16 |
pankso@47 | 17 # Rules to configure and make the package. |
pankso@47 | 18 compile_rules() |
pankso@47 | 19 { |
al@19816 | 20 # http://www.linuxfromscratch.org/blfs/view/stable/postlfs/ntfs-3g.html |
al@19816 | 21 |
al@19816 | 22 touch $src/libtoolT |
al@19816 | 23 |
al@19816 | 24 ./configure \ |
al@19816 | 25 --enable-extras \ |
al@19816 | 26 $CONFIGURE_ARGS && |
pascal@2562 | 27 make && |
al@19816 | 28 mkdir -p $install/lib && |
al@19816 | 29 make install && |
al@19816 | 30 |
al@19816 | 31 mkdir -p $install/etc && touch $install/etc/filesystems && |
al@19816 | 32 #this link allow udisks2 to use ntfs-3g |
al@19816 | 33 ln -s mount.ntfs-3g $install/sbin/mount.ntfs |
pankso@47 | 34 } |
pankso@47 | 35 |
pankso@47 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@47 | 37 genpkg_rules() |
pankso@47 | 38 { |
al@19816 | 39 TAGS="windows" |
al@19816 | 40 case $PACKAGE in |
al@19816 | 41 ntfsprogs) |
al@19816 | 42 copy mkfs.ntfs mkntfs ntfscat ntfsclone ntfscluster ntfscmp ntfscp \ |
al@19816 | 43 ntfsfix ntfsinfo ntfslabel ntfsls ntfsresize ntfsundelete |
al@19816 | 44 CAT="system-tools|ntfsprogs utilities" |
al@19816 | 45 DEPENDS="ntfs-3g util-linux-uuid" |
al@19816 | 46 ;; |
al@19816 | 47 *-extra) |
al@19816 | 48 copy ntfsrecover ntfssecaudit ntfstruncate ntfsusermap ntfswipe |
al@19816 | 49 CAT="system-tools|extra ntfsprogs utilities" |
al@19816 | 50 DEPENDS="ntfs-3g" |
al@19816 | 51 ;; |
al@19816 | 52 ntfs-3g) |
al@19816 | 53 copy @std |
al@19816 | 54 remove_already_packed |
al@19816 | 55 CONFIG_FILES="/etc/filesystems" |
al@19863 | 56 DEPENDS=" " |
al@19816 | 57 ;; |
al@19816 | 58 *-dev) |
al@19816 | 59 copy @dev |
al@19816 | 60 PROVIDE="ntfsprogs-dev" |
al@19816 | 61 ;; |
al@19816 | 62 esac |
pankso@47 | 63 } |
pascal@2126 | 64 |
al@19816 | 65 post_install_ntfs_3g() { |
al@19816 | 66 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \ |
al@19816 | 67 echo "$PACKAGE" >> "$1/etc/filesystems" |
al@19816 | 68 } |
al@19816 | 69 pre_remove_ntfs_3g() { |
pascal@18730 | 70 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems" |
pascal@2126 | 71 } |