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

Add: PuTTY
author Matthew Sheets <rcx@zoominternet.net>
date Mon Sep 07 17:17:20 2009 +0000 (2009-09-07)
parents 4e225981004f
children df33ebb2bc3c
rev   line source
pankso@47 1 # SliTaz package receipt.
pankso@47 2
pankso@47 3 PACKAGE="ntfs-3g"
erjo@3153 4 VERSION="2009.4.4"
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"
pascal@2562 12 CONFIG_FILES="/etc/filesystems"
pankso@47 13
pankso@47 14 # Rules to configure and make the package.
pankso@47 15 compile_rules()
pankso@47 16 {
pankso@47 17 cd $src
pascal@2283 18 sed -i 's/\terr = ntfs_open\(.*\);/\tntfs_log_clear_levels((u32) -1); if (err = ntfs_open\1) goto err2;/' \
pascal@2283 19 src/ntfs-3g.c
pankso@47 20 ./configure --prefix=/usr \
pascal@2562 21 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@2562 22 make &&
pankso@47 23 make DESTDIR=$PWD/_pkg install
pankso@47 24 }
pankso@47 25
pankso@47 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@47 27 genpkg_rules()
pankso@47 28 {
pascal@2562 29 mkdir -p $fs/lib $fs/usr/lib $fs/etc
pankso@47 30 cp -a $_pkg/bin $fs/
pankso@47 31 cp -a $_pkg/sbin $fs/
pankso@47 32 cp -a $_pkg/lib/*.so* $fs/lib
pankso@611 33 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@611 34 cp -a $_pkg/usr/bin $fs/usr
pascal@2562 35 touch $fs/etc/filesystems
pankso@47 36 }
pascal@2126 37
pascal@2126 38 # Pre remove and post install commands for Tazpkg.
pascal@2126 39 pre_remove()
pascal@2126 40 {
pascal@2562 41 sed -i '/^$PACKAGE$/d' $1/etc/filesystems
pascal@2126 42 }
pascal@2126 43
pascal@2126 44 post_install()
pascal@2126 45 {
pascal@2562 46 grep -qs ^$PACKAGE$ $1/etc/filesystems || \
pascal@2562 47 echo "$PACKAGE" >> $1/etc/filesystems
pascal@2126 48 }