# SliTaz package receipt. PACKAGE="darkstat" VERSION="3.0.721" CATEGORY="network" TAGS="network monitor stats statistics" SHORT_DESC="Simple network traffic statistics." MAINTAINER="erjo@slitaz.org" LICENSE="GPL2 BSD" WEB_SITE="https://unix4lyfe.org/darkstat/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/emikulic/$PACKAGE/archive/refs/tags/$VERSION.tar.gz" DEPENDS="libpcap zlib" BUILD_DEPENDS="autoconf libpcap-dev zlib-dev" # What is the latest version available today? current_version() { wget -O - https://github.com/emikulic/darkstat/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # 3.0.719 unrecognised # --with-chroot-dir=/var/lib/darkstat autoconf && autoheader && ./configure \ --prefix=/usr \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/var/lib/darkstat cook_copy_folders sbin }