SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "cifs-utils"

# SliTaz package receipt.

PACKAGE="cifs-utils"
VERSION="6.14"
CATEGORY="system-tools"
SHORT_DESC="CIFS userland tools."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://wiki.samba.org/index.php/LinuxCIFS_utils"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://download.samba.org/pub/linux-cifs/$PACKAGE/$TARBALL"

PROVIDE="smbfs"
DEPENDS="attr libcap linux-cifs"
BUILD_DEPENDS="autoconf automake krb5-dev libcap-dev samba-dev talloc-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

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

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

    cp -a $install/sbin        $fs
    cp -a $install/usr/bin/smbinfo    $fs/usr/bin
    ln -s ../../sbin/mount.cifs    $fs/usr/sbin/mount.cifs
    ln $fs/usr/sbin/mount.cifs    $fs/usr/sbin/umount.cifs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)