babels: allow routes with source ::/128
[lede-routing/.git] / babels / 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:=babels
11 PKG_SOURCE_VERSION:=757af8018a6e51ba64994d4834d41d4da8377e09
12 PKG_VERSION:=2013-12-18-$(PKG_SOURCE_VERSION)
13 PKG_RELEASE:=1
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=git://git.wifi.pps.univ-paris-diderot.fr/babels
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/babels
22   SECTION:=net
23   CATEGORY:=Network
24   SUBMENU:=Routing and Redirection
25   TITLE:=A loop-free distance-vector routing protocol (source-specific)
26   URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/babel/
27   MAINTAINER:=Steven Barth <cyrus@openwrt.org>
28   DEPENDS:=+kmod-ipv6
29 endef
30
31 define Package/babels/description
32  Babel is a loop-avoiding distance-vector routing protocol roughly based
33  on DSDV and AODV, but with provisions for link cost estimation and
34  redistribution of routes from other routing protocols.
35  While it is optimised for wireless mesh networks, Babel will also work
36  efficiently on wired networks. It will generate between 1.2 and 2.4 times
37  the amount of routing traffic that RIPng would generate, while
38  never counting to infinity.
39  This is experimental source routing branch, and should be only used if you
40  know what you are doing.
41 endef
42
43 define Package/babels/conffiles
44 /etc/babeld.conf
45 /etc/config/babeld
46 endef
47
48 MAKE_FLAGS+= \
49         CFLAGS="$(TARGET_CFLAGS) -DIPV6_SUBTREES" \
50         LDLIBS="" \
51
52 define Package/babels/install
53         $(INSTALL_DIR) $(1)/usr/sbin
54         $(INSTALL_BIN) $(PKG_BUILD_DIR)/babeld $(1)/usr/sbin/
55         $(INSTALL_DIR) $(1)/etc
56         $(INSTALL_CONF) ./files/babeld.conf $(1)/etc/
57         $(INSTALL_DIR) $(1)/etc/config
58         $(INSTALL_CONF) ./files/babeld.config $(1)/etc/config/babeld
59         $(INSTALL_DIR) $(1)/etc/init.d
60         $(INSTALL_BIN) ./files/babeld.init $(1)/etc/init.d/babeld
61 endef
62
63 $(eval $(call BuildPackage,babels))