wok-next view ntfs-3g/receipt @ rev 21370
updated minidlna (1.1.4 -> 1.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 09:58:07 2020 +0100 (2020-04-16) |
parents | f48456621a9d |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ntfs-3g"
4 VERSION="2017.3.23"
5 CATEGORY="system-tools"
6 SHORT_DESC="Read/write NTFS driver"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2 LGPL2"
9 WEB_SITE="https://www.tuxera.com/community/open-source-ntfs-3g/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/ntfs-3g.html"
12 TARBALL="ntfs-3g_ntfsprogs-$VERSION.tgz"
13 WGET_URL="https://tuxera.com/opensource/$TARBALL"
15 BUILD_DEPENDS="util-linux-uuid-dev libtool"
16 SPLIT="ntfsprogs ntfsprogs-extra $PACKAGE $PACKAGE-dev"
18 compile_rules() {
19 touch $src/libtoolT
21 ./configure \
22 --enable-extras \
23 $CONFIGURE_ARGS &&
24 fix libtool &&
25 make &&
26 mkdir -p $install/lib &&
27 make install || return 1
29 mkdir -p $install/etc
30 touch $install/etc/filesystems
31 #this link allow udisks2 to use ntfs-3g
32 ln -s mount.ntfs-3g $install/sbin/mount.ntfs
33 }
35 genpkg_rules() {
36 TAGS="windows"
37 case $PACKAGE in
38 ntfsprogs)
39 copy mkfs.ntfs mkntfs ntfscat ntfsclone ntfscluster ntfscmp ntfscp \
40 ntfsfix ntfsinfo ntfslabel ntfsls ntfsresize ntfsundelete
41 CAT="system-tools|ntfsprogs utilities"
42 DEPENDS="ntfs-3g util-linux-uuid"
43 ;;
44 *-extra)
45 copy ntfsrecover ntfssecaudit ntfstruncate ntfsusermap ntfswipe
46 CAT="system-tools|extra ntfsprogs utilities"
47 DEPENDS="ntfs-3g"
48 ;;
49 ntfs-3g)
50 copy @std @rm
51 CONFIG_FILES="/etc/filesystems"
52 DEPENDS=" "
53 ;;
54 *-dev)
55 copy @dev
56 PROVIDE="ntfsprogs-dev"
57 ;;
58 esac
59 }
61 post_install_ntfs_3g() {
62 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
63 echo "$PACKAGE" >> "$1/etc/filesystems"
64 }
65 pre_remove_ntfs_3g() {
66 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
67 }