2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
12 PKG_VERSION:=0.2-rv478
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/
19 PKG_MD5SUM:=b00ad9603e32c85224d5b19f99126ddf
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
24 include $(INCLUDE_DIR)/package.mk
29 DEPENDS:=+libpthread +kmod-tun
30 TITLE:=B.A.T.M.A.N. Better Approach To Mobile Ad-hoc Networking
31 URL:=https://www.open-mesh.net/
34 define Build/Configure
38 CFLAGS="$(TARGET_CFLAGS)" \
39 CCFLAGS="$(TARGET_CFLAGS)" \
40 OFLAGS="$(TARGET_CFLAGS)" \
43 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
47 define Package/batman/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/batmand $(1)/usr/sbin/
50 $(CP) -a ./files/* $(1)/
51 chmod -R 755 $(1)/etc/init.d/batman
55 $(eval $(call BuildPackage,batman))