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.

62 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2017-2018 Thomas Guyot-Sionnest <tguyot@gmail.com>
  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:=libndp
  9. PKG_VERSION:=1.7
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=LGPL-2.1
  12. PKG_MAINTAINER:=Thomas Guyot-Sionnest <tguyot@gmail.com>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=http://libndp.org/files/
  15. PKG_HASH:=2c480afbffb02792dbae3c13bbfb71d89f735562f2795cca0640ed3428b491b6
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libndp
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=NDP Library
  24. URL:=https://github.com/jpirko/libndp/
  25. endef
  26. define Package/libndp/description
  27. Library for Neighbor Discovery Protocol
  28. endef
  29. define Package/libndp/install
  30. $(INSTALL_DIR) $(1)/usr/lib/
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libndp.so.* $(1)/usr/lib/
  32. endef
  33. define Package/ndptool
  34. SECTION:=net
  35. CATEGORY:=Network
  36. TITLE:=NDP Tool
  37. URL:=https://github.com/jpirko/libndp/
  38. DEPENDS:= +libndp
  39. endef
  40. define Package/ndptool/description
  41. Tool for Neighbor Discovery Protocol
  42. endef
  43. define Package/ndptool/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ndptool $(1)/usr/bin/
  46. endef
  47. $(eval $(call BuildPackage,libndp))
  48. $(eval $(call BuildPackage,ndptool))