wok view zfs-fuse/receipt @ rev 25434

Up znc (1.8.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 29 10:14:47 2022 +0000 (2022-08-29)
parents 922f061231c2
children 0262035dc1e7
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="https://web.archive.org/web/20120314224050if_/http://zfs-fuse.net"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$WEB_SITE/releases/$VERSION/$TARBALL"
13 DEPENDS="fuse2 libaio libcrypto perl"
14 BUILD_DEPENDS="fuse2-dev scons libaio-dev attr-dev zlib-dev acl-dev openssl-dev \
15 file"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/gordan-bobic/zfs-fuse/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
22 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|(uname -m)|(echo i686)|' src/lib/libumem/config.guess \
29 src/lib/libumem/configure
30 sed -i 's|uname -m|echo i686|' src/SConstruct
31 sed -i 's|attr/xattr|sys/xattr|;s|ENOATTR|ENODATA|' \
32 src/zfs-fuse/zfs_operations.c
34 mkdir -p $DESTDIR/usr
35 cd $src/src
36 # glibc 2.14 update
37 sed -i 's/\*__malloc_initialize_hook/* __volatile __malloc_initialize_hook/' \
38 lib/libumem/malloc.c
39 scons PREFIX=/usr &&
40 scons install_dir=$DESTDIR/usr/sbin \
41 cfg_dir=$DESTDIR/etc \
42 man_dir=$DESTDIR/usr/share/man/man8 install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cp -a $install/* $fs
49 rm -rf $fs/usr/share/man
50 }