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
|
|
|
|
# Packager: Matt Housh, jaeger at morpheus dot net
|
2006-11-07 09:29:05 -06:00
|
|
|
|
|
|
|
name=bridge-utils
|
2011-11-28 10:10:01 -06:00
|
|
|
version=1.5
|
2006-11-07 09:29:05 -06:00
|
|
|
release=1
|
2010-11-12 12:03:50 +01:00
|
|
|
source=(http://download.sourceforge.net/bridge/$name-$version.tar.gz)
|
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
|
|
|
|
2013-11-18 21:09:28 +01:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--mandir=/usr/man
|
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
|
|
|
}
|