Makefile 1.8 KB

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