Changeset 8289


Ignore:
Timestamp:
2007-08-01T00:07:27+02:00 (11 years ago)
Author:
pavlov
Message:

batman-advanced: clean up and honor copts

Location:
packages/net/batman-advanced
Files:
1 deleted
1 edited

Legend:

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

    r8288 r8289  
    1010 
    1111PKG_NAME:=batmand-adv 
    12 PKG_VERSION:=0.1-alpha-rv466_sources 
     12PKG_VERSION:=0.1-alpha-rv466 
    1313PKG_RELEASE:=1 
    1414 
    15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION) 
    16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tgz 
    17 PKG_SOURCE_URL:=http://downloads.open-mesh.net/batman/development/sources/ 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)_sources 
     16PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_sources.tgz 
     17PKG_SOURCE_URL:=http://downloads.open-mesh.net/batman/development/sources/ \ 
     18        http://downloads.open-mesh.net/batman/development/sources/old/ 
    1819PKG_MD5SUM:=3ebc394a7b7b3fa5cecaf97f6a220a3f 
    1920PKG_CAT:=zcat 
     
    2728  CATEGORY:=Network 
    2829  DEPENDS:=+libpthread +kmod-tun 
    29   TITLE:=B.A.T.M.A.N. Better Approach To Mobile Ad-hoc Networking (L2 Version) 
     30  TITLE:=B.A.T.M.A.N. Advanced (Layer2 Version) 
    3031  URL:=https://www.open-mesh.net/ 
    3132endef 
     
    3435endef 
    3536 
    36 define Build/Compile 
    37         rm -rf $(PKG_INSTALL_DIR) 
    38         mkdir -p $(PKG_INSTALL_DIR) 
    39         $(MAKE) -C "$(PKG_BUILD_DIR)" \ 
    40                 $(TARGET_CONFIGURE_OPTS) \ 
    41                 NODEBUG=1 \ 
    42                 OFLAGS="$(TARGET_CFLAGS)" \ 
    43                 UNAME="Linux" \ 
    44                 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \ 
    45                 STRIP="/bin/true" \ 
    46                 batmand-adv install 
     37MAKE_FLAGS += \ 
     38        CFLAGS="$(TARGET_CFLAGS)" \ 
     39        CCFLAGS="$(TARGET_CFLAGS)" \ 
     40        OFLAGS="$(TARGET_CFLAGS)" \ 
     41        NODEBUG=1 \ 
     42        UNAME="Linux" \ 
     43        INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \ 
     44        STRIP="/bin/true" \ 
     45        batmand-adv install 
     46 
     47define Package/batman-advanced/install 
     48        $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d 
     49        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/batmand-adv $(1)/usr/sbin/ 
     50        $(INSTALL_BIN) ./files/etc/init.d/batman-adv $(1)/etc/init.d 
     51        $(INSTALL_DATA) ./files/etc/config/batman-adv $(1)/etc/config 
    4752endef 
    4853 
    49 define Package/batman-advanced/install 
    50         $(INSTALL_DIR) $(1)/usr/sbin 
    51         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/batmand-adv $(1)/usr/sbin/ 
    52         $(CP) -a ./files/* $(1)/ 
    53         chmod -R 755 $(1)/etc/init.d/batman 
    54 endef 
    55  
    56  
    5754$(eval $(call BuildPackage,batman-advanced)) 
Note: See TracChangeset for help on using the changeset viewer.