wok annotate ntfs-3g/receipt @ rev 14794
catfish: fix genpkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 08 20:42:48 2013 +0000 (2013-07-08) |
parents | 6e4353070e4a |
children | 380ffe05937a |
rev | line source |
---|---|
pankso@47 | 1 # SliTaz package receipt. |
pankso@47 | 2 |
pankso@47 | 3 PACKAGE="ntfs-3g" |
monghitri@14103 | 4 VERSION="2013.1.13" |
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" |
monghitri@14103 | 9 BUILD_DEPENDS="fuse-dev attr-dev" |
monghitri@14103 | 10 SOURCE="ntfs-3g_ntfsprogs" |
monghitri@14103 | 11 TARBALL="$SOURCE-$VERSION.tgz" |
monghitri@14103 | 12 WEB_SITE="http://tuxera.com/opensource" |
pankso@47 | 13 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@2562 | 14 CONFIG_FILES="/etc/filesystems" |
jozee@4969 | 15 TAGS="windows" |
pankso@47 | 16 |
pankso@47 | 17 # Rules to configure and make the package. |
pankso@47 | 18 compile_rules() |
pankso@47 | 19 { |
pankso@47 | 20 cd $src |
pankso@47 | 21 ./configure --prefix=/usr \ |
monghitri@14103 | 22 --disable-static \ |
monghitri@14103 | 23 --with-fuse=external \ |
pascal@2562 | 24 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@2562 | 25 make && |
pankso@47 | 26 make DESTDIR=$PWD/_pkg install |
pankso@47 | 27 } |
pankso@47 | 28 |
pankso@47 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@47 | 30 genpkg_rules() |
pankso@47 | 31 { |
monghitri@14103 | 32 mkdir -p $fs/lib $fs/usr/lib $fs/etc $fs/sbin $fs/usr/bin |
monghitri@14103 | 33 cp -a $install/bin $fs/ |
monghitri@14103 | 34 cp -a $install/sbin/*-3g $fs/sbin |
monghitri@14103 | 35 cp -a $install/lib/*-3g.so* $fs/lib |
monghitri@14103 | 36 cp -a $install/usr/lib/*-3g.so* $fs/usr/lib |
monghitri@14103 | 37 cp -a $install/usr/bin/*-3g* $fs/usr/bin |
pascal@2562 | 38 touch $fs/etc/filesystems |
monghitri@14125 | 39 #this link allow udisks2 to use ntfs-3g |
monghitri@14103 | 40 cd $fs/sbin |
monghitri@14103 | 41 ln -s mount.ntfs-3g mount.ntfs |
monghitri@14103 | 42 |
pankso@47 | 43 } |
pascal@2126 | 44 |
pascal@2126 | 45 # Pre remove and post install commands for Tazpkg. |
pascal@2126 | 46 pre_remove() |
pascal@2126 | 47 { |
pascal@2562 | 48 sed -i '/^$PACKAGE$/d' $1/etc/filesystems |
pascal@2126 | 49 } |
pascal@2126 | 50 |
pascal@2126 | 51 post_install() |
pascal@2126 | 52 { |
pascal@2562 | 53 grep -qs ^$PACKAGE$ $1/etc/filesystems || \ |
pascal@2562 | 54 echo "$PACKAGE" >> $1/etc/filesystems |
pascal@2126 | 55 } |