SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dnstop"

# SliTaz package receipt.

PACKAGE="dnstop"
VERSION="20210329"
CATEGORY="network"
SHORT_DESC="Displays various tables of DNS traffic on your network."
MAINTAINER="paul@slitaz.org"
LICENSE="BSD"
WEB_SITE="http://dns.measurement-factory.com/tools/dnstop"

TARBALL="$PACKAGE-$VERSION.zip"
WGET_URL="https://github.com/measurement-factory/$PACKAGE/archive/refs/heads/master.zip"

DEPENDS="libpcap ncurses"
BUILD_DEPENDS="libpcap-dev ncurses-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/measurement-factory/$PACKAGE/commits/master 2>/dev/null | \
    sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -ltinfo"

    ./configure --prefix=/usr &&
    make 
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp -a $src/$PACKAGE    $fs/usr/bin
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)