SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "portmap"

# SliTaz package receipt.

PACKAGE="portmap"
VERSION="6.0"
CATEGORY="network"
SHORT_DESC="RPC portmapper"
MAINTAINER="erjo@slitaz.org"
LICENSE="BSD"
TARBALL="${PACKAGE}-${VERSION}.tgz"
WEB_SITE="ftp://ftp.porcupine.org/pub/security/index.html"
WGET_URL="http://repository.timesys.com/buildsources/${PACKAGE:0:1}/$PACKAGE/$PACKAGE-$VERSION/$TARBALL"

DEPENDS="libwrap"
BUILD_DEPENDS="libwrap-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \
    sed '/portmap-/!d;s|.*portmap-||;s|/.*||'
}

# rules to configure and make the package.
compile_rules()
{
    # Build 
    # Disabling TCP_WRAPPER with NO_TCP_WRAPPER variable
    NO_TCP_WRAPPER=1  make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/sbin
    cp -a $src/pmap_dump $fs/usr/sbin
    cp -a $src/pmap_set $fs/usr/sbin
    cp -a $src/portmap $fs/usr/sbin

    mkdir -p $fs/etc/init.d
    install -g root -o root -m 0755 stuff/init.d/portmap $fs/etc/init.d
}

# Pre and post install commands for Tazpkg.
post_install()
{
    # Post message when installing.
    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)