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://git.netfilter.org/ebtables/ 2>/dev/null | \
    sed '/ebtables-/!d;s|.*ebtables-||;s|<.*||;q'
}

# 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
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)