wok-4.x view ntfs-3g/receipt @ rev 2562

declare /etc/filesystems
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 29 11:34:34 2009 +0000 (2009-03-29)
parents b2603ea1e6c0
children c0f0039db4ad
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2009.2.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="The free ntfs driver."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="fuse"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://www.ntfs-3g.org/"
11 WGET_URL="$WEB_SITE/$TARBALL"
12 CONFIG_FILES="/etc/filesystems"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i 's/\terr = ntfs_open\(.*\);/\tntfs_log_clear_levels((u32) -1); if (err = ntfs_open\1) goto err2;/' \
19 src/ntfs-3g.c
20 ./configure --prefix=/usr \
21 --mandir=/usr/share/man $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/lib $fs/usr/lib $fs/etc
30 cp -a $_pkg/bin $fs/
31 cp -a $_pkg/sbin $fs/
32 cp -a $_pkg/lib/*.so* $fs/lib
33 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
34 cp -a $_pkg/usr/bin $fs/usr
35 touch $fs/etc/filesystems
36 }
38 # Pre remove and post install commands for Tazpkg.
39 pre_remove()
40 {
41 sed -i '/^$PACKAGE$/d' $1/etc/filesystems
42 }
44 post_install()
45 {
46 grep -qs ^$PACKAGE$ $1/etc/filesystems || \
47 echo "$PACKAGE" >> $1/etc/filesystems
48 }