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.

63 lines
1.4 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_CPE_ID:=cpe:/a:libndp:libndp
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=http://libndp.org/files/
  16. PKG_HASH:=2c480afbffb02792dbae3c13bbfb71d89f735562f2795cca0640ed3428b491b6
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_FIXUP:=autoreconf
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libndp
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=NDP Library
  25. URL:=https://github.com/jpirko/libndp/
  26. endef
  27. define Package/libndp/description
  28. Library for Neighbor Discovery Protocol
  29. endef
  30. define Package/libndp/install
  31. $(INSTALL_DIR) $(1)/usr/lib/
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libndp.so.* $(1)/usr/lib/
  33. endef
  34. define Package/ndptool
  35. SECTION:=net
  36. CATEGORY:=Network
  37. TITLE:=NDP Tool
  38. URL:=https://github.com/jpirko/libndp/
  39. DEPENDS:= +libndp
  40. endef
  41. define Package/ndptool/description
  42. Tool for Neighbor Discovery Protocol
  43. endef
  44. define Package/ndptool/install
  45. $(INSTALL_DIR) $(1)/usr/bin
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ndptool $(1)/usr/bin/
  47. endef
  48. $(eval $(call BuildPackage,libndp))
  49. $(eval $(call BuildPackage,ndptool))