wok view ntfs-3g/receipt @ rev 4969

add/improve TAGS n* receipts
author Rohit Joshi <jozee@slitaz.org>
date Wed Feb 24 10:31:06 2010 +0000 (2010-02-24)
parents 63e7094a41cb
children f055b093be32
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"
14 TAGS="windows"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's/\terr = ntfs_open\(.*\);/\tntfs_log_clear_levels((u32) -1); if (err = ntfs_open\1) goto err2;/' \
21 src/ntfs-3g.c
22 ./configure --prefix=/usr \
23 --mandir=/usr/share/man $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/lib $fs/usr/lib $fs/etc
32 cp -a $_pkg/bin $fs/
33 cp -a $_pkg/sbin $fs/
34 cp -a $_pkg/lib/*.so* $fs/lib
35 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
36 cp -a $_pkg/usr/bin $fs/usr
37 touch $fs/etc/filesystems
38 }
40 # Pre remove and post install commands for Tazpkg.
41 pre_remove()
42 {
43 sed -i '/^$PACKAGE$/d' $1/etc/filesystems
44 }
46 post_install()
47 {
48 grep -qs ^$PACKAGE$ $1/etc/filesystems || \
49 echo "$PACKAGE" >> $1/etc/filesystems
50 }