wok annotate dnstop/receipt @ rev 24425

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 11 17:50:36 2022 +0000 (2022-02-11)
parents 17e313b5b9c1
children 665216a7e2f4
rev   line source
pascal@15721 1 # SliTaz package receipt.
pascal@15721 2
pascal@15721 3 PACKAGE="dnstop"
pascal@15721 4 VERSION="20121017"
pascal@15721 5 CATEGORY="network"
pascal@15721 6 SHORT_DESC="Displays various tables of DNS traffic on your network."
pascal@15721 7 MAINTAINER="paul@slitaz.org"
pascal@15721 8 LICENSE="BSD"
pascal@15721 9 DEPENDS="ncurses libpcap"
pascal@15721 10 BUILD_DEPENDS="ncurses-dev libpcap-dev"
pascal@15721 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15721 12 WEB_SITE="http://dns.measurement-factory.com/tools/dnstop"
pascal@15721 13 WGET_URL="$WEB_SITE/src/$TARBALL"
pascal@15721 14
pascal@24425 15 # What is the latest version available today?
pascal@24425 16 current_version()
pascal@24425 17 {
pascal@24425 18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 19 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 20 }
pascal@24425 21
pascal@15721 22 # Rules to configure and make the package.
pascal@15721 23 compile_rules()
pascal@15721 24 {
pascal@17670 25 export LDFLAGS="$LDFLAGS -ltinfo"
pascal@15721 26 ./configure --prefix=/usr
pascal@15721 27 make
pascal@15721 28 }
pascal@15721 29
pascal@15721 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15721 31 genpkg_rules()
pascal@15721 32 {
pascal@15721 33 mkdir -p $fs/usr/bin
pascal@15721 34 cp -a $src/$PACKAGE $fs/usr/bin
pascal@15721 35 }