1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (C) 2007-2021 OpenWrt.org
6 include $(TOPDIR
)/rules.mk
10 PKG_RELEASE
:=$(AUTORELEASE
)
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:=https
://www.irif.fr
/~jch
/software
/files
/
14 PKG_HASH
:=9ab59d7ac741f3630df23f9c3b67c60294d8b34ab622398f9b89773a878ecb1e
16 PKG_MAINTAINER
:=Gabriel Kerneis
<gabriel@kerneis.
info>, \
17 Baptiste Jonglez
<openwrt-pkg@bitsofnetworks.org
>, \
18 Nick Hainke
<vincent@systemli.org
>
20 PKG_LICENSE_FILES
:=LICENCE
22 include $(INCLUDE_DIR
)/package.mk
27 SUBMENU
:=Routing and Redirection
28 TITLE
:=A loop-avoiding distance-vector routing protocol
29 URL
:=https
://www.irif.fr
/~jch
/software
/babel
/
30 DEPENDS
:=@IPV6
+libubus
+libubox
33 define Package
/babeld
/description
34 Babel is a loop-avoiding distance-vector routing protocol for IPv6 and IPv4
35 with fast convergence properties. It is based on the ideas in DSDV
, AODV and
36 Cisco
's EIGRP, but is designed to work well not only in wired networks but
37 also in wireless mesh networks, and has been extended with support for
38 overlay networks. Babel is an IETF standard protocol (RFC 8966).
41 define Package/babeld/conffiles
47 CFLAGS="$(TARGET_CFLAGS)" \
49 LDLIBS+="-lubus -lubox"
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
62 $(eval $(call BuildPackage,babeld))