Merge pull request #384 from ecsv/batadv-2018.1
[feed/routing.git] / babeld / 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:=1.8.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
16 PKG_MD5SUM:=eec395ade02524b3f351507a21742939
17 PKG_HASH:=07edecb132386d5561a767482bc5200e04239b18e48c2f0f47ae1c78d60fe5dc
18 PKG_LICENSE:=MIT
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/babeld
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Routing and Redirection
26 TITLE:=A loop-free distance-vector routing protocol
27 URL:=https://www.irif.fr/~jch/software/babel/
28 MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>, \
29 Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>
30 DEPENDS:=@IPV6
31 endef
32
33 define Package/babeld/description
34 Babel is a loop-avoiding distance-vector routing protocol roughly based
35 on DSDV and AODV, but with provisions for link cost estimation and
36 redistribution of routes from other routing protocols.
37 While it is optimised for wireless mesh networks, Babel will also work
38 efficiently on wired networks. It will generate between 1.2 and 2.4 times
39 the amount of routing traffic that RIPng would generate, while
40 never counting to infinity.
41 endef
42
43 define Package/babeld/conffiles
44 /etc/babeld.conf
45 /etc/config/babeld
46 endef
47
48 MAKE_FLAGS+= \
49 CFLAGS="$(TARGET_CFLAGS)" \
50 LDLIBS="" \
51
52 define Package/babeld/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,babeld))