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.

40 lines
1.0 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=netwhere
  3. PKG_VERSION:=0.9
  4. PKG_RELEASE:=2
  5. PKG_SOURCE:=netwhere-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://github.com/benhsmith/netwhere/archive/$(PKG_VERSION)/
  7. PKG_HASH:=94a672bdcd9d4455b85429dddd81ffc778e0b26fe87af19ad75c27858ec9dbe2
  8. PKG_MAINTAINER:=Ben Smith <le.ben.smith@gmail.com>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=LICENSE
  11. PKG_BUILD_DEPENDS:=boost
  12. include $(INCLUDE_DIR)/package.mk
  13. include $(INCLUDE_DIR)/cmake.mk
  14. define Package/netwhere
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. TITLE:=Netwhere
  18. URL:=https://github.com/benhsmith/netwhere
  19. DEPENDS:=+libtins +libmicrohttpd
  20. endef
  21. define Package/netwhere/description
  22. Network monitor
  23. endef
  24. define Package/netwhere/install
  25. $(INSTALL_DIR) $(1)/usr/bin
  26. $(INSTALL_BIN) $(PKG_BUILD_DIR)/netwhere $(1)/usr/bin/netwhere
  27. $(INSTALL_DIR) $(1)/www/netwhere
  28. $(INSTALL_DATA) $(PKG_BUILD_DIR)/html/index.html $(1)/www/netwhere/
  29. $(INSTALL_DATA) $(PKG_BUILD_DIR)/html/netwhere.js $(1)/www/netwhere/
  30. endef
  31. $(eval $(call BuildPackage,netwhere))