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