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