wok annotate ntfs-3g/receipt @ rev 2377

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