Upgrade batman to rv502
[openwrt/svn-archive/archive.git] / net / batman / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=batmand
12 PKG_VERSION:=0.2-rv502
13 PKG_RELEASE:=1
14
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 PKG_CAT:=zcat
21
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/batman
27 SECTION:=net
28 CATEGORY:=Network
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/
32 endef
33
34 define Build/Configure
35 endef
36
37 MAKE_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 install
46
47 define Package/batman/install
48 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/batmand $(1)/usr/sbin/
50 $(INSTALL_BIN) ./files/etc/init.d/batman $(1)/etc/init.d
51 $(INSTALL_DATA) ./files/etc/config/batman $(1)/etc/config
52 endef
53
54 $(eval $(call BuildPackage,batman))