Upgrade babel to 0.7
[openwrt/svn-archive/archive.git] / ipv6 / babel / Makefile
1 #
2 # Copyright (C) 2007 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:=babel
12 PKG_VERSION:=0.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/
17 PKG_MD5SUM:=be0cc628014cb75501f88f658d90028e
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/babel
22 SECTION:=ipv6
23 CATEGORY:=IPv6
24 TITLE:=A loop-free distance-vector routing protocol
25 URL:=http://www.pps.jussieu.fr/~jch/software/babel/
26 DEPENDS:=+kmod-ipv6
27 endef
28
29 define Package/babel/description
30 Babel is a loop-avoiding distance-vector routing protocol roughly based
31 on DSDV and AODV, but with provisions for link cost estimation and
32 redistribution of routes from other routing protocols.
33 While it is optimised for wireless mesh networks, Babel will also work
34 efficiently on wired networks. It will generate between 1.2 and 2.4 times
35 the amount of routing traffic that RIPng would generate, while
36 never counting to infinity.
37 endef
38
39 define Build/Configure
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 CC="$(TARGET_CC)" \
45 CFLAGS="$(TARGET_CFLAGS)" \
46 all
47 endef
48
49 define Package/babel/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/babel $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,babel))