wok-current view ntfs-3g/receipt @ rev 2422
xorg-server: update build_depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 11 10:52:53 2009 +0000 (2009-03-11) |
parents | 583e8a023692 |
children | 4e225981004f |
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"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 sed -i 's/\terr = ntfs_open\(.*\);/\tntfs_log_clear_levels((u32) -1); if (err = ntfs_open\1) goto err2;/' \
18 src/ntfs-3g.c
19 ./configure --prefix=/usr \
20 --mandir=/usr/share/man $CONFIGURE_ARGS
21 make
22 make DESTDIR=$PWD/_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/lib $fs/usr/lib
29 cp -a $_pkg/bin $fs/
30 cp -a $_pkg/sbin $fs/
31 cp -a $_pkg/lib/*.so* $fs/lib
32 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
33 cp -a $_pkg/usr/bin $fs/usr
34 }
36 # Pre remove and post install commands for Tazpkg.
37 pre_remove()
38 {
39 sed -i '/^ntfs-3g$/d' $1/etc/filesystems
40 }
42 post_install()
43 {
44 grep -qs ^ntfs-3g$ $1/etc/filesystems || \
45 echo "ntfs-3g" >> $1/etc/filesystems
46 }