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
:=a5f54a08322640e97399bf4d1411a34319e6e277fbb6fc4966f38a17d72a8dea
16 PKG_MAINTAINER
:=Gabriel Kerneis
<gabriel@kerneis.
info>, \
17 Baptiste Jonglez
<openwrt-pkg@bitsofnetworks.org
>
19 PKG_LICENSE_FILES
:=LICENCE
21 include $(INCLUDE_DIR
)/package.mk
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
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.
40 define Package/babeld/conffiles
46 CFLAGS="$(TARGET_CFLAGS)" \
48 LDLIBS+="-lubus -lubox"
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
61 $(eval $(call BuildPackage,babeld))