iproute2: improve ip-full coexistence, remove rt_table
authorSteven Barth <cyrus@openwrt.org>
Tue, 8 Sep 2015 17:44:17 +0000 (17:44 +0000)
committerSteven Barth <cyrus@openwrt.org>
Tue, 8 Sep 2015 17:44:17 +0000 (17:44 +0000)
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46831

package/network/utils/iproute2/Makefile

index 7b55f695e8db13633b359d52a24e50952f383831..cc73c1318bfd96008f84e4065f773fe9fcb5a0e5 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=iproute2
 PKG_VERSION:=4.0.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://kernel.org/pub/linux/utils/net/iproute2/
@@ -39,10 +39,6 @@ endef
 
 Package/ip-full=$(call Package/iproute2/Default,full,Full)
 
-define Package/ip/conffiles
-/etc/iproute2/rt_tables
-endef
-
 define Package/ip-$(BUILD_VARIANT)/conffiles
 $(Package/ip/conffiles)
 endef
@@ -112,13 +108,12 @@ endef
 
 define Package/ip/install
        $(INSTALL_DIR) $(1)/usr/sbin
-       $(INSTALL_DIR) $(1)/etc/iproute2
-       $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/iproute2/rt_tables $(1)/etc/iproute2
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ip/ip $(1)/usr/sbin/
 endef
 
-define Package/ip-$(BUILD_VARIANT)/install
-       $(Package/ip/install)
+define Package/ip-full/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ip/ip $(1)/usr/bin/
 endef
 
 define Package/tc/install