# SliTaz package receipt. PACKAGE="iptstate" VERSION="2.2.7" CATEGORY="network" SHORT_DESC="IPTState is a top-like interface to your netfilter connection-tracking table." MAINTAINER="paul@slitaz.org" LICENSE="zlib/libpng" WEB_SITE="https://www.phildev.net/iptstate/" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://github.com/jaymzh/$PACKAGE/releases/download/v$VERSION/$TARBALL" DEPENDS="iptables libnetfilter_conntrack libnfnetlink ncurses" BUILD_DEPENDS="libnetfilter_conntrack-dev libnfnetlink-dev ncurses-dev" current_version() { wget -O - ${WGET_URL%/down*} 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { sed -i 's/lncurses/& -ltinfo/' Makefile make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/sbin cp -a $src/$PACKAGE $fs/usr/sbin }