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"
LICENSE="GPL2"
SOURCE="netcat"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="https://netcat.sourceforge.net/"
WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"

DEPENDS="texinfo"

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

# Rules to configure and make the package.
compile_rules()
{
    ./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 $install/usr/bin $fs/usr
}

post_remove()
{
    ln -s /bin/busybox "$1/usr/bin/nc"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)