SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "traceroute"

# SliTaz package receipt.

PACKAGE="traceroute"
VERSION="2.1.0"
CATEGORY="network"
SHORT_DESC="The full-featured traceroute program."
MAINTAINER="samuel_trassare@yahoo.com"
LICENSE="GPL2"
WEB_SITE="https://traceroute.sourceforge.net/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

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

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

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

post_remove()
{
    # Restore the symbolic link to busybox.
    ln -s /bin/busybox /usr/bin/traceroute
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)