SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "bridge-utils"

# SliTaz package receipt.

PACKAGE="bridge-utils"
VERSION="1.6"
CATEGORY="system-tools"
SHORT_DESC="IEEE 802.1d ethernet bridging"
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://wiki.linuxfoundation.org/networking/bridge"
WGET_URL="https://mirrors.edge.kernel.org/pub/linux/utils/net/bridge-utils/$TARBALL"
TAGS="ethernet bridge"

BUILD_DEPENDS="automake"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 
}

# Rules to configure and make the package.
compile_rules()
{
    autoconf
    ./configure --prefix=/usr &&
    make && make DESTDIR=$DESTDIR install
}

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

post_remove()
{
    ln -s /bin/busybox "$1/usr/sbin/brctl"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)