wok view ntfs-3g/receipt @ rev 4953

UP ntfs-3g and ntfs-3g-dev
author Rohit Joshi <jozee@slitaz.org>
date Wed Feb 17 09:45:16 2010 +0000 (2010-02-17)
parents df33ebb2bc3c
children bee79018e13a
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2010.1.16"
5 CATEGORY="system-tools"
6 SHORT_DESC="The free ntfs driver."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="fuse attr"
9 BUILD_DEPENDS="attr-dev"
10 TARBALL="$PACKAGE-$VERSION.tgz"
11 WEB_SITE="http://www.tuxera.com/opensource/"
12 WGET_URL="$WEB_SITE/$TARBALL"
13 CONFIG_FILES="/etc/filesystems"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i 's/\terr = ntfs_open\(.*\);/\tntfs_log_clear_levels((u32) -1); if (err = ntfs_open\1) goto err2;/' \
20 src/ntfs-3g.c
21 ./configure --prefix=/usr \
22 --mandir=/usr/share/man $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/lib $fs/usr/lib $fs/etc
31 cp -a $_pkg/bin $fs/
32 cp -a $_pkg/sbin $fs/
33 cp -a $_pkg/lib/*.so* $fs/lib
34 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
35 cp -a $_pkg/usr/bin $fs/usr
36 touch $fs/etc/filesystems
37 }
39 # Pre remove and post install commands for Tazpkg.
40 pre_remove()
41 {
42 sed -i '/^$PACKAGE$/d' $1/etc/filesystems
43 }
45 post_install()
46 {
47 grep -qs ^$PACKAGE$ $1/etc/filesystems || \
48 echo "$PACKAGE" >> $1/etc/filesystems
49 }