SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "unfs3"

# SliTaz package receipt.

PACKAGE="unfs3"
VERSION="0.9.22"
CATEGORY="network"
SHORT_DESC="User-land NFSv3 Server"
MAINTAINER="erjo@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://unfs3.sourceforge.net/"
WGET_URL="$SF_MIRROR/project/unfs3/unfs3/$VERSION/$TARBALL"
TAGS="network nfs"
CONFIG_FILES="/etc/exports"

DEPENDS="portmap"
BUILD_DEPENDS="flex"

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

# Rules to configure and make the package.
compile_rules()
{
    ./configure --prefix=/usr --infodir=/usr/share/info \
    --sysconfdir=/etc \
    --mandir=/usr/share/man $CONFIGURE_ARGS &&
    make -j 1
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    install -g root -o root -m 0755 -s $src/unfsd $fs/usr/bin
    
    mkdir -p $fs/etc/init.d
    install -g root -o root -m 0644 stuff/etc/exports $fs/etc
    install -g root -o root -m 0755 stuff/etc/init.d/unfsd $fs/etc/init.d
}

post_install()
{

       echo -e "\nTo starts $PACKAGE server you can run :\n"
       echo "/etc/init.d/$PACKAGE start"
       echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)