Changeset 10215


Ignore:
Timestamp:
2008-01-16T20:15:46+01:00 (10 years ago)
Author:
marek
Message:

port batman package to batman 0.3
integrate batman kernel modul for tunneling
TODO: batman svn is ssl only :(

Location:
packages/net/batman
Files:
1 deleted
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • packages/net/batman/Makefile

    r9349 r10215  
    1010 
    1111PKG_NAME:=batmand 
    12 PKG_VERSION:=0.2-rv502 
     12PKG_REV:=949 
     13PKG_VERSION:=r$(PKG_REV) 
    1314PKG_RELEASE:=1 
     15PKG_BRANCH:=batman 
    1416 
    15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)_sources 
    16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_sources.tgz 
    17 PKG_SOURCE_URL:=http://downloads.open-mesh.net/batman/stable/sources/ \ 
    18         http://downloads.open-mesh.net/batman/stable/sources/old/ 
    19 PKG_MD5SUM:=cf1c92ef3455cfbfedf2c577e013b6c0 
    20  
     17PKG_SOURCE_PROTO:=svn 
     18PKG_SOURCE_VERSION:=$(PKG_REV) 
     19PKG_SOURCE_SUBDIR:=$(PKG_BRANCH)d-$(PKG_VERSION) 
     20PKG_SOURCE_URL:=https://dev.open-mesh.net/svn/batman/trunk/$(PKG_BRANCH) 
     21PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz 
     22PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR) 
    2123PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    2224 
     25PKG_KMOD_BUILD_DIR:=$(PKG_BUILD_DIR)/linux/modules 
     26 
    2327include $(INCLUDE_DIR)/package.mk 
     28include $(INCLUDE_DIR)/kernel.mk 
    2429 
    25 define Package/batman 
     30define Package/batmand/Default 
    2631  SECTION:=net 
    2732  CATEGORY:=Network 
     33  URL:=https://www.open-mesh.net/ 
     34  MAINTAINER:=Marek Lindner <lindner_marek@yahoo.de> 
     35endef 
     36 
     37define Package/batmand 
     38$(call Package/batmand/Default) 
    2839  DEPENDS:=+libpthread +kmod-tun 
    2940  TITLE:=B.A.T.M.A.N. Better Approach To Mobile Ad-hoc Networking 
    30   URL:=https://www.open-mesh.net/ 
    3141endef 
    3242 
    33 define Build/Configure 
     43define Package/batmand/description 
     44B.A.T.M.A.N. layer 3 routing daemon 
    3445endef 
    3546 
    36 MAKE_FLAGS += \ 
     47define Package/batgat 
     48$(call Package/batmand/Default) 
     49  DEPENDS:=batmand 
     50  TITLE:=B.A.T.M.A.N. gateway module 
     51  FILES:=$(PKG_KMOD_BUILD_DIR)/batgat.$(LINUX_KMOD_SUFFIX) 
     52endef 
     53 
     54define Package/batgat/description 
     55Kernel gateway module for B.A.T.M.A.N. 
     56endef 
     57 
     58MAKE_ARGS += \ 
    3759        CFLAGS="$(TARGET_CFLAGS)" \ 
    3860        CCFLAGS="$(TARGET_CFLAGS)" \ 
    3961        OFLAGS="$(TARGET_CFLAGS)" \ 
     62        CC="$(TARGET_CC)" \ 
    4063        NODEBUG=1 \ 
    4164        UNAME="Linux" \ 
     
    4467        batmand install 
    4568 
    46 define Package/batman/install 
     69define Build/Configure 
     70endef 
     71 
     72define Build/Compile 
     73        $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_ARGS) 
     74        $(shell [ -e $(PKG_KMOD_BUILD_DIR)/Makefile.kbuild ] && mv $(PKG_KMOD_BUILD_DIR)/Makefile.kbuild $(PKG_KMOD_BUILD_DIR)/Makefile) 
     75        $(MAKE) -C "$(LINUX_DIR)" \ 
     76                CROSS_COMPILE="$(TARGET_CROSS)" \ 
     77                ARCH="$(LINUX_KARCH)" \ 
     78                PATH="$(TARGET_PATH)" \ 
     79                SUBDIRS="$(PKG_KMOD_BUILD_DIR)" \ 
     80                LINUX_VERSION="$(LINUX_VERSION)" \ 
     81                REVISION="$(PKG_REV)" modules 
     82endef 
     83 
     84define Package/batmand/install 
    4785        $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d 
    4886        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/batmand $(1)/usr/sbin/ 
    49         $(INSTALL_BIN) ./files/etc/init.d/batman $(1)/etc/init.d 
    50         $(INSTALL_DATA) ./files/etc/config/batman $(1)/etc/config 
     87        $(INSTALL_BIN) ./files/etc/init.d/batmand $(1)/etc/init.d 
     88        $(INSTALL_DATA) ./files/etc/config/batmand $(1)/etc/config 
    5189endef 
    5290 
    53 $(eval $(call BuildPackage,batman)) 
     91$(eval $(call BuildPackage,batmand)) 
     92$(eval $(call BuildPackage,batgat)) 
Note: See TracChangeset for help on using the changeset viewer.