wok-6.x annotate iptraf-ng/receipt @ rev 24540

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 16:54:57 2022 +0000 (2022-02-23)
parents 5f489761d0c4
children 09793607947c
rev   line source
pascal@17333 1 # SliTaz package receipt.
pascal@17333 2
pascal@17333 3 PACKAGE="iptraf-ng"
pascal@17333 4 VERSION="1.1.4"
pascal@17333 5 CATEGORY="network"
pascal@17333 6 SHORT_DESC="IP Network Monitoring Software."
pascal@17333 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17333 8 LICENSE="GPL2"
pascal@17333 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@17333 10 WEB_SITE="https://fedorahosted.org/iptraf-ng/"
pascal@17333 11 WGET_URL="https://fedorahosted.org/releases/i/p/$PACKAGE/$TARBALL"
al@18937 12 CONFIG_FILES="/var/lib/iptraf-ng/iptraf.cfg"
pascal@17333 13 PROVIDE="iptraf"
pascal@17333 14
pascal@17333 15 DEPENDS="ncursesw"
al@18937 16 BUILD_DEPENDS="ncurses-dev"
pascal@17333 17
pascal@24540 18 # What is the latest version available today?
pascal@24540 19 current_version()
pascal@24540 20 {
pascal@24540 21 wget -O - https://github.com/iptraf-ng/iptraf-ng/releases 2>/dev/null | \
pascal@24540 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24540 23 }
pascal@24540 24
pascal@17333 25 # Rules to configure and make the package.
pascal@17333 26 compile_rules()
pascal@17333 27 {
pascal@17333 28 ./configure --prefix=/usr \
pascal@17333 29 $CONFIGURE_ARGS &&
pascal@17333 30 make &&
pascal@17333 31 make DESTDIR=$DESTDIR install
pascal@17333 32 }
pascal@17333 33
pascal@17333 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17333 35 genpkg_rules()
pascal@17333 36 {
al@18937 37 mkdir -p $fs/var/log/iptraf-ng
pascal@17333 38 cp -a $install/sbin $fs
pascal@17333 39 }