SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tcpreplay"

# SliTaz package receipt.

PACKAGE="tcpreplay"
VERSION="3.4.4"
CATEGORY="network"
SHORT_DESC="Test network with libpcap captured traffic."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://tcpreplay.appneta.com/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libdnet"
BUILD_DEPENDS="libpcap-dev libdnet-dev tcpdump libnl1"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed 's| |\n|g' | sed '/^"tcpreplay\//!d;s|^"|https://sourceforge.net/projects/tcpreplay/files/|;s|",||;q' | xargs wget -O - 2>/dev/null | \
    sed '/tcpreplay-/!d;/asc/!d;s|.*tcpreplay-||;s|.[zt].*||;s|_|.|g;q' 
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)