2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
11 PKG_NAME
:=bridge-utils
16 PKG_SOURCE_URL
:=https
://git.kernel.org
/pub
/scm
/linux
/kernel
/git
/shemminger
/bridge-utils.git
17 PKG_SOURCE_VERSION
:=v
${PKG_VERSION}
18 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
22 PKG_LICENSE_FILES
:=COPYING
25 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
27 include $(INCLUDE_DIR
)/package.mk
32 TITLE
:=Ethernet bridging configuration utility
33 URL
:=http
://bridge.sourceforge.net
/
34 PKG_MAINTAINER
:=Nikolay Martynov
<mar.kolya@gmail.com
>
37 define Package
/bridge
/description
38 Manage ethernet bridging
: a way to connect networks together to
39 form a larger network.
42 TARGET_CFLAGS
+= -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS
=64 -D_GNU_SOURCE
45 --with-linux-headers
="$(LINUX_DIR)" \
47 define Package
/bridge
/install
48 $(INSTALL_DIR
) $(1)/usr
/sbin
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/brctl
/brctl
$(1)/usr
/sbin
52 define Package
/bridge
/prerm
54 $${IPKG_INSTROOT}/bin
/busybox brctl
-h
2>&1 | grep
-q BusyBox
&& \
55 ln
-sf ..
/..
/bin
/busybox
$${IPKG_INSTROOT}/usr
/sbin
/brctl
59 $(eval
$(call BuildPackage
,bridge
))