babeld: update to 1.10
[feed/routing.git] / babeld / Makefile
1 # SPDX-License-Identifier: GPL-2.0-or-later
2 #
3 # Copyright (C) 2007-2021 OpenWrt.org
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=babeld
9 PKG_VERSION:=1.10
10 PKG_RELEASE:=$(AUTORELEASE)
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
14 PKG_HASH:=a5f54a08322640e97399bf4d1411a34319e6e277fbb6fc4966f38a17d72a8dea
15
16 PKG_MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>, \
17 Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>
18 PKG_LICENSE:=MIT
19 PKG_LICENSE_FILES:=LICENCE
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/babeld
24 SECTION:=net
25 CATEGORY:=Network
26 SUBMENU:=Routing and Redirection
27 TITLE:=A loop-avoiding distance-vector routing protocol
28 URL:=https://www.irif.fr/~jch/software/babel/
29 DEPENDS:=@IPV6 +libubus +libubox
30 endef
31
32 define Package/babeld/description
33 Babel is a loop-avoiding distance-vector routing protocol for IPv6 and IPv4
34 with fast convergence properties. It is based on the ideas in DSDV, AODV and
35 Cisco's EIGRP, but is designed to work well not only in wired networks but
36 also in wireless mesh networks, and has been extended with support for
37 overlay networks. Babel is in the process of becoming an IETF Standard.
38 endef
39
40 define Package/babeld/conffiles
41 /etc/babeld.conf
42 /etc/config/babeld
43 endef
44
45 MAKE_FLAGS+= \
46 CFLAGS="$(TARGET_CFLAGS)" \
47 LDLIBS="" \
48 LDLIBS+="-lubus -lubox"
49
50 define Package/babeld/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/babeld $(1)/usr/sbin/
53 $(INSTALL_DIR) $(1)/etc
54 $(INSTALL_CONF) ./files/babeld.conf $(1)/etc/
55 $(INSTALL_DIR) $(1)/etc/config
56 $(INSTALL_CONF) ./files/babeld.config $(1)/etc/config/babeld
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/babeld.init $(1)/etc/init.d/babeld
59 endef
60
61 $(eval $(call BuildPackage,babeld))