wok view jnettop/receipt @ rev 25669

Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 16:11:20 2024 +0000 (6 months ago)
parents 00e3b45c063b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="jnettop"
4 VERSION="0.13.0"
5 CATEGORY="network"
6 SHORT_DESC="Network online traffic visualizer."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://web.archive.org/web/20161127214942/http://jnettop.kubs.info/wiki/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="ncurses libpcap libdb"
14 BUILD_DEPENDS="ncurses-dev libpcap-dev pkg-config glib-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/jnettop/files/jnettop/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;/tar.gz/!d;s|.*/jnettop-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -ltinfo"
28 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make && make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share $fs/root
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/jnettop $fs/usr/share
42 # config file
43 cp -a $src/.jnettop $fs/root/.jnettop
44 }