Ignore:
Timestamp:
2011-06-24T04:28:53+02:00 (5 years ago)
Author:
marek
Message:

batman-adv: upgrade package to latest release (2011.2.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/batman-adv/Makefile

    r26718 r27268  
    1111PKG_NAME:=batman-adv 
    1212 
    13 PKG_VERSION:=2011.1.0 
    14 PKG_MD5SUM:=a05a3ff72bbc12859539f6a9e14af098 
    15 BATCTL_MD5SUM:=d3c7cca45c223a0ab80373fcb434dd5e 
     13PKG_VERSION:=2011.2.0 
     14PKG_MD5SUM:=1ef45406201913cc08ac01e47ad2d034 
     15BATCTL_MD5SUM:=69e7fe915f2c1867b74e6efe7c627dd5 
    1616 
    1717PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    7474$(eval $(call Download,batctl)) 
    7575 
     76EXTRACT_BATCTL = tar xzf "$(DL_DIR)/batctl-$(PKG_VERSION).tar.gz" -C "$(BUILD_DIR)/$(PKG_NAME)" 
     77PATCH_BATCTL = $(call Build/DoPatch,"$(PKG_BATCTL_BUILD_DIR)","$(PATCH_DIR)","*batctl*") 
    7678BUILD_BATCTL = $(MAKE) -C $(PKG_TOOL_BUILD_DIR) $(MAKE_BATCTL_ARGS) 
    7779endif 
    7880 
     81define Build/DoPatch 
     82        @if [ -d "$(2)" ]; then \ 
     83                if [ "$$$$(ls $(2) | grep -Ec $(3))" -gt 0 ]; then \ 
     84                        $(PATCH) "$(1)" "$(2)" "$(3)"; \ 
     85                fi; \ 
     86        fi 
     87endef 
     88 
     89define Build/Patch 
     90        $(call Build/DoPatch,"$(PKG_BUILD_DIR)","$(PATCH_DIR)","*batman*") 
     91        $(EXTRACT_BATCTL) 
     92        $(PATCH_BATCTL) 
     93endef 
     94 
    7995define Build/Compile 
    80         tar xzf "$(DL_DIR)/batctl-$(PKG_VERSION).tar.gz" -C "$(BUILD_DIR)/$(PKG_NAME)" 
    8196        cp $(PKG_BUILD_DIR)/Makefile.kbuild $(PKG_BUILD_DIR)/Makefile 
    8297        $(MAKE) -C "$(LINUX_DIR)" $(MAKE_BATMAN_ADV_ARGS) 
Note: See TracChangeset for help on using the changeset viewer.