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:=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL:=https://github.com/jow-/nlbwmon.git
  6. PKG_SOURCE_DATE:=2020-04-11.1
  7. PKG_SOURCE_VERSION:=34a188769750927d839ad27fbfc90c973fe7bb06
  8. PKG_MIRROR_HASH:=75cd4e2eccb91256a91a3d48440cb347a696db64db2e71c050d284d20f98a77c
  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))