wok-6.x view ntfs-3g/receipt @ rev 18145

Add defragfs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 18 16:31:01 2015 +0200 (2015-06-18)
parents b0977e588407
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2014.2.15"
5 CATEGORY="system-tools"
6 SHORT_DESC="Read/write NTFS driver for FUSE"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="ntfs-3g_ntfsprogs"
10 TARBALL="$SOURCE-$VERSION.tgz"
11 WEB_SITE="http://tuxera.com/opensource"
12 WGET_URL="$WEB_SITE/$TARBALL"
13 CONFIG_FILES="/etc/filesystems"
14 TAGS="windows"
16 DEPENDS="fuse attr"
17 BUILD_DEPENDS="fuse-dev attr-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure --prefix=/usr \
23 --disable-static \
24 --with-fuse=internal \
25 --mandir=/usr/share/man $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/lib $fs/usr/lib $fs/etc $fs/sbin $fs/usr/bin
34 cp -a $install/bin $fs/
35 cp -a $install/sbin/*-3g $fs/sbin
36 cp -a $install/lib/*-3g.so* $fs/lib
37 cp -a $install/usr/lib/*-3g.so* $fs/usr/lib
38 cp -a $install/usr/bin/*-3g* $fs/usr/bin
39 touch $fs/etc/filesystems
40 #this link allow udisks2 to use ntfs-3g
41 cd $fs/sbin
42 ln -s mount.ntfs-3g mount.ntfs
43 }
45 # Pre remove and post install commands for Tazpkg.
46 pre_remove()
47 {
48 sed -i '/^$PACKAGE$/d' $1/etc/filesystems
49 }
51 post_install()
52 {
53 grep -qs ^$PACKAGE$ $1/etc/filesystems || \
54 echo "$PACKAGE" >> $1/etc/filesystems
55 }