SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "zfs-fuse"

# SliTaz package receipt.

PACKAGE="zfs-fuse"
VERSION="0.7.0"
CATEGORY="system-tools"
SHORT_DESC="ZFS file system from Sun."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="CDDL"
WEB_SITE="https://web.archive.org/web/20120314224050if_/http://zfs-fuse.net"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$WEB_SITE/releases/$VERSION/$TARBALL"

DEPENDS="fuse2 libaio libcrypto perl"
BUILD_DEPENDS="fuse2-dev scons libaio-dev attr-dev zlib-dev acl-dev openssl-dev \
file"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/gordan-bobic/zfs-fuse/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
}


# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|(uname -m)|(echo i686)|' src/lib/libumem/config.guess \
        src/lib/libumem/configure
    sed -i 's|uname -m|echo i686|' src/SConstruct
    sed -i 's|attr/xattr|sys/xattr|;s|ENOATTR|ENODATA|' \
        src/zfs-fuse/zfs_operations.c

    mkdir -p $DESTDIR/usr
    cd $src/src
    # glibc 2.14 update
    sed -i 's/\*__malloc_initialize_hook/* __volatile __malloc_initialize_hook/' \
        lib/libumem/malloc.c
    scons PREFIX=/usr &&
    scons install_dir=$DESTDIR/usr/sbin \
          cfg_dir=$DESTDIR/etc \
          man_dir=$DESTDIR/usr/share/man/man8 install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
    rm -rf $fs/usr/share/man
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)