wok view dnstop/receipt @ rev 25511

memtest: 386 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 13 17:17:56 2023 +0000 (21 months ago)
parents 665216a7e2f4
children a66f312c374b
line source
1 # SliTaz package receipt.
3 PACKAGE="dnstop"
4 VERSION="20210329"
5 CATEGORY="network"
6 SHORT_DESC="Displays various tables of DNS traffic on your network."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://dns.measurement-factory.com/tools/dnstop"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="https://github.com/measurement-factory/$PACKAGE/archive/refs/heads/master.zip"
14 DEPENDS="libpcap ncurses"
15 BUILD_DEPENDS="libpcap-dev ncurses-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/measurement-factory/$PACKAGE/commits/master 2>/dev/null | \
21 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -ltinfo"
29 ./configure --prefix=/usr &&
30 make
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin
37 cp -a $src/$PACKAGE $fs/usr/bin
38 }