# SliTaz package receipt. PACKAGE="conntrack-tools" VERSION="1.4.6" CATEGORY="security" SHORT_DESC="Userspace tools to interact with the Connection Tracking System." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://www.netfilter.org/projects/conntrack-tools/" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="${WEB_SITE}files/$TARBALL" DEPENDS="libmnl libnetfilter_conntrack libnetfilter_cthelper libnetfilter_queue libnfnetlink" BUILD_DEPENDS="bison flex glib-dev libmnl-dev libnetfilter_conntrack-dev libnetfilter_cthelper-dev libnetfilter_cttimeout-dev libnetfilter_queue-dev libnfnetlink-dev pkg-config" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i '/enum ip_conntrack_info {/,/};/d' \ include/helper.h ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders lib cook_copy_folders sbin }