1
0

Makefile 874 B

1234567891011121314151617181920212223242526272829303132
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2015 OpenWrt.org
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=wpan-tools
  7. PKG_VERSION:=0.9
  8. PKG_RELEASE=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://github.com/linux-wpan/wpan-tools/releases/download/$(PKG_NAME)-$(PKG_VERSION)/$(PKG_NAME)-$(PKG_VERSION).tar.gz?
  11. PKG_HASH:=fa76d9c1874220e4b1f91c226f42baf1e372ea8ccf4b892effaf0d164448f608
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/wpan-tools
  14. SECTION:=net
  15. CATEGORY:=Network
  16. TITLE:=cfg802154 interface configuration utility
  17. URL:=https://linux-wpan.org/wpan-tools.html
  18. DEPENDS:= +libnl
  19. endef
  20. define Package/wpan-tools/install
  21. $(INSTALL_DIR) $(1)/usr/sbin
  22. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iwpan $(1)/usr/sbin/
  23. $(INSTALL_BIN) $(PKG_BUILD_DIR)/wpan-ping/wpan-ping $(1)/usr/sbin/
  24. endef
  25. $(eval $(call BuildPackage,wpan-tools))