SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gnu-netcat"

# SliTaz package receipt.

PACKAGE="gnu-netcat"
VERSION="0.7.1"
CATEGORY="network"
SHORT_DESC="GNU rewrite of netcat, the network piping application"
MAINTAINER="slaxemulator@gmail.com"
DEPENDS="texinfo"
SOURCE="netcat"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://netcat.sourceforge.net/"
WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure --mandir=/usr/share/man \
        --infodir=/usr/share/info \
        $CONFIGURE_ARGS &&
    make && make install
}

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

# Pre and post install commands for Tazpkg.
# We must remove all Busybox symlink before installing.
#
pre_install()
{
    local root
    root=$1
    echo "Processing pre-install commands..."
    echo -n "Removing all Busybox replaced utils... "
    rm -f $root/usr/bin/nc
    status
}

post_remove()
{
    ln -s /bin/busybox $1/usr/bin/nc
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)