SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "avfs"

# SliTaz package receipt.

PACKAGE="avfs"
VERSION="1.1.4"
CATEGORY="system-tools"
SHORT_DESC="A virtual Filesystem implemented with FUSE."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://sourceforge.net/projects/avf/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$SF_MIRROR/avf/$PACKAGE/$VERSION/$TARBALL"

DEPENDS="fuse2 liblzma"
BUILD_DEPENDS="fuse2-dev liblzma-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/avf/files/avfs/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/avfs/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure        \
        --prefix=/usr    \
        --enable-fuse    \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib

    cp -a $install/usr/bin        $fs/usr
#    cp -a $install/usr/sbin        $fs/usr
    cp -a $install/usr/lib/avfs    $fs/usr/lib
    cp -a $install/usr/lib/*.so*    $fs/usr/lib

# Up to 2022-01-31, mountavfs and umountavfs have been copied while
# Making install in scripts
# Why no more?
    install -o root -m 0755    $src/scripts/mountavfs    $fs/usr/bin/mountavfs
    install -o root -m 0755 $src/scripts/umountavfs    $fs/usr/bin/umountavfs

    # bash not really needed
    sed -i '1s|#!/bin/bash|#!/bin/sh|'    $fs/usr/bin/mountavfs
    sed -i '1s|#!/bin/bash|#!/bin/sh|'    $fs/usr/bin/umountavfs

    # 1.1.4 against: can't create $HOME/.avfs/#dav_ctl:*
    patch --strip=0 --directory=$fs --input=$stuff/patches/davpass-1.1.4
    patch --strip=0 --directory=$fs --input=$stuff/patches/ftppass-1.1.4
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)