wok-current annotate ntfs-3g/receipt @ rev 4737
knock/knockd-helper: add help
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 07 12:40:20 2010 +0100 (2010-01-07) |
parents | c0f0039db4ad |
children | 63e7094a41cb |
rev | line source |
---|---|
pankso@47 | 1 # SliTaz package receipt. |
pankso@47 | 2 |
pankso@47 | 3 PACKAGE="ntfs-3g" |
erjo@4712 | 4 VERSION="2009.11.14" |
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" |
pankso@47 | 11 WEB_SITE="http://www.ntfs-3g.org/" |
pankso@47 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@2562 | 13 CONFIG_FILES="/etc/filesystems" |
pankso@47 | 14 |
pankso@47 | 15 # Rules to configure and make the package. |
pankso@47 | 16 compile_rules() |
pankso@47 | 17 { |
pankso@47 | 18 cd $src |
pascal@2283 | 19 sed -i 's/\terr = ntfs_open\(.*\);/\tntfs_log_clear_levels((u32) -1); if (err = ntfs_open\1) goto err2;/' \ |
pascal@2283 | 20 src/ntfs-3g.c |
pankso@47 | 21 ./configure --prefix=/usr \ |
pascal@2562 | 22 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@2562 | 23 make && |
pankso@47 | 24 make DESTDIR=$PWD/_pkg install |
pankso@47 | 25 } |
pankso@47 | 26 |
pankso@47 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@47 | 28 genpkg_rules() |
pankso@47 | 29 { |
pascal@2562 | 30 mkdir -p $fs/lib $fs/usr/lib $fs/etc |
pankso@47 | 31 cp -a $_pkg/bin $fs/ |
pankso@47 | 32 cp -a $_pkg/sbin $fs/ |
pankso@47 | 33 cp -a $_pkg/lib/*.so* $fs/lib |
pankso@611 | 34 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@611 | 35 cp -a $_pkg/usr/bin $fs/usr |
pascal@2562 | 36 touch $fs/etc/filesystems |
pankso@47 | 37 } |
pascal@2126 | 38 |
pascal@2126 | 39 # Pre remove and post install commands for Tazpkg. |
pascal@2126 | 40 pre_remove() |
pascal@2126 | 41 { |
pascal@2562 | 42 sed -i '/^$PACKAGE$/d' $1/etc/filesystems |
pascal@2126 | 43 } |
pascal@2126 | 44 |
pascal@2126 | 45 post_install() |
pascal@2126 | 46 { |
pascal@2562 | 47 grep -qs ^$PACKAGE$ $1/etc/filesystems || \ |
pascal@2562 | 48 echo "$PACKAGE" >> $1/etc/filesystems |
pascal@2126 | 49 } |