wok-current view ntfs-3g/receipt @ rev 20119

slitaz-base-files (333), slitaz-boot-scripts (445), slitaz-configs (313), slitaz-tools (1025), tazbug (152), tazinst (93), tazirc (22), tazlito (469), tazpanel (617), tazweb (208): revision of german messages
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 14 10:45:51 2017 +0200 (2017-10-14)
parents f6beea7fe09b
children d32e9a8cd03a
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2014.2.15"
5 CATEGORY="system-tools"
6 SHORT_DESC="Read/write NTFS driver for FUSE"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="ntfs-3g_ntfsprogs"
10 TARBALL="$SOURCE-$VERSION.tgz"
11 WEB_SITE="http://tuxera.com/opensource"
12 WGET_URL="$WEB_SITE/$TARBALL"
13 CONFIG_FILES="/etc/filesystems"
14 TAGS="windows"
16 DEPENDS="fuse attr"
17 BUILD_DEPENDS="fuse-dev attr-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure --prefix=/usr \
23 --disable-static \
24 --with-fuse=internal \
25 --mandir=/usr/share/man $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/etc
34 cp -a $install/. $fs/.
35 rm -rf $fs/usr/bin/ntfs[a-z]* $fs/sbin/mkfs.ntfs $fs/usr/s*
36 rm -rf $fs/usr/share $fs/usr/lib/pkgconfig $fs/usr/lib/*.a $fs/usr/include
37 touch $fs/etc/filesystems
38 #this link allow udisks2 to use ntfs-3g
39 cd $fs/sbin
40 ln -s mount.ntfs-3g mount.ntfs
41 }
43 # Pre remove and post install commands for Tazpkg.
44 pre_remove()
45 {
46 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
47 }
49 post_install()
50 {
51 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
52 echo "$PACKAGE" >> "$1/etc/filesystems"
53 }