28 lines
804 B
Plaintext
28 lines
804 B
Plaintext
# Description: Linux IEEE 802.1d ethernet bridging utilities
|
|
# URL: https://www.linuxfoundation.org/collaborate/workgroups/networking/bridge
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
|
|
|
name=bridge-utils
|
|
version=1.7.1
|
|
release=1
|
|
source=(https://mirrors.edge.kernel.org/pub/linux/utils/net/bridge-utils/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
# make compilation fail instead of producing footprint mismatches
|
|
sed -i 's/ ; done/ || exit 1 &/g' Makefile.in
|
|
autoconf
|
|
|
|
./configure --prefix=/usr
|
|
|
|
# fix includes...
|
|
sed -i 's|\(#include <sys/socket.h>\)|\1\n#include <netinet/in.h>|1' \
|
|
libbridge/libbridge.h
|
|
sed -i -e 's|linux/if.h|net/if.h|1' -e '/if_bridge.h/d' libbridge/libbridge.h
|
|
sed -i '/KERNEL_HEADERS=/d' libbridge/Makefile
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
}
|