SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ipset"

# SliTaz package receipt.

PACKAGE="ipset"
VERSION="7.15"
CATEGORY="security"
SHORT_DESC="High speed match for an entry against a set of firewall rules."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://ipset.netfilter.org/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="${WEB_SITE}$TARBALL"

DEPENDS="libmnl"
BUILD_DEPENDS="linux-module-headers libltdl libmnl-dev pkg-config"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/install.html 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()
{
    KVERSION=$(grep ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)-slitaz
    sed -i "s|uname -r|echo $KVERSION|"    configure

    ./configure        \
        --prefix=/usr    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    sbin
    cook_copy_files        *.so*
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)