# SliTaz package receipt. PACKAGE="tcpick" VERSION="0.2.1" CATEGORY="network" SHORT_DESC="TCP stream sniffer and connection tracker" MAINTAINER="slaxemulator@gmail.com" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://tcpick.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="libpcap" BUILD_DEPENDS="libpcap-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/tcpick/files/tcpick/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/tcpick/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { cd $src ./configure --mandir=/usr/share/man && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }