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|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
    sed '/th scope="row/!d;s|.*a href="|https://sourceforge.net/|;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
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)