wok-4.x annotate ntfs-3g/receipt @ rev 2170

linux: speedtouch needs hdlc support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 07 20:58:54 2009 +0000 (2009-02-07)
parents 14a7a851672f
children 583e8a023692
rev   line source
pankso@47 1 # SliTaz package receipt.
pankso@47 2
pankso@47 3 PACKAGE="ntfs-3g"
pankso@2097 4 VERSION="2009.1.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
pankso@47 17 ./configure --prefix=/usr \
pankso@47 18 --mandir=/usr/share/man $CONFIGURE_ARGS
pankso@47 19 make
pankso@47 20 make DESTDIR=$PWD/_pkg install
pankso@47 21 }
pankso@47 22
pankso@47 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@47 24 genpkg_rules()
pankso@47 25 {
pankso@611 26 mkdir -p $fs/lib $fs/usr/lib
pankso@47 27 cp -a $_pkg/bin $fs/
pankso@47 28 cp -a $_pkg/sbin $fs/
pankso@47 29 cp -a $_pkg/lib/*.so* $fs/lib
pankso@611 30 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@611 31 cp -a $_pkg/usr/bin $fs/usr
pankso@47 32 }
pascal@2126 33
pascal@2126 34 # Pre remove and post install commands for Tazpkg.
pascal@2126 35 pre_remove()
pascal@2126 36 {
pascal@2127 37 sed -i '/^ntfs-3g$/d' $1/etc/filesystems
pascal@2126 38 }
pascal@2126 39
pascal@2126 40 post_install()
pascal@2126 41 {
pascal@2127 42 grep -qs ^ntfs-3g$ $1/etc/filesystems || \
pascal@2126 43 echo "ntfs-3g" >> $1/etc/filesystems
pascal@2126 44 }