# SliTaz package receipt. PACKAGE="jnettop" VERSION="0.13.0" CATEGORY="network" SHORT_DESC="Network online traffic visualizer." MAINTAINER="paul@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://web.archive.org/web/20161127214942/http://jnettop.kubs.info/wiki/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="ncurses libpcap libdb" BUILD_DEPENDS="ncurses-dev libpcap-dev pkg-config glib-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/jnettop/files/jnettop/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;/tar.gz/!d;s|.*/jnettop-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { export LDFLAGS="$LDFLAGS -ltinfo" ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share $fs/root cp -a $install/usr/bin $fs/usr cp -a $install/usr/share/jnettop $fs/usr/share # config file cp -a $src/.jnettop $fs/root/.jnettop }