e66104650e27207a0923e97e49356557304224a8
[openwrt/svn-archive/archive.git] / net / 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.96
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:=fdb1949237ec99cd978222fe872c4f0b
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/babel
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/babel/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/babel/conffiles
39 /etc/babel.conf
40 endef
41
42 MAKE_FLAGS += \
43 CC="$(TARGET_CC)" \
44 CFLAGS="$(TARGET_CFLAGS)" \
45
46 define Package/babel/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/babel.conf $(1)/etc/
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_BIN) ./files/babel.init $(1)/etc/init.d/babel
53 endef
54
55 $(eval $(call BuildPackage,babel))