wok annotate ntfs-3g/receipt @ rev 17309

Up buildroot (2014.08)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 02 11:46:58 2014 +0100 (2014-11-02)
parents 50a3e04c6f5b
children b0977e588407
rev   line source
pankso@47 1 # SliTaz package receipt.
pankso@47 2
pankso@47 3 PACKAGE="ntfs-3g"
devl547@16413 4 VERSION="2014.2.15"
pankso@202 5 CATEGORY="system-tools"
pankso@47 6 SHORT_DESC="The free ntfs driver."
pankso@47 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
monghitri@14103 9 SOURCE="ntfs-3g_ntfsprogs"
monghitri@14103 10 TARBALL="$SOURCE-$VERSION.tgz"
monghitri@14103 11 WEB_SITE="http://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
pascal@15000 16 DEPENDS="fuse attr"
pascal@15000 17 BUILD_DEPENDS="fuse-dev attr-dev"
pascal@15000 18
pankso@47 19 # Rules to configure and make the package.
pankso@47 20 compile_rules()
pankso@47 21 {
pankso@47 22 cd $src
pankso@47 23 ./configure --prefix=/usr \
monghitri@14103 24 --disable-static \
monghitri@14103 25 --with-fuse=external \
pascal@2562 26 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@2562 27 make &&
pascal@15000 28 make DESTDIR=$DESTDIR install
pankso@47 29 }
pankso@47 30
pankso@47 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@47 32 genpkg_rules()
pankso@47 33 {
monghitri@14103 34 mkdir -p $fs/lib $fs/usr/lib $fs/etc $fs/sbin $fs/usr/bin
monghitri@14103 35 cp -a $install/bin $fs/
monghitri@14103 36 cp -a $install/sbin/*-3g $fs/sbin
monghitri@14103 37 cp -a $install/lib/*-3g.so* $fs/lib
monghitri@14103 38 cp -a $install/usr/lib/*-3g.so* $fs/usr/lib
monghitri@14103 39 cp -a $install/usr/bin/*-3g* $fs/usr/bin
pascal@2562 40 touch $fs/etc/filesystems
monghitri@14125 41 #this link allow udisks2 to use ntfs-3g
monghitri@14103 42 cd $fs/sbin
monghitri@14103 43 ln -s mount.ntfs-3g mount.ntfs
monghitri@14103 44
pankso@47 45 }
pascal@2126 46
pascal@2126 47 # Pre remove and post install commands for Tazpkg.
pascal@2126 48 pre_remove()
pascal@2126 49 {
pascal@2562 50 sed -i '/^$PACKAGE$/d' $1/etc/filesystems
pascal@2126 51 }
pascal@2126 52
pascal@2126 53 post_install()
pascal@2126 54 {
pascal@2562 55 grep -qs ^$PACKAGE$ $1/etc/filesystems || \
pascal@2562 56 echo "$PACKAGE" >> $1/etc/filesystems
pascal@2126 57 }