babeld: Update to version 1.8.5
[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.5
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_HASH:=202d99c275604507c6ce133710522f1ddfb62cb671c26f1ac2d3ab44af3d5bc4
17 PKG_LICENSE:=MIT
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/babeld
22 SECTION:=net
23 CATEGORY:=Network
24 SUBMENU:=Routing and Redirection
25 TITLE:=A loop-free distance-vector routing protocol
26 URL:=https://www.irif.fr/~jch/software/babel/
27 MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>, \
28 Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>
29 DEPENDS:=@IPV6
30 endef
31
32 define Package/babeld/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 endef
41
42 define Package/babeld/conffiles
43 /etc/babeld.conf
44 /etc/config/babeld
45 endef
46
47 MAKE_FLAGS+= \
48 CFLAGS="$(TARGET_CFLAGS)" \
49 LDLIBS="" \
50
51 define Package/babeld/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/babeld $(1)/usr/sbin/
54 $(INSTALL_DIR) $(1)/etc
55 $(INSTALL_CONF) ./files/babeld.conf $(1)/etc/
56 $(INSTALL_DIR) $(1)/etc/config
57 $(INSTALL_CONF) ./files/babeld.config $(1)/etc/config/babeld
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_BIN) ./files/babeld.init $(1)/etc/init.d/babeld
60 endef
61
62 $(eval $(call BuildPackage,babeld))