From 4a343362da5b7c54fcfa7b403a026c1a2fee0b88 Mon Sep 17 00:00:00 2001 From: Nikolay Martynov Date: Sun, 24 May 2015 01:52:35 -0400 Subject: [PATCH] bridge-utils: copy from oldpackages * update Makefile accoring to CONTRIBUTING.md, set maintainer * fix file offset handling * use https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git for source code Signed-off-by: Nikolay Martynov --- net/bridge-utils/Makefile | 52 +++++++++++++++++++ .../patches/001-libbridge_cflags.patch | 11 ++++ .../010-fix_struct_in6_addr_usage.patch | 10 ++++ 3 files changed, 73 insertions(+) create mode 100644 net/bridge-utils/Makefile create mode 100644 net/bridge-utils/patches/001-libbridge_cflags.patch create mode 100644 net/bridge-utils/patches/010-fix_struct_in6_addr_usage.patch diff --git a/net/bridge-utils/Makefile b/net/bridge-utils/Makefile new file mode 100644 index 000000000..5a9cdb8af --- /dev/null +++ b/net/bridge-utils/Makefile @@ -0,0 +1,52 @@ +# +# Copyright (C) 2006-2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk + +PKG_NAME:=bridge-utils +PKG_VERSION:=1.5 +PKG_RELEASE:=3 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git +PKG_SOURCE_VERSION:=v${PKG_VERSION} +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz + +PKG_LICENSE:=GPL-2.0+ +PKG_LICENSE_FILES:=COPYING +PKG_FIXUP:=autoreconf + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz + +include $(INCLUDE_DIR)/package.mk + +define Package/bridge + SECTION:=net + CATEGORY:=Base system + TITLE:=Ethernet bridging configuration utility + URL:=http://bridge.sourceforge.net/ + PKG_MAINTAINER:=Nikolay Martynov +endef + +define Package/bridge/description + Manage ethernet bridging: a way to connect networks together to + form a larger network. +endef + +TARGET_CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE + +CONFIGURE_ARGS += \ + --with-linux-headers="$(LINUX_DIR)" \ + +define Package/bridge/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin +endef + +$(eval $(call BuildPackage,bridge)) diff --git a/net/bridge-utils/patches/001-libbridge_cflags.patch b/net/bridge-utils/patches/001-libbridge_cflags.patch new file mode 100644 index 000000000..e35a64947 --- /dev/null +++ b/net/bridge-utils/patches/001-libbridge_cflags.patch @@ -0,0 +1,11 @@ +--- a/libbridge/Makefile.in ++++ b/libbridge/Makefile.in +@@ -5,7 +5,7 @@ AR=ar + RANLIB=@RANLIB@ + + CC=@CC@ +-CFLAGS = -Wall -g $(KERNEL_HEADERS) ++CFLAGS = -Wall -g @CFLAGS@ $(KERNEL_HEADERS) + + prefix=@prefix@ + exec_prefix=@exec_prefix@ diff --git a/net/bridge-utils/patches/010-fix_struct_in6_addr_usage.patch b/net/bridge-utils/patches/010-fix_struct_in6_addr_usage.patch new file mode 100644 index 000000000..c2087e590 --- /dev/null +++ b/net/bridge-utils/patches/010-fix_struct_in6_addr_usage.patch @@ -0,0 +1,10 @@ +--- a/libbridge/libbridge.h ++++ b/libbridge/libbridge.h +@@ -20,6 +20,7 @@ + #define _LIBBRIDGE_H + + #include ++#include + #include + #include +