2006-11-07 09:29:05 -06:00
|
|
|
# Description: Linux IEEE 802.1d ethernet bridging utilities
|
2013-11-18 21:09:28 +01:00
|
|
|
# URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge
|
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2006-11-07 09:29:05 -06:00
|
|
|
|
|
|
|
name=bridge-utils
|
2019-09-20 23:40:07 +02:00
|
|
|
version=1.6
|
2006-11-07 09:29:05 -06:00
|
|
|
release=1
|
2019-09-20 23:40:07 +02:00
|
|
|
source=(https://www.kernel.org/pub/linux/utils/net/bridge-utils/bridge-utils-${version}.tar.xz)
|
2006-11-07 09:29:05 -06:00
|
|
|
|
|
|
|
build() {
|
2013-11-18 21:09:28 +01:00
|
|
|
cd $name-$version
|
2014-05-10 18:40:01 +02:00
|
|
|
|
|
|
|
# make compilation fail instead of producing footprint mismatches
|
|
|
|
sed -i 's/ ; done/ || exit 1 &/g' Makefile.in
|
2013-11-18 21:09:28 +01:00
|
|
|
autoconf
|
2014-05-10 18:40:01 +02:00
|
|
|
|
2017-08-21 00:18:11 +02:00
|
|
|
./configure --prefix=/usr
|
2014-04-09 11:27:08 +02:00
|
|
|
|
2014-05-10 18:40:01 +02:00
|
|
|
# fix includes...
|
2014-04-09 11:27:08 +02:00
|
|
|
sed -i 's|\(#include <sys/socket.h>\)|\1\n#include <netinet/in.h>|1' \
|
|
|
|
libbridge/libbridge.h
|
2014-05-10 18:40:01 +02:00
|
|
|
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
|
2014-04-09 11:27:08 +02:00
|
|
|
|
2013-11-18 21:09:28 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2006-11-07 09:29:05 -06:00
|
|
|
}
|