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

Up: xterm to 276.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Oct 26 20:24:19 2011 +0000 (2011-10-26)
parents 6bbb15661da9
children 6e4353070e4a
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2011.1.15"
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 $fs/usr/share/hal/fdi/policy/10osvendor
33 cp -a $_pkg/bin $fs/
34 cp -a $_pkg/sbin $fs/
35 cp -a $_pkg/lib/*.so* $fs/lib
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 cp -a $_pkg/usr/bin $fs/usr
38 touch $fs/etc/filesystems
39 }
41 # Pre remove and post install commands for Tazpkg.
42 pre_remove()
43 {
44 sed -i '/^$PACKAGE$/d' $1/etc/filesystems
45 }
47 post_install()
48 {
49 grep -qs ^$PACKAGE$ $1/etc/filesystems || \
50 echo "$PACKAGE" >> $1/etc/filesystems
51 }