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.

48 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=nlbwmon
  3. PKG_RELEASE:=2
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL:=https://github.com/jow-/nlbwmon.git
  6. PKG_SOURCE_DATE:=2019-06-06
  7. PKG_SOURCE_VERSION:=4574e6e80e3a5ab8de65886baa0d563dfee589ff
  8. PKG_MIRROR_HASH:=559a8b04e8942c83e31a6a5e2576a5308fdc16349ed29e0b2d9fc182d715976d
  9. CMAKE_INSTALL:=1
  10. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  11. PKG_LICENSE:=ISC
  12. PKG_LICENSE_FILES:=COPYING
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. CMAKE_OPTIONS += -DLIBNL_LIBRARY_TINY=ON
  16. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
  17. define Package/nlbwmon
  18. SECTION:=net
  19. CATEGORY:=Network
  20. DEPENDS:=+libubox +libnl-tiny +zlib +kmod-nf-conntrack-netlink
  21. TITLE:=LEDE Traffic Usage Monitor
  22. endef
  23. define Package/nlbwmon/install
  24. $(INSTALL_DIR) $(1)/usr/sbin
  25. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nlbwmon $(1)/usr/sbin/nlbwmon
  26. $(LN) nlbwmon $(1)/usr/sbin/nlbw
  27. $(INSTALL_DIR) $(1)/usr/share/nlbwmon
  28. $(INSTALL_DATA) $(PKG_BUILD_DIR)/protocols.txt $(1)/usr/share/nlbwmon/protocols
  29. $(INSTALL_DIR) $(1)/etc/init.d
  30. $(INSTALL_BIN) ./files/nlbwmon.init $(1)/etc/init.d/nlbwmon
  31. $(INSTALL_DIR) $(1)/etc/config
  32. $(INSTALL_CONF) ./files/nlbwmon.config $(1)/etc/config/nlbwmon
  33. endef
  34. define Package/nlbwmon/conffiles
  35. /usr/share/nlbwmon/protocols
  36. endef
  37. $(eval $(call BuildPackage,nlbwmon))