You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2019 Lucian Cristian <lucian.cristian@gmail.com>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=bfdd
  8. PKG_SOURCE_DATE:=2019-08-22
  9. PKG_RELEASE:=2
  10. PKG_SOURCE_VERSION:=c54534beb524afc3972039f57b56ec65332b43f7
  11. PKG_SOURCE_URL:=https://codeload.github.com/rzalamena/bfdd/tar.gz/$(PKG_SOURCE_VERSION)?
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
  13. PKG_HASH:=8b65f502163aacfe43bb897464f3bf44bc5af4cc85d23b7c644e329abf89cc5f
  14. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/bfdd
  20. SECTION:=net
  21. CATEGORY:=Network
  22. SUBMENU:=Routing and Redirection
  23. TITLE:=BFD daemon
  24. URL:=https://github.com/rzalamena/bfdd
  25. DEPENDS:=+libevent2 +libjson-c
  26. endef
  27. define Package/bfdd/description
  28. A port of Cumulus BFD daemon to a more portable daemon.
  29. Bidirectional Forwarding Detection (BFD) is a network protocol that is used to
  30. detect faults between two forwarding engines connected by a link. It provides
  31. low-overhead detection of faults even on physical media that doesn't support
  32. failure detection of any kind, such as Ethernet, virtual circuits, tunnels and
  33. MPLS Label Switched Paths.
  34. endef
  35. define Package/bfdd/conffiles
  36. /etc/bfdd/bfdd.json
  37. endef
  38. TARGET_CFLAGS += -D_GNU_SOURCE
  39. define Package/bfdd/install
  40. $(INSTALL_DIR) \
  41. $(1)/usr/sbin \
  42. $(1)/etc/bfdd \
  43. $(1)/etc/init.d
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/{bfdd,bfdctl} $(1)/usr/sbin/
  45. $(INSTALL_BIN) ./files/bfdd.init $(1)/etc/init.d/bfdd
  46. $(INSTALL_CONF) ./files/bfdd.template.json $(1)/etc/bfdd/bfdd.json
  47. endef
  48. $(eval $(call BuildPackage,bfdd))