Skip to contentSkip to conversation

iproute2: bump to version 3.12.0

PATCH New Gustavo Zacarias 2 participants 2 messages Dec 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iproute2: bump to version 3.12.0

* Add arpd support via the new berkeleydb compat option.
* Remove uninstall define.
* Install ifcfg if bash on the target is enabled.
* Misc cleanups.

---
 ...-ipv6.patch => iproute2-01-optional-ipv6.patch} |  0
 .../iproute2/iproute2-02-vxlan-optional-ipv6.patch | 84 ++++++++++++++++++++++
 package/iproute2/iproute2.mk                       | 39 +++++-----
 3 files changed, 107 insertions(+), 16 deletions(-)
 rename package/iproute2/{iproute2-optional-ipv6.patch => iproute2-01-optional-ipv6.patch} (100%)
 create mode 100644 package/iproute2/iproute2-02-vxlan-optional-ipv6.patch
package/iproute2/iproute2-01-optional-ipv6.patch renamed from package/iproute2/iproute2-optional-ipv6.patch +0 -0
similarity index 100%
rename from package/iproute2/iproute2-optional-ipv6.patch
rename to package/iproute2/iproute2-01-optional-ipv6.patch
package/iproute2/iproute2-02-vxlan-optional-ipv6.patch new file +84 -0

84 lines not on this page · raw message

package/iproute2/iproute2.mk +23 -16
index a63a096..2350500 100644
@@ -4,13 +4,12 @@
 #
 ################################################################################
 
-IPROUTE2_VERSION = 3.11.0
+IPROUTE2_VERSION = 3.12.0
 IPROUTE2_SOURCE = iproute2-$(IPROUTE2_VERSION).tar.xz
 IPROUTE2_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/net/iproute2
-IPROUTE2_TARGET_SBINS = ctstat genl ifstat ip lnstat nstat routef routel rtacct rtmon rtpr rtstat ss tc
+IPROUTE2_DEPENDENCIES = host-bison host-flex
 IPROUTE2_LICENSE = GPLv2
 IPROUTE2_LICENSE_FILES = COPYING
-IPROUTE2_DEPENDENCIES += host-bison host-flex
 
 # If both iproute2 and busybox are selected, make certain we win
 # the fight over who gets to have their utils actually installed.
@@ -33,19 +32,36 @@ define IPROUTE2_WITH_IPTABLES
 endef
 endif
 
+# arpd needs BerkeleyDB
+ifeq ($(BR2_PACKAGE_BERKELEYDB_COMPAT185),y)
+IPROUTE2_DEPENDENCIES += berkeleydb
+else
+define IPROUTE2_DISABLE_ARPD
+	$(SED) "/^TARGETS=/s: arpd : :" $(IPROUTE2_DIR)/misc/Makefile
+endef
+endif
+
+# ifcfg needs bash
+ifeq ($(BR2_PACKAGE_BASH),)
+define IPROUTE2_REMOVE_IFCFG
+	rm -f $(TARGET_DIR)/sbin/ifcfg
+endef
+endif
+
 define IPROUTE2_CONFIGURE_CMDS
 	$(SED) 's/gcc/$$CC $$CFLAGS/g' $(@D)/configure
 	cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure
-	# arpd needs berkeleydb
-	$(SED) "/^TARGETS=/s: arpd : :" $(IPROUTE2_DIR)/misc/Makefile
 	$(SED) 's/-Werror//' $(IPROUTE2_DIR)/Makefile
 	echo "IPT_LIB_DIR:=/usr/lib/xtables" >>$(IPROUTE2_DIR)/Config
+	$(IPROUTE2_DISABLE_ARPD)
 	$(IPROUTE2_WITH_IPTABLES)
 endef
 
 define IPROUTE2_BUILD_CMDS
 	$(SED) 's/$$(CCOPTS)//' $(@D)/netem/Makefile
-	$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CCOPTS="$(TARGET_CFLAGS) -D_GNU_SOURCE" -C $(@D)
+	$(TARGET_MAKE_ENV) $(MAKE) \
+		DBM_INCLUDE="$(STAGING_DIR)/usr/include" \
+		CCOPTS="$(TARGET_CFLAGS) -D_GNU_SOURCE" -C $(@D)
 endef
 
 define IPROUTE2_INSTALL_TARGET_CMDS
@@ -53,16 +69,7 @@ define IPROUTE2_INSTALL_TARGET_CMDS
 		SBINDIR=/sbin \
 		DOCDIR=/usr/share/doc/iproute2-$(IPROUTE2_VERSION) \
 		MANDIR=/usr/share/man install
-	# Wants bash
-	rm -f $(TARGET_DIR)/sbin/ifcfg
-endef
-
-define IPROUTE2_UNINSTALL_TARGET_CMDS
-	rm -rf $(TARGET_DIR)/lib/tc
-	rm -rf $(TARGET_DIR)/usr/lib/tc
-	rm -rf $(TARGET_DIR)/etc/iproute2
-	rm -rf $(TARGET_DIR)/var/lib/arpd
-	rm -f $(addprefix $(TARGET_DIR)/sbin/, $(IPROUTE2_TARGET_SBINS))
+	$(IPROUTE2_REMOVE_IFCFG)
 endef
 
 $(eval $(generic-package))
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 iproute2: bump to version 3.12.0

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

* Add arpd support via the new berkeleydb compat option.
* Remove uninstall define.
* Install ifcfg if bash on the target is enabled.
* Misc cleanups.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard