merge babeld from packages to packages_8.09
[openwrt/svn-archive/archive.git] / ipv6 / babel / Makefile
1 #
2 # Copyright (C) 2007-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=babeld
11 PKG_VERSION:=0.97
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/
16 PKG_MD5SUM:=be0748c382dfe60bd35aa6b661e6077d
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/babeld
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=A loop-free distance-vector routing protocol
24 URL:=http://www.pps.jussieu.fr/~jch/software/babel/
25 DEPENDS:=+kmod-ipv6
26 endef
27
28 define Package/babeld/description
29 Babel is a loop-avoiding distance-vector routing protocol roughly based
30 on DSDV and AODV, but with provisions for link cost estimation and
31 redistribution of routes from other routing protocols.
32 While it is optimised for wireless mesh networks, Babel will also work
33 efficiently on wired networks. It will generate between 1.2 and 2.4 times
34 the amount of routing traffic that RIPng would generate, while
35 never counting to infinity.
36 endef
37
38 define Package/babeld/conffiles
39 /etc/babeld.conf
40 endef
41
42 MAKE_FLAGS += \
43 CC="$(TARGET_CC)" \
44 CFLAGS="$(TARGET_CFLAGS)" \
45
46 define Package/babeld/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/babeld $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/etc
50 $(INSTALL_CONF) ./files/babeld.conf $(1)/etc/
51 $(INSTALL_DIR) $(1)/etc/config
52 $(INSTALL_DATA) ./files/babeld.config $(1)/etc/config/babeld
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/babeld.init $(1)/etc/init.d/babeld
55 endef
56
57 $(eval $(call BuildPackage,babeld))