SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tcpdump"

# SliTaz package receipt.

PACKAGE="tcpdump"
VERSION="4.99.1"
CATEGORY="security"
TAGS="network security"
SHORT_DESC="A network traffic monitoring tool."
MAINTAINER="sdaigl@lacitec.on.ca"
LICENSE="BSD"
WEB_SITE="https://www.tcpdump.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="${WEB_SITE}release/$TARBALL"

DEPENDS="libcrypto libpcap openssl"
BUILD_DEPENDS="libpcap libpcap-dev openssl-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/snapshot/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    # Move tcpdump to /usr/sbin (it's system tools)
    mkdir -p $fs/usr/sbin
    cp -a $install/usr/bin $fs/usr
}
6047 packages and 207212 files in current database (Tue Jun 25 15:15:29 2024)