Changeset 31179


Ignore:
Timestamp:
2012-04-02T18:25:51+02:00 (6 years ago)
Author:
florian
Message:

[package] iproute2: update to 3.2.0 and package 'ss'

This patch bumps iproute2 to the latest available version, fixes the
package URL to use kernel.org (as things have now been moved back there)
and also adds ss (socket statistics) to menuconfig.

Signed-off-by: Oliver Smith <olipro@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/iproute2/Makefile

    r28378 r31179  
    99 
    1010PKG_NAME:=iproute2 
    11 PKG_VERSION:=2.6.39 
     11PKG_VERSION:=3.2.0 
    1212PKG_RELEASE:=1 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    15 PKG_SOURCE_URL:=http://devresources.linux-foundation.org/dev/iproute2/download/ 
    16 PKG_MD5SUM:=8a3b6bc77c2ecf752284aa4a6fc630a6 
     15PKG_SOURCE_URL:=http://kernel.org/pub/linux/utils/net/iproute2/ 
     16PKG_MD5SUM:=d58f388b670e0c1b2cd81eb65d5ac626 
    1717PKG_BUILD_PARALLEL:=1 
    1818 
     
    3030$(call Package/iproute2/Default) 
    3131  SUBMENU:=Routing and Redirection 
     32  DEPENDS:= +libnl-tiny 
    3233  TITLE:=Routing control utility 
    3334endef 
     
    4849endef 
    4950 
     51define Package/ss 
     52$(call Package/iproute2/Default) 
     53  TITLE:=Socket statistics utility 
     54endef 
     55 
    5056define Build/Configure 
    5157        $(SED) "s,-I/usr/include/db3,," $(PKG_BUILD_DIR)/Makefile 
     
    5460        $(SED) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \ 
    5561                $(PKG_BUILD_DIR)/Makefile 
    56         # For now disable compiling of the misc directory because it seems to fail 
    57         rm -rf $(PKG_BUILD_DIR)/misc 
    58         $(SED) "s, misc,," $(PKG_BUILD_DIR)/Makefile 
    5962        echo "static const char SNAPSHOT[] = \"$(PKG_VERSION)-$(PKG_RELEASE)-openwrt\";" \ 
    6063                > $(PKG_BUILD_DIR)/include/SNAPSHOT.h 
     
    6265 
    6366MAKE_FLAGS += \ 
    64         EXTRA_CCOPTS="$(TARGET_CFLAGS)" \ 
     67        EXTRA_CCOPTS="$(TARGET_CFLAGS) -I../include -I$(STAGING_DIR)/usr/include/libnl-tiny" \ 
    6568        KERNEL_INCLUDE="$(LINUX_DIR)/include" \ 
    6669        FPIC="$(FPIC)" 
     
    7477        $(MAKE_VARS) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/tc $(MAKE_FLAGS) tc 
    7578        $(MAKE_VARS) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/ip $(MAKE_FLAGS) ip 
     79        $(MAKE_VARS) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/misc $(MAKE_FLAGS) ss 
    7680endef 
    7781 
     
    100104endef 
    101105 
     106define Package/ss/install 
     107        $(INSTALL_DIR) $(1)/usr/sbin 
     108        $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/ss $(1)/usr/sbin/ 
     109endef 
     110 
    102111$(eval $(call BuildPackage,ip)) 
    103112$(eval $(call BuildPackage,tc)) 
    104113$(eval $(call BuildPackage,genl)) 
     114$(eval $(call BuildPackage,ss)) 
Note: See TracChangeset for help on using the changeset viewer.