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.

41 lines
1008 B

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=netwhere
  3. PKG_VERSION:=0.6
  4. PKG_RELEASE:=1
  5. PKG_LICENSE:=MIT
  6. PKG_SOURCE:=netwhere-$(PKG_VERSION).tar.gz
  7. PKG_SOURCE_URL:=https://github.com/benhsmith/netwhere/archive/$(PKG_VERSION)/
  8. PKG_HASH:=0820cf5e59bf6b635c09a6282c664d6966b4d2887736b0f20937c86a8a03f563
  9. PKG_BUILD_DEPENDS:=boost
  10. PKG_MAINTAINER:=Ben Smith <le.ben.smith@gmail.com>
  11. CMAKE_INSTALL:=1
  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. MAINTAINER:=Ben Smith
  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))