wok-current annotate iftop/receipt @ rev 25342
Down python-bcrypt: last version supporting python < 3.6
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 24 17:10:41 2022 +0000 (2022-07-24) |
parents | c7c3567bd8d4 |
children |
rev | line source |
---|---|
pascal@1308 | 1 # SliTaz package receipt. |
pascal@1308 | 2 |
pascal@1308 | 3 PACKAGE="iftop" |
pascal@1308 | 4 VERSION="0.17" |
pascal@1308 | 5 CATEGORY="system-tools" |
pascal@1308 | 6 SHORT_DESC="Bandwidth usage on an interface." |
pascal@1308 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15600 | 8 LICENSE="GPL2" |
pascal@1308 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1308 | 10 WEB_SITE="http://ex-parrot.com/~pdw/iftop/" |
pascal@1308 | 11 WGET_URL="${WEB_SITE}download/$TARBALL" |
pascal@15600 | 12 TAGS="network monitor usage" |
pascal@15600 | 13 |
slaxemulator@7168 | 14 BUILD_DEPENDS="libpcap-dev ncurses-dev" |
pascal@1308 | 15 DEPENDS="libpcap ncurses" |
pascal@1308 | 16 |
pascal@24427 | 17 # What is the latest version available today? |
pascal@24427 | 18 current_version() |
pascal@24427 | 19 { |
pascal@24427 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24427 | 21 sed "/dev/d;/LATEST/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\([0-9\\.]*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24427 | 22 } |
pascal@24427 | 23 |
pascal@1308 | 24 # Rules to configure and make the package. |
pascal@1308 | 25 compile_rules() |
pascal@1308 | 26 { |
pascal@17673 | 27 export LDFLAGS="$LDFLAGS -ltinfo" |
pascal@1308 | 28 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1308 | 29 --mandir=/usr/share/man $CONFIGURE_ARGS |
pascal@1308 | 30 make |
pascal@15600 | 31 make DESTDIR=$DESTDIR install |
pascal@1308 | 32 } |
pascal@1308 | 33 |
pascal@1308 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1308 | 35 genpkg_rules() |
pascal@1308 | 36 { |
pascal@1308 | 37 mkdir -p $fs/usr/ |
pascal@15600 | 38 cp -a $install/usr/sbin $fs/usr |
pascal@1308 | 39 } |