wok annotate ntfs-3g/receipt @ rev 2126

ntfs-3g: update /etc/filesystems
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 01 12:23:00 2009 +0000 (2009-02-01)
parents 86e1f69774d0
children 532538d67b1c
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@2126 37 sed -i '/ntfs-3g/d' $1/etc/filesystems
pascal@2126 38 }
pascal@2126 39
pascal@2126 40 post_install()
pascal@2126 41 {
pascal@2126 42 grep -qs ntfs-3g $1/etc/filesystems || \
pascal@2126 43 echo "ntfs-3g" >> $1/etc/filesystems
pascal@2126 44 }