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