wok view ntfs-3g/receipt @ rev 7674
Fixed linux. Need to make folder PWD/_pkg before adding bzImage to it. Also i'm force copying kernel config file now so we have the right config. It is copyed twice so its needed and doesn't hunt anything i think.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Dec 16 17:16:06 2010 +0000 (2010-12-16) |
parents | 9930a5b325bd |
children | 793a2e0f47a2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2010.10.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="The free ntfs driver."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="fuse attr"
9 BUILD_DEPENDS="attr-dev"
10 TARBALL="$PACKAGE-$VERSION.tgz"
11 WEB_SITE="http://www.tuxera.com/opensource/"
12 WGET_URL="$WEB_SITE/$TARBALL"
13 CONFIG_FILES="/etc/filesystems"
14 TAGS="windows"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's/\terr = ntfs_open\(.*\);/\tntfs_log_clear_levels((u32) -1); if (err = ntfs_open\1) goto err2;/' \
21 src/ntfs-3g.c
22 ./configure --prefix=/usr \
23 --mandir=/usr/share/man $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/lib $fs/usr/lib $fs/etc \
32 $fs/usr/share/hal/fdi/policy/10osvendor
33 cp -a $_pkg/bin $fs/
34 cp -a $_pkg/sbin $fs/
35 cp -a $_pkg/lib/*.so* $fs/lib
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 cp -a $_pkg/usr/bin $fs/usr
38 touch $fs/etc/filesystems
39 }
41 # Pre remove and post install commands for Tazpkg.
42 pre_remove()
43 {
44 sed -i '/^$PACKAGE$/d' $1/etc/filesystems
45 }
47 post_install()
48 {
49 grep -qs ^$PACKAGE$ $1/etc/filesystems || \
50 echo "$PACKAGE" >> $1/etc/filesystems
51 }