Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=babeld
  9. PKG_VERSION:=1.8.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
  13. PKG_HASH:=07edecb132386d5561a767482bc5200e04239b18e48c2f0f47ae1c78d60fe5dc
  14. PKG_LICENSE:=MIT
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/babeld
  17. SECTION:=net
  18. CATEGORY:=Network
  19. SUBMENU:=Routing and Redirection
  20. TITLE:=A loop-free distance-vector routing protocol
  21. URL:=https://www.irif.fr/~jch/software/babel/
  22. MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>, \
  23. Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>
  24. DEPENDS:=@IPV6
  25. endef
  26. define Package/babeld/description
  27. Babel is a loop-avoiding distance-vector routing protocol roughly based
  28. on DSDV and AODV, but with provisions for link cost estimation and
  29. redistribution of routes from other routing protocols.
  30. While it is optimised for wireless mesh networks, Babel will also work
  31. efficiently on wired networks. It will generate between 1.2 and 2.4 times
  32. the amount of routing traffic that RIPng would generate, while
  33. never counting to infinity.
  34. endef
  35. define Package/babeld/conffiles
  36. /etc/babeld.conf
  37. /etc/config/babeld
  38. endef
  39. MAKE_FLAGS+= \
  40. CFLAGS="$(TARGET_CFLAGS)" \
  41. LDLIBS="" \
  42. define Package/babeld/install
  43. $(INSTALL_DIR) $(1)/usr/sbin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/babeld $(1)/usr/sbin/
  45. $(INSTALL_DIR) $(1)/etc
  46. $(INSTALL_CONF) ./files/babeld.conf $(1)/etc/
  47. $(INSTALL_DIR) $(1)/etc/config
  48. $(INSTALL_CONF) ./files/babeld.config $(1)/etc/config/babeld
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_BIN) ./files/babeld.init $(1)/etc/init.d/babeld
  51. endef
  52. $(eval $(call BuildPackage,babeld))