wok view ntfs-3g/receipt @ rev 4721

Up: libboost-* (1.41.0)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Jan 05 14:59:14 2010 +0100 (2010-01-05)
parents c0f0039db4ad
children 63e7094a41cb
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2009.11.14"
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.ntfs-3g.org/"
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 }