wok view zfs-fuse/receipt @ rev 21490

trickle: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 01 18:05:32 2019 +0200 (2019-05-01)
parents 7bc5e65f1caa
children 922f061231c2
line source
1 # SliTaz package receipt.
3 PACKAGE="zfs-fuse"
4 VERSION="0.7.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="ZFS file system from Sun."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="CDDL"
9 WEB_SITE="http://zfs-fuse.net"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 ARCHIVE="https://web.archive.org/web/20120314224050if_/"
12 WGET_URL="$ARCHIVE$WEB_SITE/releases/$VERSION/$TARBALL"
14 DEPENDS="fuse libaio libcrypto perl"
15 BUILD_DEPENDS="fuse-dev scons libaio-dev attr-dev zlib-dev acl-dev openssl-dev \
16 file"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's|(uname -m)|(echo i686)|' src/lib/libumem/config.guess \
22 src/lib/libumem/configure
23 sed -i 's|uname -m|echo i686|' src/SConstruct
24 sed -i 's|attr/xattr|sys/xattr|;s|ENOATTR|ENODATA|' \
25 src/zfs-fuse/zfs_operations.c
27 mkdir -p $DESTDIR/usr
28 cd $src/src
29 # glibc 2.14 update
30 sed -i 's/\*__malloc_initialize_hook/* __volatile __malloc_initialize_hook/' \
31 lib/libumem/malloc.c
32 scons PREFIX=/usr &&
33 scons install_dir=$DESTDIR/usr/sbin \
34 cfg_dir=$DESTDIR/etc \
35 man_dir=$DESTDIR/usr/share/man/man8 install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $install/* $fs
42 rm -rf $fs/usr/share/man
43 }