blob: 271e72ecd32571182c56592d078746cc8a0b9ca9 (
plain)
1 # Description: Linux IEEE 802.1d ethernet bridging utilities
2 # URL: https://www.linuxfoundation.org/collaborate/workgroups/networking/bridge
3 # Maintainer: Matt Housh, jaeger at crux dot ninja
4
5 name=bridge-utils
6 version=1.7.1
7 release=1
8 source=(https://mirrors.edge.kernel.org/pub/linux/utils/net/bridge-utils/$name-$version.tar.xz)
9
10 build() {
11 cd $name-$version
12
13 # make compilation fail instead of producing footprint mismatches
14 sed -i 's/ ; done/ || exit 1 &/g' Makefile.in
15 autoconf
16
17 ./configure --prefix=/usr
18
19 # fix includes...
20 sed -i 's|\(#include <sys/socket.h>\)|\1\n#include <netinet/in.h>|1' \
21 libbridge/libbridge.h
22 sed -i -e 's|linux/if.h|net/if.h|1' -e '/if_bridge.h/d' libbridge/libbridge.h
23 sed -i '/KERNEL_HEADERS=/d' libbridge/Makefile
24
25 make
26 make DESTDIR=$PKG install
27 }
|