SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ebtables"

# SliTaz package receipt.

PACKAGE="ebtables"
VERSION="2.0.11"
CATEGORY="network"
TAGS="firewall"
SHORT_DESC="Filtering tool for a Linux-based bridging firewall."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://netfilter.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="http://ftp.netfilter.org/pub/$PACKAGE/$TARBALL"

BUILD_DEPENDS="autoconf automake libtool"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/ebtables/files/ebtables/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;/tar/!d;s|.*-v|v|;s|.tar.*||'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $DESTDIR/etc/rc.d/init.d
    mkdir -p $DESTDIR/etc/sysconfig

    ./autogen.sh &&
    ./configure            \
        --prefix=/usr        \
        --sysconfdir=/etc    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    mkdir -p $fs/etc

    cp -a $install/etc/ethertypes    $fs/etc
    cp -a $install/etc/sysconfig    $fs/etc
    cp -a $install/usr/sbin        $fs/usr
    cp -a $install/usr/lib        $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)