wok view nethogs/receipt @ rev 25770
dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 11:29:23 2024 +0000 (2 months ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="nethogs"
4 VERSION="0.8.5"
5 CATEGORY="network"
6 TAGS="network"
7 SHORT_DESC="Small 'net top' tool."
8 MAINTAINER="paul@slitaz.org"
9 LICENSE="GPL"
10 WEB_SITE="https://github.com/raboof/nethogs"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}/archive/v$VERSION.tar.gz"
15 DEPENDS="gcc-lib-base libpcap ncursesw"
16 BUILD_DEPENDS="libpcap libpcap-dev ncursesw-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # sed -i 's|lncurses|& -ltinfo|' Makefile
29 export LDFLAGS="$LDFLAGS -lncursesw"
31 make
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/sbin
38 cp $src/src/nethogs $fs/usr/sbin
39 }