803a93edcc1affa7adc59c967c7328fc858cdbbe
[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.12.1
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
16 PKG_HASH:=9ab59d7ac741f3630df23f9c3b67c60294d8b34ab622398f9b89773a878ecb1e
17
18 PKG_MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>, \
19 Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>, \
20 Nick Hainke <vincent@systemli.org>
21 PKG_LICENSE:=MIT
22 PKG_LICENSE_FILES:=LICENCE
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/babeld
27 SECTION:=net
28 CATEGORY:=Network
29 SUBMENU:=Routing and Redirection
30 TITLE:=A loop-avoiding distance-vector routing protocol
31 URL:=https://www.irif.fr/~jch/software/babel/
32 DEPENDS:=@IPV6 +libubus +libubox
33 endef
34
35 define Package/babeld/description
36 Babel is a loop-avoiding distance-vector routing protocol for IPv6 and IPv4
37 with fast convergence properties. It is based on the ideas in DSDV, AODV and
38 Cisco's EIGRP, but is designed to work well not only in wired networks but
39 also in wireless mesh networks, and has been extended with support for
40 overlay networks. Babel is in the process of becoming an IETF Standard.
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 LDLIBS+="-lubus -lubox"
52
53 define Package/babeld/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/babeld $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/etc
57 $(INSTALL_CONF) ./files/babeld.conf $(1)/etc/
58 $(INSTALL_DIR) $(1)/etc/config
59 $(INSTALL_CONF) ./files/babeld.config $(1)/etc/config/babeld
60 $(INSTALL_DIR) $(1)/etc/init.d
61 $(INSTALL_BIN) ./files/babeld.init $(1)/etc/init.d/babeld
62 endef
63
64 $(eval $(call BuildPackage,babeld))