wok annotate ntfs-3g/receipt @ rev 9944
cinepaint: fix bdeps.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed May 18 12:13:42 2011 +0200 (2011-05-18) |
parents | 6bbb15661da9 |
children | 6e4353070e4a |
rev | line source |
---|---|
pankso@47 | 1 # SliTaz package receipt. |
pankso@47 | 2 |
pankso@47 | 3 PACKAGE="ntfs-3g" |
slaxemulator@8118 | 4 VERSION="2011.1.15" |
pankso@202 | 5 CATEGORY="system-tools" |
pankso@47 | 6 SHORT_DESC="The free ntfs driver." |
pankso@47 | 7 MAINTAINER="pankso@slitaz.org" |
erjo@4712 | 8 DEPENDS="fuse attr" |
erjo@4712 | 9 BUILD_DEPENDS="attr-dev" |
pankso@47 | 10 TARBALL="$PACKAGE-$VERSION.tgz" |
jozee@4953 | 11 WEB_SITE="http://www.tuxera.com/opensource/" |
pankso@47 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@2562 | 13 CONFIG_FILES="/etc/filesystems" |
jozee@4969 | 14 TAGS="windows" |
pankso@47 | 15 |
pankso@47 | 16 # Rules to configure and make the package. |
pankso@47 | 17 compile_rules() |
pankso@47 | 18 { |
pankso@47 | 19 cd $src |
pascal@2283 | 20 sed -i 's/\terr = ntfs_open\(.*\);/\tntfs_log_clear_levels((u32) -1); if (err = ntfs_open\1) goto err2;/' \ |
pascal@2283 | 21 src/ntfs-3g.c |
pankso@47 | 22 ./configure --prefix=/usr \ |
pascal@2562 | 23 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@2562 | 24 make && |
pankso@47 | 25 make DESTDIR=$PWD/_pkg install |
pankso@47 | 26 } |
pankso@47 | 27 |
pankso@47 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@47 | 29 genpkg_rules() |
pankso@47 | 30 { |
jozee@5085 | 31 mkdir -p $fs/lib $fs/usr/lib $fs/etc \ |
jozee@5085 | 32 $fs/usr/share/hal/fdi/policy/10osvendor |
pankso@47 | 33 cp -a $_pkg/bin $fs/ |
pankso@47 | 34 cp -a $_pkg/sbin $fs/ |
pankso@47 | 35 cp -a $_pkg/lib/*.so* $fs/lib |
pankso@611 | 36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@611 | 37 cp -a $_pkg/usr/bin $fs/usr |
pascal@2562 | 38 touch $fs/etc/filesystems |
pankso@47 | 39 } |
pascal@2126 | 40 |
pascal@2126 | 41 # Pre remove and post install commands for Tazpkg. |
pascal@2126 | 42 pre_remove() |
pascal@2126 | 43 { |
pascal@2562 | 44 sed -i '/^$PACKAGE$/d' $1/etc/filesystems |
pascal@2126 | 45 } |
pascal@2126 | 46 |
pascal@2126 | 47 post_install() |
pascal@2126 | 48 { |
pascal@2562 | 49 grep -qs ^$PACKAGE$ $1/etc/filesystems || \ |
pascal@2562 | 50 echo "$PACKAGE" >> $1/etc/filesystems |
pascal@2126 | 51 } |